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
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
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

Response fields
33

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.

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

Code example

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

Responses

One page of the post's comments.