List Instagram media comments

List the comments on an Instagram post or Reel by shortcode, URL or media id, top or newest first.

GET/v2/instagram/media/{media}/comments
3credits
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
mediastringrequiredpath

Shortcode, post or Reel URL, or numeric media id.

sortstringoptionalquery

`top` (default) or `newest`.

one of: top, newest

cursorstringoptionalquery

`nextCursor` from the previous page.

min 1 chars · max 16384 chars

labelsbooleanoptionalquery

Free AI labels on each row of the list, on by default. Each row gets `labels`: `question`, `complaint`, `purchaseIntent` and `sponsored` (true or false) and `sentiment` (`positive`, `neutral` or `negative`). Labels are model estimates and are never charged. Labels already made come back at once; the answer waits up to 0.7 seconds for new ones, and a row not labelled by then has `labels: null` and is labelled for your next call. Pass `true` to wait up to 2.5 seconds, or `false` to leave them out.

Response fields
41

Endpoint-specific response payload.

datalookupStatus
string

`found` when the post exists (with or without comments), `not_found` when it doesn't exist, was deleted, or belongs to a private account.

one of: found, not_found

One page of top-level comments, in the order of `sort`. Empty when the post has none, comments are off, or the list has ended.

datacomments[]id
string

Comment id.

pattern: ^\d+$

datacomments[]text
string

Comment text. Empty on a GIF-only comment.

datacomments[]gifUrl
stringnullable

The GIF a GIF comment carries. Null when the comment has none. Instagram CDN URL; it expires after a while.

datacomments[]createdAt
stringnullable

When it was posted.

Who wrote it. Null when unknown.

datacomments[]authorid
stringnullable

Instagram user id.

pattern: ^\d+$

datacomments[]authorhandle
stringnullable

Username, without @.

datacomments[]authordisplayName
stringnullable

Display name.

datacomments[]authoravatarUrl
stringnullable

Profile picture. Instagram CDN URL; it expires after a while.

datacomments[]authorverified
booleannullable

Whether the account is verified.

datacomments[]authorprivateAccount
booleannullable

Whether the account is private.

datacomments[]likeCount
integernullable

Likes.

≥ 0

datacomments[]replyCount
integernullable

Replies. Can exceed the replies listed, as Instagram hides some. Null when this view doesn't report it (replies carry no reply count).

≥ 0

datacomments[]isPinned
booleannullable

Whether the owner pinned the comment to the top. Null when this view doesn't say.

datacomments[]isByOwner
booleannullable

Whether the media's owner wrote the comment. Null when this view doesn't say.

datacomments[]isLikedByOwner
booleannullable

Whether the media's owner liked the comment. Null when this view doesn't say.

Free AI labels for this row, estimated by a model. `null` when the row couldn't be labelled in time (it's usually labelled by your next call); absent when labels are off.

datacomments[]labelsquestion
boolean

The author asks a question.

datacomments[]labelscomplaint
boolean

The author complains about a product, service, company, price or the content.

datacomments[]labelspurchaseIntent
boolean

The author wants or plans to buy, is choosing what to buy, or asks where or how to buy.

datacomments[]labelssponsored
boolean

The text promotes or sells something: an ad, a paid partnership, an affiliate or shop link, a discount code or promotional spam.

datacomments[]labelssentiment
string

The overall feeling the author expresses.

one of: positive, neutral, negative

Pagination state. Pass `nextCursor` as `cursor` for the next page while `hasMore` is true.

datapagekind
string

one of: cursor, offset, page

datapagenextCursor
stringnullable
datapagehasMore
booleannullable

Null when continuation is unknown for this page.

datapagestart
integernullable

≥ 0

datapagepage
integernullable

≥ 0

datapagecount
integernullable

≥ 0

datapagereturnedCount
integer

≥ 0

datapagetotal
integernullable

≥ 0

datapagetotalPages
integernullable

≥ 0

Metadata about the API response.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v2

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v2/instagram/media/DePzV26vLFB/comments?sort=newest" \
  -H "x-api-key: $SOCIALFETCH_API_KEY"

Responses

One page of the post's comments.