Instagram Post Comments Scraper
Instagram comments scraper: scrape Instagram comments from post URLs with your session cookies. Export Instagram comments with text, author, verified flag, likes, reply counts and dates. Instagram post comments as JSON, CSV or Excel.
What it extracts
Every field below comes from the Actor’s published dataset schema.
| Field | Description | Type |
|---|---|---|
author.username | Commenter | text |
text | Comment | text |
created_at | Posted | date |
likes_count | Likes | number |
replies_count | Replies | number |
author.is_verified | Verified | boolean |
post_owner_username | Post author | text |
post_url | Post URL | link |
comment_id | Comment ID | text |
Input parameters
Generated from the Actor’s input schema — the same fields the Apify console shows.
| Parameter | Type | Required | Description |
|---|---|---|---|
urls | array | Required | Instagram post, reel or IGTV URLs, one per line, e.g. `https://www.instagram.com/p/DdHyaYAifb6/` or `https://www.instagram.com/reel/C9x.../`. |
maxComments | integer | Optional | Maximum number of comments to save for each post URL. Comments come most relevant first, the order Instagram shows them in. |
cookies | array | Required | Cookies from a logged-in Instagram session, exported as JSON. Instagram only shows comments to logged-in accounts. To export them: 1. Install the Cookie Editor extension from [here](https://microsoftedge.microsoft.com/addons/detail/cookieeditor/neaplmfkghagebokkhpjpoebhdledlfi) 2. Open Instagram 3. Export cookies as JSON 4. Paste the JSON in this field. For more, watch [this video](https://youtu.be/LK7EnP6YFPA). |
proxyConfiguration | object | Optional | Proxy used for every request. Residential is the default and is recommended: Instagram throttles datacenter IPs on the comment endpoints with HTTP 429, even for logged-in sessions. |
API access
Run this Actor from your own code over the Apify API.
{
"urls": [
"https://www.instagram.com/p/DdHyaYAifb6/"
],
"cookies": []
}curl -X POST \
"https://api.apify.com/v2/acts/logical_scrapers~instagram-post-comments-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls":["https://www.instagram.com/p/DdHyaYAifb6/"],"cookies":[]}'import { ApifyClient } from 'apify-client'
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' })
const run = await client.actor('logical_scrapers~instagram-post-comments-scraper').call({
"urls": [
"https://www.instagram.com/p/DdHyaYAifb6/"
],
"cookies": []
})
const { items } = await client.dataset(run.defaultDatasetId).listItems()
console.log(items)from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("logical_scrapers~instagram-post-comments-scraper").call(run_input={
"urls": [
"https://www.instagram.com/p/DdHyaYAifb6/",
],
"cookies": [],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)Runs are executed on Apify. Create an API token in your Apify account, then call the Actor over REST or with the official client for your language. The same input object works in the Apify console, so you can test interactively before automating.
Pricing
Data not currently verified. This Actor's pricing model is not declared in our source repository.
Current rates are published on the Apify listing and can change, so they are not duplicated here. See pricing on Apify
Reliability
Measured across all public Goldmine Actors on Apify, 2026-11-04. This is an account-level figure, not a per-Actor benchmark — per-Actor speed and completeness benchmarks are not yet published. Source.