Instagram Comments Scraper avatar

Instagram Comments Scraper

Pricing

from $0.60 / 1,000 comment saveds

Go to Apify Store
Instagram Comments Scraper

Instagram Comments Scraper

Extract public Instagram comments from post and Reel URLs with author usernames, text, timestamps, likes, reply counts, and source URLs.

Pricing

from $0.60 / 1,000 comment saveds

Rating

0.0

(0)

Developer

Fetch Cat

Fetch Cat

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

2

Monthly active users

6 days ago

Last modified

Share

Export public Instagram comments from post and Reel URLs to JSON, CSV or Excel. Collect comment authors, text, displayed relative timestamps, visible like and reply counts, and source post URLs in an Apify dataset.

Use the records to review audience questions, prepare campaign reports or analyze recurring themes in your own workflow. Only comments visible without login are available. Complete threads and nested replies are not guaranteed.

Quick start

  1. Paste one or more public post or Reel URLs into Post or Reel URLs.
  2. Set a small Maximum comments limit, then start the Actor.
  3. Open the dataset to review and export any available comments.

Only comments available without login can be collected. A completed extraction can return no usable comments.

{
"startUrls": [
{ "url": "https://www.instagram.com/p/DN8-GjPkgjS/" }
],
"maxItems": 20,
"maxLoadMoreAttempts": 3
}

Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.

Ready-to-run examples

Choose a public example to inspect its input before running:

What you get

  • Public comment records: Collect available comment text and author usernames from post, Reel and TV URLs.
  • Engagement context: Keep displayed timestamps and visible like and reply counts alongside each comment. Missing counts remain null.
  • Multiple-post exports: Process several URLs with one shared comment cap, then group the results by source post in your own analysis.

Who is it for?

  • Social media teams: Review questions and feedback on campaign posts.
  • Agencies and creators: Use source-linked comment exports in engagement reports.
  • Researchers: Compare public discussions across selected posts.
  • Developers: Feed comment records into downstream analysis or moderation workflows. The scraper does not classify sentiment or moderate comments itself.

Practical workflows

Review questions on campaign posts

Supply two known public campaign-post URLs with a shared maxItems cap of 20. Export postUrl, ownerUsername, text and the displayed timestamp, then group recurring questions by source post in your own analysis tool. Returned comments are a visible sample, not a complete audience census.

Compare visible responses between posts

Keep each row's source URL when combining exports. Compare themes or available displayed counts in your own workflow, without treating missing counts as zero. The generated commentId is not a stable cross-run key, and these rows do not identify nested replies.

Input settings

SettingAPI keyDescription
Post or Reel URLsstartUrlsRequired list of public post, Reel, or TV URLs, not profile URLs.
Maximum commentsmaxItemsShared cap across posts, from 1 to 1,000. The form default is 20. Set it explicitly in API requests.
Load-more attempts per postmaxLoadMoreAttemptsFrom 0 to 50 attempts per post, default 6. More attempts do not guarantee more comments.

Collect one public post

{
"startUrls": [{ "url": "https://www.instagram.com/p/DN8-GjPkgjS/" }],
"maxItems": 20,
"maxLoadMoreAttempts": 3
}

Collect several posts with a shared cap

{
"startUrls": [
{ "url": "https://www.instagram.com/p/DN8-GjPkgjS/" },
{ "url": "https://www.instagram.com/instagram/p/DbbY9pdm6Q2/" }
],
"maxItems": 50,
"maxLoadMoreAttempts": 6
}

Output data

Illustrative shape only, not a captured result:

{
"postUrl": "https://www.instagram.com/p/DN8-GjPkgjS/",
"postShortcode": "DN8-GjPkgjS",
"commentId": "RE44LUdqUGtnalN8dXNlcnwxZCBhZ28",
"commentUrl": null,
"ownerUsername": "example_user",
"text": "Great post!",
"postedAtText": "1d ago",
"likesCount": 2,
"repliesCount": null,
"isReply": false,
"scrapedAt": "2026-08-02T20:53:22.000Z"
}

Output fields

FieldDescription
postUrlSource Instagram post URL from the input.
postShortcodeInstagram shortcode parsed from the URL.
commentIdGenerated local identifier, not Instagram's comment ID. Not a reliable cross-run deduplication key.
commentUrlAlways null in this version. Comment permalinks are not extracted.
ownerUsernameComment author username.
textComment text.
postedAtTextRelative timestamp displayed by Instagram.
likesCountLike count shown on the comment when public.
repliesCountReply count shown when public.
isReplyAlways false. This version does not identify nested replies.
scrapedAtISO timestamp when the row was saved.

Download your results

Open your run's dataset, choose Export and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.

See Apify's download and export guide for the available formats and field options.

Pricing

A start event is charged once at run startup. Each comment saved to the dataset incurs one item event.

A completed extraction with no saved comments has no comment-item charges, but the start charge still applies. Set maxItems explicitly to cap saved rows. maxLoadMoreAttempts limits attempts per post, not the number of comments guaranteed.

See the live Pricing tab for current rates and discounts.

Tips for best results

  • Start with one public post. Use a small comment cap to check whether the page exposes useful comments before submitting more URLs.
  • Use post or Reel URLs. Profile URLs are not supported inputs.
  • Increase attempts selectively. A larger maxLoadMoreAttempts value can help only when the page exposes more comments. It does not unlock private or login-only content.
  • Group records by source URL. This keeps comments from different posts separate in your spreadsheet or downstream analysis.

