YouTube Video Comments API

Retrieve available comments for the specified YouTube content.

GET/v1/youtube/video/comments
1 credit per successful callCache window 5 minutesFull API reference ↗

Coverage is rolling out during preview. Test the endpoint you need before integrating. Unavailable operations return an explicit error and use no credits.

Try this endpoint

Enter the documented inputs, run a protected browser test, and inspect the JSON response.

GET/v1/youtube/video/comments
Optional parameters (17)

No API key needed for this protected browser test. Production calls require a server-side SocialQuery key.

Request preview
Copy this request into your server-side integration, or run a test to inspect the response.
curl -X GET 'https://socialquery.dev/v1/youtube/video/comments?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ' \
  -H "x-api-key: $SOCIALQUERY_API_KEY"

Request contract

Parameters

Pass these fields as query parameters. Production requests also require your server-side API key.

urlRequired
The public URL of the resource you want to look up.
Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ
continuationTokenOptional
Provide continuationToken in the format shown in the example.
Example: —
orderOptional
Provide order in the format shown in the example.
Example: top
searchTermOptional
Provide searchTerm in the format shown in the example.
Example: —
formatOptional
Provide format in the format shown in the example.
Example: html
max_resultsOptional
Provide max results in the format shown in the example.
Example: 10
channel_idOptional
Provide channel id in the format shown in the example.
Example: UC_x5XG1OV2P6uZZ5FSM9Ttw
labelOptional
Provide label in the format shown in the example.
Example: —
excludeOptional
Provide exclude in the format shown in the example.
Example: —
judgmentsOptional
Provide judgments in the format shown in the example.
Example: on
dry_runOptional
Provide dry run in the format shown in the example.
Example: 1
label_evidenceOptional
Provide label evidence in the format shown in the example.
Example: 1
fitOptional
Provide fit in the format shown in the example.
Example: goal
goalOptional
Provide goal in the format shown in the example.
Example: —
fit_tokensOptional
Provide fit tokens in the format shown in the example.
Example: 10
sinceOptional
Provide since in the format shown in the example.
Example: —
untilOptional
Provide until in the format shown in the example.
Example: —
cursorOptional
The pagination cursor returned by the previous response, if supported.
Example: —

Build a reliable integration.

Keep your key server-side

Pass your SocialQuery key in the x-api-key header. Never expose credentials in a browser bundle.

Check the response

Read success before using data. Preserve request_id when logging errors or contacting support.

Account for coverage

Test the fields you need. Provider availability varies, and unavailable operations use no credits.

More YouTube endpoints

View all →