Instagram Post Scraper
Pricing
from $0.70 / 1,000 posts
Instagram Post Scraper
Scrape Instagram posts from usernames, profile links or post links: caption, likes, comment count, date, images, videos, carousel slides, co-authors, tagged accounts, hashtags and music, plus optional comments. Filter by date. One row per post. No login or cookies.
Pricing
from $0.70 / 1,000 posts
Rating
0.0
(0)
Developer
Keklik
Maintained by CommunityActor stats
0
Bookmarked
39
Total users
4
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Instagram Post Scraper turns Instagram posts into a spreadsheet. Paste usernames, profile links or post links, such as natgeo or @nasa, press Start, and get one row per post with its caption, likes, comment count, date, images and videos, carousel slides, co-authors, tagged accounts, hashtags and music, plus the newest comments if you want them.
- No Instagram account, login or cookies. Nothing to set up and nothing of yours at risk.
- Any date range: every post of a profile, the last 7 days, or the posts between two dates.
- Pay only for the posts you get: $1.00 per 1,000 on the Free plan, about 40% less than the most used Instagram post scraper on Apify. Posts outside your dates are free.
- Comments only when you ask, charged per comment, so a run without them costs posts only.
What data can you extract from Instagram posts?
Each post comes back as one row with 46 fields.
| Group | Fields |
|---|---|
| Post | Post link, post ID, shortcode, caption, alt text, date (Unix seconds and ISO 8601 in UTC), type (image, video or carousel), product type (photo, carousel or reel), pinned flag, paid partnership flag and the brand it names, dimensions |
| Author | Username, display name, user ID, profile picture |
| Engagement | Number of likes and number of comments |
| Media | Main image or video cover, video file link, reel link for videos, up to 10 carousel slides (each with its ID, image, video, size, type and alt text) and the first 5 slide images as plain links |
| People | Collab co-authors and accounts tagged in the media (ID, username, display name, verified badge, profile picture), and the @mentions in the caption |
| Hashtags | Every hashtag in the caption |
| Music | The audio of a reel or video: licensed track or original audio, song name, artist, trending and explicit flags |
| Comments (optional) | The post's newest comments in a latest_comments list: comment ID, text, date, likes, edited and hidden flags, GIF, and the commenter's ID, username, verified badge and profile picture |
| Run details | The input the post came from, and when the row was scraped |
Use cases
- Social media marketing: track what competitors post, how often, in which format, and which posts get the most likes and comments.
- Influencer marketing: check an influencer's real engagement, spot paid partnerships and the brands behind them, collab posts, and see which brands they tag.
- Content strategy: find the captions, hashtags, formats and music that perform best in your niche, and plan your own posts around them.
- Brand monitoring: follow your brand's accounts and partners, and see who tags and mentions you.
- Market and academic research: build a dataset of Instagram posts over a period with Posted after and Posted before, for trend, topic or sentiment analysis.
- Reporting and archiving: export a profile's posts to a spreadsheet or a BI tool on a schedule, with the media links saved alongside.
How to scrape Instagram posts
- Open Instagram Post Scraper in Apify Console and go to the Input tab.
- In π€ Profiles or posts, paste one entry per line: a profile link (
https://www.instagram.com/natgeo/), a username (natgeoor@natgeo), or a post or reel link (https://www.instagram.com/p/DUvd6BykR38/). - Set π’ Max posts per profile to cap how many posts each profile gives you (the form suggests 20), or leave it empty to get every post.
- To keep only recent posts, pick a date or a period such as
7 daysin π Posted after. For a date range, also set π Posted before. - If you want comments too, set π¬ Comments per post ($) to the number of newest comments you want on each post.
- Press Start and watch the posts appear in the Output tab.
- Download the results as JSON, CSV, Excel, XML or HTML, or read them through the Apify API.
Input
The API name is what to use in a JSON input or an API call. Options marked ($) cost extra.
| Field | API name | What it does |
|---|---|---|
| π€ Profiles or posts | urls | One per line. A profile link or username (https://www.instagram.com/natgeo/, @natgeo, natgeo) gets the profile's posts, newest first. A post or reel link gets that one post. Required. |
| π’ Max posts per profile | maxPostsPerProfile | Stops each profile after this many posts. Empty gets every post. |
| π Max posts in total | maxResults | Stops the whole run after this many posts. Empty means no limit. |
| π Posted after | newerThan | Only posts published after a date (2026-01-31, or 2026-01-31 18:00 in UTC) or a period back from now (7 days, 3 months, 1 year; 24h, 7d and 2w work too). A profile stops at its first older post. |
| π Posted before | postedBefore | Only posts published before a date or period, in the same formats. With Posted after, you get the posts between the two dates. Newer posts are passed over without being charged; reaching old dates on a big profile takes a while, since posts come newest first. |
| π Skip pinned posts | skipPinnedPosts | Leaves out the posts pinned to the top of a profile. Off by default. |
| π¬ Comments per post ($) | commentsPerPost | Adds up to this many of each post's newest comments, in a latest_comments list. 0 (the default) adds none. |
{"urls": ["https://www.instagram.com/natgeo/", "https://www.instagram.com/p/DeTUk4sDSp-/"],"maxPostsPerProfile": 50,"newerThan": "30 days","commentsPerPost": 0}
Output
A shortened row from a real run (the full row has 46 fields):
{"url": "https://www.instagram.com/p/DeTUk4sDSp-/","post_id": "4004634989362489982","shortcode": "DeTUk4sDSp-","caption": "POV: you're watching the Earth set\n\nWe just released hundreds of new images and hours of n β¦","owner_username": "nasa","owner_full_name": "NASA","likes_count": 684438,"comments_count": 6785,"timestamp": 1791645302,"timestamp_datetime": "2026-10-10T15:15:02+00:00","product_type": "clips","media_type": "video","is_video": true,"is_pinned": true,"dimensions": "1074x1908","reel_url": "https://www.instagram.com/reel/DeTUk4sDSp-/","coauthors": [{"id": "1611722079","username": "nasasolarsystem","full_name": "NASA Solar System Exploration","is_verified": true}],"hashtags": ["#NASA", "#ArtemisII", "#Artemis"],"music": {"audio_id": "28589819277311219","song_name": "Original audio","artist_name": "nasa","uses_original_audio": true,"should_mute_audio": false,"is_explicit": false},"source_url": "nasa","scraping_time": "2026-10-16T09:29:28+00:00"}
Carousel posts also fill child_post_1 to child_post_10 and image_1 to image_5. With Comments per post set, each post that has comments gets a latest_comments list, newest first.
You can export the results to JSON, CSV, Excel, XML and HTML, or open them in the Output tab as a table. The Output tab has views, each starting with the post's link: Overview, Post, Author, Likes and comments, Photos and videos, Carousel slides, Tags, mentions and hashtags, Music, Latest comments and Scrape details.
What to know about the data
- Dates:
timestampis a Unix timestamp in seconds;timestamp_datetimeis the same moment in a readable form, in UTC. - Likes are empty when the author hides like counts, and
like_and_view_counts_disabledis true: Instagram shows visitors no real number for those posts. Views and plays are not shown to logged-out visitors on posts; use Instagram Reels Scraper for reel plays. - Carousels: the row keeps the first 10 slides (
child_post_1tochild_post_10) and the first 5 images as plain links;carousel_media_countgives the full number. - Media links expire after a few days. Download images and videos soon after the run if you need them.
- No duplicates: a post appears once per run, even if it is on two of your profiles (a collab post) or entered twice.
How much does it cost to scrape Instagram?
Instagram Post Scraper uses pay-per-event pricing: you pay for the posts you get, not for the time the run takes.
| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Post (every row) | $1.00 | $0.90 | $0.80 | $0.70 |
| Comment (each comment added with Comments per post) | $1.00 | $0.90 | $0.80 | $0.70 |
Prices are per 1,000 events.
For example, the latest 20 posts of 50 profiles (1,000 posts) cost $1.00 on the Free plan and $0.70 on Gold; with 10 comments each, add up to $10.00 on Free. With Comments per post at 0 (the default) you pay for posts only, and posts outside your dates are not charged.
In our tests, 100 posts from one profile took about a minute without comments. The newest comments on every post make a run slower, so ask only for the comments you need.
Integrations and API
You can run the Instagram Post Scraper from your own code through the Apify API and get the posts back as JSON.
Python, with apify-client:
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("keklik/instagram-post-scraper").call(run_input={"urls": ["natgeo"],"maxPostsPerProfile": 20,})for post in client.dataset(run["defaultDatasetId"]).iterate_items():print(post["url"], post["likes_count"])
Node.js, with apify-client:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });const run = await client.actor('keklik/instagram-post-scraper').call({urls: ['natgeo'],maxPostsPerProfile: 20,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
You can also:
- Schedule runs to collect new posts every day or week.
- Send results to your system with webhooks when a run finishes.
- Connect it to Make, Zapier, Google Sheets, Slack and other apps through Apify integrations.
Use it from AI agents (MCP)
Claude, ChatGPT, Cursor and other AI agents can run Instagram Post Scraper through the Apify MCP server. Ask in plain words, for example "Get @glossier's posts from the last 30 days with their likes and comments", and the agent fills in the input for you.
- Every input and output field is described, with an example value, so the agent knows what to send and what it gets back.
- The run stops cleanly at the maximum cost the agent sets: it keeps every post saved so far and says why it stopped, instead of being cut off.
FAQ
How do I keep my first run small and cheap?
Start with one or two profiles and keep π’ Max posts per profile at 20, or set π Max posts in total: the run stops there. Leave π¬ Comments per post at 0 until you know you need comments. To follow a profile over time, schedule a run with π
Posted after set to 1 day so each run gets only the new posts.
Is it legal to scrape Instagram?
This scraper collects only data that Instagram shows publicly to visitors who are not logged in. Posts can still contain personal data, such as usernames of tagged accounts or commenters. Personal data is protected by laws such as the GDPR in Europe, so make sure you have a lawful reason to collect and use it, and check with a lawyer if you are unsure.
Do I need an Instagram account?
No. You don't need an Instagram account, a login or cookies.
Can I scrape private Instagram profiles?
No. Instagram shows a private profile's posts only to approved followers, so private profiles are skipped.
Can I get view or play counts?
Not on posts: Instagram does not show view counts to logged-out visitors. For reels, Instagram Reels Scraper gives the play count of each reel.
How do comments work?
Set Comments per post to add each post's newest comments to its row. Comments come newest first and are top-level comments only: replies and the "most relevant" order are not available without logging in. A post with no comments has no latest_comments. If Instagram refuses a post's comments, the post is still saved without them, and the run's status message says how many posts missed their comments. You pay only for the comments you get. For many comments per post, or one row per comment, use the Instagram Comments Scraper.
How do pinned posts and the date filter work together?
Pinned posts come first on a profile, whatever their date. With Posted after, older pinned posts are left out but don't stop the profile; the profile stops at its first older post that isn't pinned. Turn on Skip pinned posts to leave them out altogether. A post scraped from its own URL always has is_pinned set to false.
Why did some inputs fail?
Inputs that fail are listed with the reason in the FAILED record of the run's key-value store, not in the dataset:
invalid_input: not a profile, username or post URL (for example an explore or stories link).not_found: the profile or post does not exist or was removed.restricted: the profile exists, but Instagram shows it only to logged-in users, usually because of an age or country limit (common for alcohol, tobacco and betting brands). It cannot be scraped without a login.private_or_no_posts: the profile is private, or has no posts.blocked: Instagram refused every attempt. Run it again later.instagram_error: Instagram answered with an error the scraper does not recognise. Please report it.
Why do some media links stop working?
Instagram image and video links expire after a while. Download the media soon after the run if you need to keep it.
What happens when a run fails?
The run's status message says why, and the log names each input that failed. If a mistake in the input stops the run before anything is scraped, the run ends without results and its status message says what to change. Either way the Actor sends us a short error report, so we can fix the cause even if you never open an issue: the Actor's build, the reason (with Instagram's own answer when it refused every try), the counts from the end-of-run summary, whether your Apify plan is free or paid and, for an unexpected error, where in our code it happened. Web addresses and @usernames are blanked out first. The report never includes your input, your account, the pages you scraped or your results. Every run, failed or not, also sends one usage line as it ends, so we can see which options people use, what runs cost us and how well the data is filled: how many of each charged event it used (for example 120 full details) and the price your plan paid for them; the run's platform cost by item and its resources (time, memory, proxy traffic); whether it stopped at your maximum cost or maximum items; how it was started (Console, API, schedule, saved task, and for API runs the kind of tool, such as Make, Zapier or the Apify client, never the tool's full identity); our scraper's own retry and timing counts; and for each output field, how many results had it filled (counts only, never the values). That never includes your input, your account, your IP address, the pages you scraped or your results either. If you need help with a run, open an issue on the Issues tab and attach the run, or email support@kekliktech.com with the run's link; the run's log ends with both.
Related scrapers
- Instagram Profile Scraper: profile details such as bio, followers and links, one row per account.
- Instagram Reels Scraper: the reels of public profiles.
- Instagram Comments Scraper: every comment on a post, one row per comment.
Support
Found a bug or missing a field? Open an issue in the Issues tab of this Actor and we'll look into it. Need a scraper for another website, or a custom version of this one? Get in touch through the Issues tab and ask for a custom scraper.