Skip to main content
POST
YouTube Video Comment
Product: Visual Intelligence — Social Media Scraping Use case: Fetch video metadata, transcripts, captions, and comments from YouTube, Instagram, TikTok, and Twitter/X Host: https://mavi-backend.memories.ai/serve/api/v2 Auth: Authorization: sk-mavi-... (no Bearer prefix)
This API is used to get the comment list for YouTube videos with pagination support.
Channel routing guide: see Social Media Scraping Overview. Endpoints with a channel request field let you choose apify, rapid, or memories.ai; endpoints without this field use managed routing.
Each API call costs $0.01 USD.

Channel Options

If your request supports a channel option, use it to control how scraper data is sourced:
Recommendation: Start with memories.ai unless you need to force a specific provider.
  • The maximum value for pagination parameter page_size is 100
  • next_page_token should be null for the first request, use the next_page_token returned from the previous response for subsequent requests
  • When next_page_token in the response is null, it indicates all comments have been retrieved

Code Example

Request Body

Response

Returns the standard envelope (code / msg / data) wrapping a data.data array of comments.

Response Parameters

Pagination is asserted in the page Warning but the live response examined in this audit did not include a 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.
| 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 |

Authorizations

Authorization
string
header
required

Body

application/json
video_id
string
required

YouTube video ID

Example:

"Y2y4OpzKIK4"

page_size
integer
default:100

Number of comments returned per page, maximum value is 100, default is 100

Required range: x <= 100
Example:

100

next_page_token
string | null

Next page token, should be null for the first request, use the value returned from the previous response for subsequent requests

Example:

null

Response

200 - application/json

Successfully returned comment list

items
object[]

Comment list array

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