Limits and caveats

A completed page extraction with no usable comments succeeds with an empty dataset. Per-post and run logs report no_usable_comments. This alone does not establish whether a post is private, deleted, or login-gated. Fatal execution or browser startup errors fail the run rather than appearing as an empty success.

  • Only public comments visible on public Instagram post pages can be exported.
  • Private posts, deleted posts, login-only comments, and account-specific views are not supported.
  • Missing visible like and reply counts are null, not zero. Comment permalinks and nested-reply identification are not supported.
  • Results follow the accessible page order, not a requested newest/oldest or popularity sort. No complete-thread guarantee is made.
  • Very large comment threads may expose fewer rows publicly than the visible in-app count.

Automation and integrations

Save your settings for next time

Once you have an input that works for you, save it as an Apify task. This keeps your settings together so you can use them again without filling in the form from scratch.

Run on a schedule

Need fresh results regularly? You can schedule the Actor or a saved task to run at a time that suits you.

Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.

Send results to your other tools

Use n8n, Make or Zapier to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the Apify integration guides for your chosen tool.

For a custom connection, an Apify webhook can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.

API usage

Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.

The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its defaultDatasetId to fetch the results.

For setup instructions, see Apify's JavaScript client guide, Python client guide and Actor runs API reference.

cURL

curl -X POST "https://api.apify.com/v2/acts/fetch_cat~instagram-comments-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"startUrls":[{"url":"https://www.instagram.com/p/DN8-GjPkgjS/"}],"maxItems":20,"maxLoadMoreAttempts":3}'

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/instagram-comments-scraper').call({
startUrls: [{ url: 'https://www.instagram.com/p/DN8-GjPkgjS/' }],
maxItems: 20,
maxLoadMoreAttempts: 3,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient('MY_APIFY_TOKEN')
run = client.actor('fetch_cat/instagram-comments-scraper').call(run_input={
'startUrls': [{'url': 'https://www.instagram.com/p/DN8-GjPkgjS/'}],
'maxItems': 20,
'maxLoadMoreAttempts': 3,
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)

MCP and AI agents

You can ask your AI assistant to collect data with Instagram Comments Scraper and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.

Connect your assistant through the Apify MCP server. MCP gives your assistant a way to find this scraper, run it and read the results. Follow the official setup and sign-in guide for your app.

Easier setup with an Apify plugin

If you use a supported coding assistant, the official Apify plugin can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.

Use Apify AI in Console

Prefer to keep everything in Apify? Open Apify AI in Console and ask it to find Fetch Cat's Instagram Comments Scraper. You can describe the data you want and ask questions about the results.

Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.

Choose your assistant

Connect just this scraper

To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=fetch_cat/instagram-comments-scraper"
}
}
}

Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.

Use Apify's general server

Already connected to the general Apify MCP server at https://mcp.apify.com? You can use it to find this scraper without adding another server. Ask your assistant to use Instagram Comments Scraper by Fetch Cat, or give it the identifier fetch_cat/instagram-comments-scraper.

Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.

Example requests

  • "Collect up to 10 available public comments from this known Instagram post URL, then summarize recurring questions in the returned text."
  • "Use these two known campaign-post URLs with a shared cap of 20 comments, then help me compare returned themes by source post."
  • "Get up to 10 visible comments from this known Reel URL, then prepare a spreadsheet of available authors, text and displayed like counts."

Normal Apify charges apply. Check the live Pricing tab before asking your assistant to run a larger batch.

Pay with x402

If your AI agent has a funded wallet, it can pay for Apify usage through x402. This experimental option lets an agent use Apify without a conventional account.

Apify AGI provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.

Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.

Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.

Other ways for agents to pay

Apify also supports MPP for prepaid access through AGI and Skyfire for eligible Actors. If your agent already uses one of these, see the agentic payment guide to choose the right setup.

FAQ

Do I need Instagram login cookies?

No. This build is designed for public post URLs and does not require personal Instagram accounts, cookies, or private credentials.

Can it scrape private posts?

No. Private, deleted, restricted, or login-only posts are outside the supported public-data scope.

Why are some counts null?

Instagram does not display every like, reply, or permalink value for every public comment. Missing public values are saved as null.

Can I scrape replies?

Visible reply counts may be captured, but this version does not expand reply threads or identify parent-child relationships. isReply is always false.

Is this an Instagram comments API?

It is an Apify Actor callable through the Apify API, not an official Instagram API. The examples above show how to submit URLs and retrieve the dataset.

How do I avoid duplicate analysis downstream?

The generated commentId is not a durable Instagram identifier and may change as relative timestamps change. For repeated exports, compare source URL, author, and text with your own duplicate-handling rules.

Support and feedback

For custom additions or integrations, email hello@fetchcat.dev.

Found an error or have a feature request? Open an issue with the run URL, a non-sensitive input example and what you expected.

Need help sharing it? See Apify’s guide to sharing a run when reporting an issue. Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.

Tried this scraper? We'd love to hear how it worked for you. Leave a review to help others choose the right tool and help us improve it. Your feedback means a lot to us.

Made with care for curious people, AI agents and the possibilities in data. ♥