Skip to main content
POST
YouTube comments

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required
max_comments
integer
default:20

Max comments (up to 1000)

Required range: 1 <= x <= 1000
sort_by
enum<string>

Sorting order. Options: TOP_COMMENTS = Top comments

Available options:
TOP_COMMENTS
newer_than
string

Only newer than (date or period; sorts newest first). e.g. 2026-01-01 or 30 days

Response

Run completed.

session_id
string

Session identifier for this run.

kind
string

Data source identifier for this endpoint.

url
string
max_comments
integer
sort_by
string
newer_than
string
partial
boolean

True when the scrape stopped early and returned the records collected so far.

human
string

Markdown summary of the result, for display.

machine
object

Structured result payload.

total_points
integer

Points charged for this run.