{"operation":"comments/list","version":"1.0.0","status":"pilot","title":"List a video's comments","summary":"One page of a YouTube video's comments, 20 at a time, top or newest first, each with its author, likes, replies and date; or the replies to one comment.","use_when":"You need what viewers say under a YouTube video, from its id or any of its links: its comments in YouTube's own order (top, the creator's pinned one first) or newest first, each with its text and links, its author (channel, handle, whether it is the video's creator), its likes, its number of replies, whether the creator hearted or answered it, and when it was written. Pass a comment's id (or its link) as `comment` for its replies. Follow `next` for the following page. For the video itself, use youtube/videos/get; what is said in it, youtube/transcripts/get.","categories":["Social media"],"icon":"comments","source":"youtube","input":{"type":"object","required":["video"],"additionalProperties":false,"properties":{"video":{"type":"string","minLength":11,"maxLength":500,"description":"The video: its id (11 letters, digits, - or _) or any of its links (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/..., /embed/...).","examples":["e3OV3LnrS7o","https://www.youtube.com/watch?v=dQw4w9WgXcQ"]},"comment":{"type":"string","minLength":18,"maxLength":600,"description":"A comment of the video, to list its replies (10 a page, oldest first) instead of the video's comments: its id (`id` of a record, Ug...) or its link (watch?v=...&lc=Ug...). A reply's id lists its thread's replies.","examples":["UgxAql95_2yQOWVUsad4AaABAg"]},"sort":{"enum":["top","newest"],"default":"top","description":"The order of the video's comments, as its sort menu: top, YouTube's own order of the most relevant (the creator's pinned comment first); newest, the latest first (a pinned comment stays first). Replies come oldest first."},"cursor":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,12000}$","description":"Where to go on, from `next` in an answer, as it is: opaque, and only for the video, sort and comment it was given with (otherwise `invalid_cursor`)."}}},"pagination":{"style":"cursor","page_size":20,"next":{"video":"<as it was written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","ids","url","position","is_reply","text","links","published_text","is_edited","likes","reply_count","is_pinned","is_hearted","has_creator_reply","author","source_url","observed_at"],"$defs":{"image":{"type":"object","additionalProperties":false,"required":["url","width","height"],"properties":{"url":{"type":"string"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]}}}},"properties":{"object":{"const":"comment"},"id":{"type":"string","description":"The comment's id on YouTube (a reply's is its thread's, a dot, its own)."},"ids":{"type":"object","additionalProperties":false,"required":["comment_id","video_id","parent_id","author_channel_id"],"properties":{"comment_id":{"type":"string"},"video_id":{"type":"string"},"parent_id":{"type":["string","null"],"description":"A reply's thread: the comment it answers; null for a comment."},"author_channel_id":{"type":["string","null"]}}},"url":{"type":"string","description":"The comment on its video's page (its link, `lc`)."},"position":{"type":"integer","minimum":1,"description":"Its place in the list, across pages."},"is_reply":{"type":"boolean"},"text":{"type":["string","null"],"description":"The comment, as written, its lines apart (emojis as characters)."},"links":{"type":"array","description":"The links of the comment, in order: a web page (`link`, its address itself, not YouTube's redirect), a moment of the video (`timestamp`, with its `seconds`), another video, a playlist, a hashtag or a channel (an @mention).","items":{"type":"object","additionalProperties":false,"required":["type","text","url","seconds"],"properties":{"type":{"enum":["link","timestamp","video","playlist","hashtag","channel"]},"text":{"type":["string","null"]},"url":{"type":["string","null"]},"seconds":{"type":["integer","null"]}}}},"published_text":{"type":["string","null"],"description":"When it was written, as YouTube tells a visitor (4 months ago)."},"is_edited":{"type":"boolean","description":"Edited by its author."},"likes":{"type":"integer","description":"Its likes, as YouTube shows them: exact below a thousand, rounded above (1.2K is 1200)."},"reply_count":{"type":"integer","description":"Its replies, as YouTube counts them (a reply has none)."},"is_pinned":{"type":"boolean","description":"Pinned by the video's creator, first of the top comments."},"is_hearted":{"type":"boolean","description":"Hearted by the video's creator."},"has_creator_reply":{"type":"boolean","description":"The video's creator is among its replies."},"author":{"type":"object","additionalProperties":false,"required":["channel_id","name","handle","url","thumbnails","is_verified","is_artist","is_creator"],"properties":{"channel_id":{"type":["string","null"],"description":"The author's channel (UC...)."},"name":{"type":["string","null"],"description":"As the comment shows it: its @handle, or its name."},"handle":{"type":["string","null"]},"url":{"type":["string","null"],"description":"Its channel's page."},"thumbnails":{"type":"array","items":{"$ref":"#/$defs/image"},"description":"Its avatar."},"is_verified":{"type":"boolean"},"is_artist":{"type":"boolean","description":"An official artist channel's badge."},"is_creator":{"type":"boolean","description":"The video's own creator."}}},"source_url":{"type":"string","description":"The video's page on youtube.com (with the comment, for its replies)."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"1 credit a call, one page of 20 comments or 10 replies. Newest first costs no more than top. An empty page, a video whose comments are turned off or that does not exist, and a failed call are free.","free":["empty","failed"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"ip_blocked","status":503,"retryable":true,"retry_after":60,"message":"YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free."},{"code":"invalid_video","status":422,"detail":true,"message":"`video` is a YouTube video: its id (dQw4w9WgXcQ) or one of its links (https://www.youtube.com/watch?v=dQw4w9WgXcQ, https://youtu.be/dQw4w9WgXcQ, a /shorts/ link)."},{"code":"invalid_comment","status":422,"detail":true,"message":"`comment` is a comment of the video: its id (UgxAql95_2yQOWVUsad4AaABAg, a record's `id`) or its link (https://www.youtube.com/watch?v=e3OV3LnrS7o&lc=UgxAql95_2yQOWVUsad4AaABAg)."},{"code":"video_unavailable","status":404,"detail":true,"message":"YouTube has no such video (removed, private, or never one). Not charged."},{"code":"comments_turned_off","status":404,"detail":true,"message":"The video's comments are turned off (videos made for kids, or by its creator's choice). Not charged."},{"code":"site_unavailable","status":503,"retryable":true,"message":"YouTube did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"YouTube answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"video":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s"},"records":[{"object":"comment","id":"UgzXk2mQp8vRt4LwNc94AaABAg","ids":{"comment_id":"UgzXk2mQp8vRt4LwNc94AaABAg","video_id":"k7Rt2mVxQ4s","parent_id":null,"author_channel_id":"UCa1B2c3D4e5F6g7H8i9J0kL"},"url":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s&lc=UgzXk2mQp8vRt4LwNc94AaABAg","position":1,"is_reply":false,"text":"The full recipe with grams: https://acmekitchen.com/sourdough","links":[{"type":"link","text":"https://acmekitchen.com/sourdough","url":"https://acmekitchen.com/sourdough","seconds":null}],"published_text":"1 month ago","is_edited":false,"likes":48,"reply_count":3,"is_pinned":true,"is_hearted":true,"has_creator_reply":false,"author":{"channel_id":"UCa1B2c3D4e5F6g7H8i9J0kL","name":"@acmekitchen","handle":"@acmekitchen","url":"https://www.youtube.com/@acmekitchen","thumbnails":[{"url":"https://yt3.ggpht.com/acme-kitchen=s88-c-k-c0x00ffffff-no-rj","width":88,"height":88}],"is_verified":true,"is_artist":false,"is_creator":true},"source_url":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s","observed_at":"2026-12-03T12:00:00Z"},{"object":"comment","id":"UgyR7nKd2LqWv9sBx6p4AaABAg","ids":{"comment_id":"UgyR7nKd2LqWv9sBx6p4AaABAg","video_id":"k7Rt2mVxQ4s","parent_id":null,"author_channel_id":"UCz9Y8x7W6v5U4t3S2r1Q0pO"},"url":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s&lc=UgyR7nKd2LqWv9sBx6p4AaABAg","position":2,"is_reply":false,"text":"My first loaf rose at 2:15 exactly like yours. Thank you!","links":[{"type":"timestamp","text":"2:15","url":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s&t=135s","seconds":135}],"published_text":"3 weeks ago","is_edited":true,"likes":1200,"reply_count":0,"is_pinned":false,"is_hearted":false,"has_creator_reply":false,"author":{"channel_id":"UCz9Y8x7W6v5U4t3S2r1Q0pO","name":"@bakeswithjen","handle":"@bakeswithjen","url":"https://www.youtube.com/@bakeswithjen","thumbnails":[],"is_verified":false,"is_artist":false,"is_creator":false},"source_url":"https://www.youtube.com/watch?v=k7Rt2mVxQ4s","observed_at":"2026-12-03T12:00:00Z"}]},{"request":{"video":"k7Rt2mVxQ4s","comment":"UgzXk2mQp8vRt4LwNc94AaABAg"}},{"request":{"video":"k7Rt2mVxQ4s","sort":"newest","cursor":"gAAAAABpLmEXAMPLEcursorSealedByTheApiDoNotReadIt0000000000"}}],"health":{"canaries":[{"from":"youtube/videos/search","into":"video","skip":["comments_turned_off"],"min_records":1},{"video":"dQw4w9WgXcQ","sort":"newest","min_records":15}],"required_fields":["id","url","published_text","author"],"sparse":{"links":"Comments with a link or a timestamp: 2 of 20 a page (03/12).","text":"A comment YouTube serves with no words (`\"content\": \"\"`): 1 of 20 newest on a music video (03/12)."}},"changelog":[{"version":"1.0.0","date":"2026-12-03","notes":"First version: a video's comments by its id or any of its links, signed out, 20 a page, top or newest first, or a comment's replies; each with its text and links, author, likes, replies, date, and whether the creator pinned, hearted or answered it."}],"object":"operation","id":"youtube/comments/list","site":{"title":"YouTube","domain":"youtube.com","color":"#FF5A4E"}}