InsightSocial API
Instagram

Post › Comments

GET
/v1/instagram/post/comments

Returns a post's comments, each with its text, author, like count, reply count, and time, ranked by popularity by default or newest first.

Use it to read the comment section of one post, paging deeper with the cursor it returns; pass sort=recent for newest first.

Metered: 100–380 credits. We reserve the ceiling when the call starts and charge what it actually used when it finishes.

Re-running the exact same call within 6h is free.

Paginates by cursor — see Pagination.

x-api-key<token>

Your key from the dashboard. It starts with isk_.

In: header

Query Parameters

url*string

URL of the Instagram post (a /p/, /reel/, /reels/, or /tv/ link).

sort?string

Ordering: top (default) ranks by Instagram's popularity order (most-liked first); recent returns newest-first. Use recent when you are paging through a whole thread: Instagram ranks only the most-liked head, so a top walk starts repeating comments once you page past it.

Value in

  • "top"
  • "recent"
cursor?string

Pagination cursor. Use the next_cursor from the previous response to fetch the next page.

safe_url?boolean

When true, returns URL-safe profile picture links suitable for embedding.

scan_pages?integer

Optional, 1 to 3, default 1. With 2 or 3, the call reads that many pages, drops comments repeated across pages, and returns them all sorted by likes (sort=top) or newest first (sort=recent). Use it when the first page of a top-sorted thread is low-like comments. data.scan reports the pages read and billed and whether the thread ended.

Range1 <= value <= 3
label?string

Optional CSV of labels to add to every comment: sentiment, spam, question, purchase_intent, complaint, toxic, low_quality, injection. Without this param every page already carries sentiment, question, purchase_intent and complaint, free; label= adds the labels you name to them (the defaults keep running). Each comment gains computed.labels with probabilities (0 to 1), so you choose the cut-off; a comment that could not be judged carries labels: null. injection flags text that addresses an AI system and tries to direct it (flagged, p); it never drops or rewrites a row. judgments=off (or label=none) turns the default labels off. data.labels reports what was judged and billed.

exclude?string

Optional CSV (spam, low_quality), only with the same preset in label. Drops comments whose probability is 0.8 or higher and lists their ids in data.labels.dropped_ids. A comment that could not be judged is never dropped.

judgments?string

Optional, on (the default) or off. By default every row gains free judgments (computed.labels, and computed.relevance on search endpoints), reported in data.labels (mode default) and data.relevance (origin default), each with a status (complete, partial or skipped) and pending: the rows still being judged when the page was sent, which carry null now and are filled on your next call or cached read. Default judgments never add credits, never change an existing field, and never drop or reorder a row. off returns the page exactly as before, with none of those keys. label=none does the same.

Value in

  • "on"
  • "off"
dry_run?"1"

Optional. data.estimate reports rows_expected, rows_cached, label_credits_min, label_credits_max and base_credits. 0 credits charged.

Value in

  • "1"
label_evidence?"1"

Optional, only with label=. When 1, every labelled row also carries computed.labels_evidence. = { quote, sentence_index }: the sentence in the row that most clearly shows the label, copied verbatim. Absent or null when no single sentence shows it.

Value in

  • "1"
fit?"goal"

Optional. When goal, keep the rows and fields needed for the goal you pass in goal= (plus any that are uncertain, and the first and last), and replace the rest with a stub. data.held_back lists the held ids and a recall id that re-reads the full page from cache. Without this param the page is unchanged.

Value in

  • "goal"
goal?string

Required by fit=goal. What you are trying to do, in your own words, up to 300 characters.

fit_tokens?integer

Optional, only with fit=goal. Soft cap on how much of the page to keep, in tokens. Uncertain blocks and the first and last block are kept even if they exceed it.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/instagram/post/comments?url=string"
{  "success": true,  "platform": "instagram",  "endpoint": "/v1/instagram/profile/posts",  "data": {    "items": [      "…"    ],    "dropped": 0  },  "pagination": {    "next_cursor": "is2.eyJwIjoyfQ",    "has_more": true,    "page_size": 12  },  "credits_used": 20,  "credits_remaining": 9980,  "request_id": "req_1a2b3c4d5e6f",  "cached": false,  "idempotent_replay": false,  "charge_reason": "miss",  "free_call": false}