Instagram Comments Scraper
Pricing
from $0.39 / 1,000 comments
Instagram Comments Scraper
Instagram comments scraper: post or reel URLs in; every comment with text, likes, date, link and the commenter's username, ID, verified badge and picture, newest first, past the first page. $0.49 per 1,000 comments on Starter, 4x cheaper than the most-used comments scraper. 99.5% run success.
Pricing
from $0.39 / 1,000 comments
Rating
0.0
(0)
Developer
Preternix
Maintained by CommunityActor stats
0
Bookmarked
62
Total users
19
Monthly active users
a day ago
Last modified
Categories
Features
Share
Use this Instagram comments scraper to collect public comments from post and reel links. The Instagram comments API returns comment text, dates, likes and commenter fields, so you can review feedback in a spreadsheet or an automated workflow.
Key features
- Read public top-level comments across multiple posts and reels in one run.
- Keep recent comments or rank the most liked comments from a configurable pool.
- Add available commenter details such as full name and private-account status at no extra charge.
Quick start
Paste this JSON into the Apify input form or send it as the Actor input from code.
{"directUrls": ["https://www.instagram.com/p/DDIJAfeyemG/"],"resultsLimit": 10,"sortCommentsBy": "NEWEST_FIRST"}
Input parameters
| Parameter | Type | Default or when omitted | What it does |
|---|---|---|---|
directUrls | List | Unset | Public post or reel URLs, as strings. Supply at least one. |
resultsLimit | Integer | 100 | Maximum comments delivered per post or reel. Range: 1 to 100,000. |
onlyCommentsNewerThan | Text | Unset | UTC date or relative period such as 7 days. Older comments are filtered out. The scraper stops paging when the final comment on a page has a readable timestamp older than the cutoff. |
sortCommentsBy | Text | "NEWEST_FIRST" | Use Instagram’s newest-first order or return the most liked comments in the pool read. Choices: NEWEST_FIRST, MOST_LIKED. |
includeCommenterDetails | Boolean | false | Look up additional commenter details, such as full name and private-account status. |
maxResults | Integer | No run-wide row cap | Maximum comments across all inputs. Minimum: 1. |
maxCommentsToRank | Integer | 2000 | With MOST_LIKED, size of the newest-comment pool to rank. The pool is at least resultsLimit. Range: 1 to 100,000. |
includeNestedComments | Boolean | false | Accepted for compatibility. Only top-level comments are returned; reply counts may be present. |
mode | Text | "comments" | Use comments for this Actor. |
proxyConfiguration | Object | {"useApifyProxy": true} | Leave at the Apify Proxy default for a typical run. |
Real JSON output
Selected fields from a real comment row. Commenter details are omitted from this example.
{"postUrl": "https://www.instagram.com/p/DDIJAfeyemG/","text": "❤️❤️❤️","timestamp": "2026-03-26T02:05:19.000Z","likesCount": 0,"position": 1,"isRanked": false,"repliesCount": null}
Pricing
Each comment delivered is charged once per run. There is no start fee or extra charge for commenter details. A post that is not found does not incur a charge.
Prices in USD per 1,000 of each billed event:
| Event | Free | Starter | Scale | Business and above |
|---|---|---|---|---|
| Comment rows | $0.49 | $0.49 | $0.45 | $0.39 |
Run from code
Set APIFY_TOKEN to your Apify API token. Install the SDK for your language with pip install apify-client or npm install apify-client.
Python
This example uses apify-client 3.x.
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ["APIFY_TOKEN"])run_input = {"directUrls": ["https://www.instagram.com/p/DDIJAfeyemG/"],"resultsLimit": 10,"sortCommentsBy": "NEWEST_FIRST"}run = client.actor("deepmine/instagram-comments-scraper").call(run_input=run_input)if run is None or run.status != "SUCCEEDED":raise RuntimeError("The Actor run did not succeed")for item in client.dataset(run.default_dataset_id).iterate_items():print(item)
Node.js
Run this script as an ES module, for example from a .mjs file.
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const input = {"directUrls": ["https://www.instagram.com/p/DDIJAfeyemG/"],"resultsLimit": 10,"sortCommentsBy": "NEWEST_FIRST"};const run = await client.actor('deepmine/instagram-comments-scraper').call(input);if (run?.status !== 'SUCCEEDED') throw new Error('The Actor run did not succeed');const dataset = client.dataset(run.defaultDatasetId);const limit = 1000;for (let offset = 0; ; offset += limit) {const { items } = await dataset.listItems({ limit, offset });for (const item of items) console.log(item);if (items.length < limit) break;}
Integrations: Apify MCP and n8n
Apify MCP: Add this remote server to your MCP client and sign in to Apify. Choose the Actor tool and use the JSON from Quick start. See the Apify MCP setup guide.
https://mcp.apify.com?tools=deepmine/instagram-comments-scraper
n8n: Use HTTP Request nodes with your Apify token stored in a Bearer Auth credential. Send the Quick start JSON in the first request. Use a Wait node between status requests and route on data.status: read the dataset on SUCCEEDED, stop on other terminal states, and wait again while the run is active. For large datasets, page with limit and offset.
POST https://api.apify.com/v2/acts/deepmine~instagram-comments-scraper/runsGET https://api.apify.com/v2/actor-runs/{{ $json.data.id }}GET https://api.apify.com/v2/datasets/{{ $json.data.defaultDatasetId }}/items
Frequently asked questions
Can I get replies to comments?
The public comments source returns top-level comments. repliesCount may still show how many replies a comment has.
Does Most liked look at every comment?
It ranks the newest comments it reads, up to the larger of maxCommentsToRank and resultsLimit. It can stop earlier if there are no more comments or your date filter cuts off the list.
Can I track new comments on a schedule?
Yes. Save the post URLs as an Apify task and schedule it, or trigger a run from n8n. Use onlyCommentsNewerThan to limit the date range and the row’s id to spot repeats across runs.
See the full input reference or the Actor API.