Social Fetch
YouTube

List YouTube video comments

Get comments on a YouTube video.

Operation

GET/v1/youtube/videos/comments
Cost: 1 credit

Headers

x-api-keystringrequired(header)

API key (`sfk_...`)

Parameters

urlstringrequired(query)

Link to the YouTube video whose comments should be listed.

min 1 chars · max 4096 chars

cursorstring(query)

Opaque cursor from a previous response to fetch the next page.

min 1 chars

orderstring(query)

Comment sort order. `top` returns highest-ranked comments; `newest` returns the most recent comments.

one of: top, newest

Response fields

data
objectrequired

Endpoint-specific response payload.

datalookupStatus
stringrequired

Whether the video was resolved for this request.

one of: found, not_found

datacomments
arrayrequired

Top-level comments for the resolved video.

datacomments[]id
stringrequired

Stable identifier for the comment.

min 1 chars

datacomments[]text
stringrequired

Comment text.

datacomments[]createdAt
stringrequired

ISO-8601 timestamp when the comment was published.

datacomments[]publishedTimeText
stringrequirednullable

Human-readable relative publish time when available.

datacomments[]likeCount
integerrequired

Like count on the comment.

≥ 0

datacomments[]replyCount
integerrequired

Direct reply count for the comment thread.

≥ 0

datacomments[]repliesCursor
stringrequirednullable

Use as `cursor` on comment replies. Null when unavailable.

datacomments[]author
objectrequired

Comment author.

datacomments[]authorhandle
stringrequired

Public YouTube channel handle without a leading @.

min 1 chars

datacomments[]authordisplayName
stringrequirednullable

Display name shown on the commenter channel.

datacomments[]authorplatformUserId
string

YouTube channel id when available.

datacomments[]authorverified
booleanrequired

Whether the commenter channel is verified.

datacomments[]authorcreator
booleanrequired

Whether the commenter is the video creator.

datacomments[]authoravatarUrl
stringrequirednullable

Profile image URL for the commenter when available.

datacomments[]authorchannelUrl
stringrequirednullable

Channel page URL when available.

datapage
objectrequired

Pagination information for this response.

datapagenextCursor
stringrequirednullable

Cursor to pass in the next request when more pages exist.

datapagehasMore
booleanrequired

Whether another page of comments is available.

meta
objectrequired

Metadata describing the request and billing outcome.

metarequestId
stringrequired

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integerrequired

Credits charged for this request.

≥ 0

metaversion
stringrequired

Public API version that served the response.

one of: v1

Code example

Responses

Comment listing result. Check `data.lookupStatus` for `found` or `not_found`.

Error codes

bad_requestinsufficient_creditsinternal_errorlookup_failedtemporarily_unavailableunauthorized

On this page