How to get Instagram posts data from any public account
11 Nov 2026 · benthepythondev
If you need the posts of a public Instagram account in a spreadsheet or a database, copying them by hand doesn't scale. The Instagram Posts Scraper exports an account's posts and reels, newest first, as structured records. It doesn't log in and needs no cookies or Instagram API key. It asks Instagram for the same data its website loads for a visitor who isn't logged in.
What you get
Each post or reel is one record. Here are the fields, grouped:
- The post itself:
id, the shortcode, the publicurl, thecaption,posted_at(UTC timestamp) andmedia_type(image,videoorcarousel).record_typetells you whether it's apostor areel. Flags show whether the post was edited, is pinned to the grid, or is marked as a paid partnership. - Engagement:
likes,comments, andlikes_hidden, which is true when the author hid the like count. - Author:
username,full_name,author_id,is_verified, plusfrom_profile, the account whose grid the post came from. That matters for collaboration posts. - People and places:
mentions(handles written in the caption),tagged_users,coauthors(collaborators),location_nameandlocation_id. - Content:
hashtags,image_url,video_urlandslide_urlsfor carousel slides. - Audio on reels:
music_titleandmusic_artist. - Extras:
alt_textandscraped_at.
Real example output
This is one record from a real run on natgeo, trimmed. The long signed media links are shortened.
{
"record_type": "reel",
"id": "3947535193527528320",
"code": "DbIdlf0j6uA",
"url": "https://www.instagram.com/reel/DbIdlf0j6uA/",
"username": "natgeo",
"full_name": "National Geographic",
"author_id": "787132",
"is_verified": true,
"caption": "Describe Pompeii: Out of Time in 3 words? It's Now Streaming.\n\n#PompeiiOutOfTime with @twhiddleston is now streaming on @DisneyPlus and @hulu.",
"posted_at": "2026-07-23T13:00:03+00:00",
"likes": 28156,
"comments": 317,
"plays": null,
"media_type": "video",
"image_url": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/752808040_...",
"video_url": "https://scontent-iad3-2.cdninstagram.com/o1/v/t2/f2/m86/AQOvM90z....mp4?...",
"slide_urls": [],
"hashtags": ["PompeiiOutOfTime"],
"mentions": ["twhiddleston", "DisneyPlus", "hulu"],
"coauthors": ["disneyplus", "hulu", "twhiddleston"],
"location_name": null,
"music_title": "Original audio",
"music_artist": "natgeo",
"is_pinned": true,
"is_paid_partnership": false,
"from_profile": "natgeo",
"scraped_at": "2026-10-05T12:28:07.605223+00:00"
}
A record from the same run shows the partnership flag in use. The pinned reel DdG4RIxIPyf has is_paid_partnership: true, coauthors: ["rolex"] and the hashtags Rolex and PerpetualPlanet.
What people use it for
The README lists these use cases:
- Competitor and brand monitoring. Schedule a daily run with
postedAfterset to yesterday. Each run then collects only the new posts from the accounts you watch. - Content analysis. Compare likes and comments by format, hashtag, collaborator and posting time.
media_type,hashtags,coauthorsandposted_atare already split into their own fields for this. - Influencer vetting. Look at real engagement on recent posts instead of relying on a follower count.
- Datasets for AI and research. Captions with dates, tags and alt text work for classification, trend studies or RAG.
How to run it on Apify
Open the Instagram Posts Scraper on Apify and fill in the input:
usernames: usernames, @handles or profile linksmaxResults: posts per account, newest first (20 by default, up to 100,000)postedAfter/postedBefore: an optional UTC date window inYYYY-MM-DDformat
This example gets everything two accounts posted in September 2026:
{
"usernames": ["natgeo", "nasa"],
"maxResults": 1000,
"postedAfter": "2026-09-01",
"postedBefore": "2026-09-30"
}
When postedAfter is set, reading stops as soon as the scraper reaches older posts, so daily runs stay small. You can export the results as JSON, CSV or Excel, run it on a schedule, call it through the Apify API, or connect it to Make, Zapier or n8n.
Pricing is per saved post plus a small start fee per run. It's $1.50 per 1,000 posts on the free plan and less on paid plans. The README puts the default 20-post run at 3 cents. If you set Maximum cost per run in the run options, the Actor stops saving at that amount and says so in the status message.
Open the actor Call it on RapidAPI
How to use it as an API on RapidAPI
If you'd rather call a plain HTTP endpoint than manage Apify runs, the same scraper is listed on RapidAPI. Check the listing for its endpoints and plans.
If you need what is said in a reel rather than its caption, see How to get transcripts of Instagram reels.
Honest limits
- Public accounts only. The scraper never logs in, so it can't see private accounts.
- Media links expire. Instagram signs
image_url,video_urlandslide_urls, and the links stop working after some hours. Download the files soon after the run if you need them. - Some fields are often empty. In the example rows
plays,location_nameandalt_textarenull. Whether a field is filled depends on the post. maxResultscounts per account, not per run. Three usernames withmaxResults: 100can return up to 300 records.- Rate limits on long exports. Instagram limits how much one address can read. The README says the Actor then continues through another address without starting over, but very large exports still take longer.
- Tags can repeat. In one example row,
tagged_userslistshulu,twhiddlestonanddisneyplustwice each. Remove duplicates if you count them.
Affiliate if you still need an Apify account: apify.com/?fpr=qolupv. I may earn a commission; the price you pay does not change.