Get the comment list for YouTube videos.
Documentation Index
Fetch the complete documentation index at: https://api-tools.memories.ai/llms.txt
Use this file to discover all available pages before exploring further.
https://mavi-backend.memories.ai/serve/api/v2
Auth: Authorization: sk-mavi-... (no Bearer prefix)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 |
code / msg / data) wrapping a data.data array of comments.
| Parameter | Type | Description |
|---|---|---|
| code | integer | Response code (200 on success) |
| msg | string | Response message |
| data | object | Wrapper object |
| data.data | array[object] | Comment list |
| data.data[].comment_id | string | Comment ID (also repeated inside comment.comment_id) |
| data.data[].video_id | string | Echo of the requested YouTube video ID |
| data.data[].reply_count | string | Reply count, returned as a string |
| data.data[].comment | object | The comment payload |
| data.data[].comment.comment_id | string | Same comment ID, repeated |
| data.data[].comment.parent_comment_id | string | null | Always null for top-level comments (this endpoint only returns top-level) |
| data.data[].comment.text | string | Comment text |
| data.data[].comment.author_name | string | Author handle (e.g. @StevenSchapiro) — flat, not nested under author |
| data.data[].comment.author_url | string | Author channel URL |
| data.data[].comment.publish_time | string | Published time, ISO 8601 |
| data.data[].comment.like_count | string | Like count, returned as a string |
next_page_token or page_info block at any level. If your script depends on pagination, verify the field path against your own request before shipping — it may live on a different envelope or only appear when there are more pages than page_size.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