YouTube Comments API
Top-level comments on a video. Use `limit` to say how many.
YouTube API pricing — $0.50 per 1,000 results
POST
/api/public/v1/scrape/youtube/comments
Returns comment_api
Parameters#
| Parameters | Type | Required | Description |
|---|---|---|---|
video_id |
string | yes |
The id from watch?v=<id> in the video URL.
Example: dQw4w9WgXcQ
|
sort |
string | no |
`top` (the default, YouTube's own order) or `newest` (most recent first).
Example: newest
|
limit |
integer | no | The most results you want. You pay only for results that come back, never more than this. |
Results#
GET /runs/:id/results answers with this once the run has finished — one comment per row.
Every field we collect is in the row itself: one flat object per row, with nothing nested under a raw field. Fields the platform sends beyond the ones we name are included too, under the platform's own names. The example shows a recorded payload, so a live row can carry more.
This endpoint errs towards returning more rather than less, so expect a few extra rows alongside what you asked for. Everything still comes back typed and parsed the same way.