Video › Comments
Returns comments on a video, each with the author name, comment text, like count, reply count, and publish timestamp.
Use it for a video's top-level comments, then pass the reply token it returns to video/comment/replies to open a single thread.
Metered: 20–100 credits. We reserve the ceiling when the call starts and charge what it actually used when it finishes.
Re-running the exact same call within 6h is free.
Paginates by cursor — see Pagination.
Authorization
apiKey Your key from the dashboard. It starts with isk_.
In: header
Query Parameters
Full URL of the YouTube video to fetch comments for
Continuation token to get more comments. Get 'continuationToken' from previous response.
Order of comments: 'top' (default, YouTube's relevance ranking) or 'newest' (exact newest-first on comment.published_at; each next page continues strictly older with no overlap: the lane for date-window and recency pulls).
Value in
- "top"
- "newest"
Filter comments to those containing this search term.
Text format for comment bodies: 'html' (default) or 'plainText'.
Value in
- "html"
- "plainText"
Comments per page, 1-100. The default page is already 100, so set this only to shrink a page; out-of-range values are rejected with a free 400 rather than degrading the response.
1 <= value <= 100YouTube channel id to fetch channel-level community comments for (instead of a video's comments).
Optional CSV of labels to add to every comment: sentiment, spam, question, purchase_intent, complaint, toxic, low_quality, injection. Without this param every page already carries sentiment, question, purchase_intent and complaint, free; label= adds the labels you name to them (the defaults keep running). Each comment gains computed.labels with probabilities (0 to 1), so you choose the cut-off; a comment that could not be judged carries labels: null. injection flags text that addresses an AI system and tries to direct it (flagged, p); it never drops or rewrites a row. judgments=off (or label=none) turns the default labels off. data.labels reports what was judged and billed.
Optional CSV (spam, low_quality), only with the same preset in label. Drops comments whose probability is 0.8 or higher and lists their ids in data.labels.dropped_ids. A comment that could not be judged is never dropped.
Optional, on (the default) or off. By default every row gains free judgments (computed.labels, and computed.relevance on search endpoints), reported in data.labels (mode default) and data.relevance (origin default), each with a status (complete, partial or skipped) and pending: the rows still being judged when the page was sent, which carry null now and are filled on your next call or cached read. Default judgments never add credits, never change an existing field, and never drop or reorder a row. off returns the page exactly as before, with none of those keys. label=none does the same.
Value in
- "on"
- "off"
Optional. data.estimate reports rows_expected, rows_cached, label_credits_min, label_credits_max and base_credits. 0 credits charged.
Value in
- "1"
Optional, only with label=. When 1, every labelled row also carries computed.labels_evidence. = { quote, sentence_index }: the sentence in the row that most clearly shows the label, copied verbatim. Absent or null when no single sentence shows it.
Value in
- "1"
Optional. When goal, keep the rows and fields needed for the goal you pass in goal= (plus any that are uncertain, and the first and last), and replace the rest with a stub. data.held_back lists the held ids and a recall id that re-reads the full page from cache. Without this param the page is unchanged.
Value in
- "goal"
Required by fit=goal. What you are trying to do, in your own words, up to 300 characters.
Optional, only with fit=goal. Soft cap on how much of the page to keep, in tokens. Uncertain blocks and the first and last block are kept even if they exceed it.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/youtube/video/comments?url=string"{ "success": true, "platform": "instagram", "endpoint": "/v1/instagram/profile/posts", "data": { "items": [ "…" ], "dropped": 0 }, "pagination": { "next_cursor": "is2.eyJwIjoyfQ", "has_more": true, "page_size": 12 }, "credits_used": 20, "credits_remaining": 9980, "request_id": "req_1a2b3c4d5e6f", "cached": false, "idempotent_replay": false, "charge_reason": "miss", "free_call": false}Video › Comment › Replies GET
Returns the replies under one comment, each with the reply text, author details, like count, and publish date. Use it after video/comments: pass the reply token that endpoint returned, and keep paging until no replies remain to get the whole thread. **Metered: 20–100 credits.** We reserve the ceiling when the call starts and charge what it actually used when it finishes. Re-running the exact same call within 6h is free. Paginates by `cursor` — see [Pagination](/docs/pagination).
Video › Files GET
Returns the downloadable video streams for a video, each with a direct media URL, mime type, resolution, quality label, frame rate, bitrate, and duration. Use it when you need the video file itself; video/audio returns audio-only streams and video/thumbnails returns still images. **100 credits** per call. Re-running the exact same call within 6h is free.