Instagram

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.

Run on Apify159 userson Apify, measured 2026-11-04

What it extracts

Every field below comes from the Actor’s published dataset schema.

FieldDescriptionType
author.usernameCommentertext
textCommenttext
created_atPosteddate
likes_countLikesnumber
replies_countRepliesnumber
author.is_verifiedVerifiedboolean
post_owner_usernamePost authortext
post_urlPost URLlink
comment_idComment IDtext

Input parameters

Generated from the Actor’s input schema — the same fields the Apify console shows.

ParameterTypeRequiredDescription
urlsarrayRequiredInstagram post, reel or IGTV URLs, one per line, e.g. `https://www.instagram.com/p/DdHyaYAifb6/` or `https://www.instagram.com/reel/C9x.../`.
maxCommentsintegerOptionalMaximum number of comments to save for each post URL. Comments come most relevant first, the order Instagram shows them in.
cookiesarrayRequiredCookies 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).
proxyConfigurationobjectOptionalProxy 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.

Inputjson
{
  "urls": [
    "https://www.instagram.com/p/DdHyaYAifb6/"
  ],
  "cookies": []
}
REST — run and get resultsbash
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":[]}'
JavaScript — apify-clientjavascript
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)
Python — apify-clientpython
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

99.7% run success rate

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.

Field and input tables are generated from this Actor's published schemas. Usage figures measured 2026-11-04 from the Apify listing.