Skip to documentation
Browse documentation

List comments

Fetch top or newest video comments, or replies using a returned replies continuation. Published times retain YouTube’s displayed relative text; rounded counts are marked approximate.

Capability ID youtube.comments.list
Maximum runtime 120 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

limit integer optional

Maximum number of results to return. From 1 to 500. Default: `100`.

Example 5
max_pages integer optional

Maximum number of result pages to fetch. From 1 to 100. Default: `5`.

parent_comment_id string optional

Comment ID whose replies_continuation is being fetched.

replies_continuation string optional

The replies_continuation from a returned comment. Supply its parent_comment_id and the same video URL.

sort string optional

Top comments or newest first. Applies to top-level comments. Allowed values: `top`, `newest`. Default: `top`.

Available values topnewest
url string required

Public URL of the page to fetch.

Example https://www.youtube.com/watch?v=dQw4w9WgXcQ

Response

Successful output is returned in results[0].data.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

No example output is available for this capability yet.

Execution behavior

A 200 response completed inline. A 202 response was queued; poll GET /jobs/:id until the job reaches completed or failed.