List a video's comments
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.
youtube/comments/list1 credit a callv1.0.0When to use it
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.
Try it
The options on the left write the call; the answer on the right is the contract's example. With your API key, the same call returns live data.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "youtube", "operation": "comments/list", "options": { "video": "https://www.youtube.com/watch?v=k7Rt2mVxQ4s" } }'
An example answer. Run it on your own input.
{ "object": "run", "id": "run_2ftnzecmlwtzpmavbefiqhfjke", "livemode": true, "source": "youtube", "operation": "comments/list", "version": "1.0.0", "schema_url": "https://api.lobstr.io/v2/catalog/youtube/comments/list", "options": { "video": "https://www.youtube.com/watch?v=k7Rt2mVxQ4s" }, "fields": null, "status": "succeeded", "count": 2, "has_more": false, "next": null, "cost": { "credits": 1 }, "results": [ { "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" } ] }
Options
videostringrequiredcommentstringid of a record, Ug...) or its link (watch?v=...&lc=Ug...). A reply's id lists its thread's replies.sort"top" | "newest"Default topcursorstringnext in an answer, as it is: opaque, and only for the video, sort and comment it was given with (otherwise invalid_cursor).Record
Each record of results, in the envelope every call returns (Run an operation).
objectstringidstringids.comment_idstringids.video_idstringids.parent_idstringids.author_channel_idstringurlstringlc).positionintegeris_replybooleantextstringlinkslistlink, 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).published_textstringis_editedbooleanlikesintegerreply_countintegeris_pinnedbooleanis_heartedbooleanhas_creator_replybooleanauthor.channel_idstringauthor.namestringauthor.handlestringauthor.urlstringauthor.thumbnailslistauthor.is_verifiedbooleanauthor.is_artistbooleanauthor.is_creatorbooleansource_urlstringobserved_atdateErrors
Its own, besides those of every call (Errors). A failed call is free.
| Code | Status | What it means |
|---|---|---|
ip_blocked | 503 | YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free. Retryable. |
invalid_video | 422 | 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). |
invalid_comment | 422 | 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). |
video_unavailable | 404 | YouTube has no such video (removed, private, or never one). Not charged. |
comments_turned_off | 404 | The video's comments are turned off (videos made for kids, or by its creator's choice). Not charged. |
site_unavailable | 503 | YouTube did not answer properly; retry later (not charged). Retryable. |
unexpected_answer | 424 | YouTube answered in a shape we do not read yet; we are told and fix it (not charged). |
Price
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. What a credit costs on each plan: Credits and pricing.
Changelog
1.0.02026-12-03