Black Friday: double credits on your first month, any plan · ends Sunday, Nov 29Cyber Monday extension: double credits on your first month, any plan · ends tonightBlack Friday: 2x creditsCyber Monday: 2x creditsSee plans
ScraperCity logo

Instagram Comments API Documentation

Instagram Comments

Get the comments on Instagram posts and reels: comment text, date, likes, replies, and the username and name of who wrote each.

$0.0009 per commentPOST /api/v1/scrape/instagram-comments

Parameters

NameTypeRequiredDescription
postsstring[]OptionalInstagram post or reel links (up to 200)Example: ["https://www.instagram.com/p/DPZ4r2sEc8F/"]
maxResultsnumberOptionalThe most comments to return in all (default 100, up to 10,000)Default: 100Example: 100

Examples

Comments on a post

curl -X POST https://app.scrapercity.com/api/v1/scrape/instagram-comments \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "posts": [
      "https://www.instagram.com/p/DPZ4r2sEc8F/"
    ],
    "maxResults": 500
  }'

Check status and download

curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
  -H "Authorization: Bearer YOUR_API_KEY"

# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o instagram-comments.csv

Use Cases

  • •Find the people engaging with a competitor's posts
  • •Read what customers say under a brand's posts
  • •Giveaway and contest entries

Best Practices

  • •Charged per comment returned; a search is charged at least what it cost to run, shown as a minimum charge
  • •Most searches finish in 1-5 minutes
  • •maxResults is the total across all posts sent
  • •CSV columns: post_url, comment_url, commented_at, text, likes, replies, username, full_name, verified

Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.

Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.