Get the comment list for YouTube videos.
channel request field let you choose apify, rapid, or memories.ai; endpoints without this field use managed routing.channel option, use it to control how scraper data is sourced:
| Channel | What it means | Typical trade-off |
|---|---|---|
apify | Uses Apify, a dedicated web scraping platform with broad content coverage. | Most stable and most complete results, but usually more expensive. |
rapid | Uses RapidAPI, a lower-cost aggregation platform. | Lower cost, but less stable and often narrower coverage. |
memories.ai | Managed routing by Memories.ai. | Automatically selects the best price/performance path for your request. |
memories.ai unless you need to force a specific provider.| Field | Type | Required | Description |
|---|---|---|---|
| video_id | string | Yes | YouTube video ID (the v parameter from a YouTube URL, e.g., Y2y4OpzKIK4) |
| page_size | number | No | Number of comments returned per page, maximum value is 100, default is 100 |
| next_page_token | string | null | No | Next page token, should be null for the first request, use the value returned from the previous response for subsequent requests |
| Parameter | Type | Description |
|---|---|---|
| items | array[object] | Comment list array |
| items[].id | string | Comment ID |
| items[].text | string | Comment content |
| items[].published_at | string | Comment published time (ISO 8601 format) |
| items[].like_count | number | Like count |
| items[].author | object | Comment author information |
| items[].author.id | string | Author ID |
| items[].author.name | string | Author username |
| items[].author.channel_url | string | Author channel URL |
| items[].reply_count | number | Reply count |
| next_page_token | string | null | Next page token, used to get the next page of data, null indicates all data has been retrieved |
| page_info | object | Pagination information |
| page_info.total_results | number | Total number of comments |
| page_info.results_per_page | number | Number of results per page |
YouTube video ID
"Y2y4OpzKIK4"
Number of comments returned per page, maximum value is 100, default is 100
x <= 100100
Next page token, should be null for the first request, use the value returned from the previous response for subsequent requests
null