Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
YouTube: List a video's commentsTry it

YouTube: 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.

1 credita callWorks today
Try itDocs
1Request
The video: its id (11 letters, digits, - or _) or any of its links (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/..., /embed/...).
1 credit a call
Code, from the fields above
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"
    }
  }'
2Response

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"
    }
  ]
}

28 fields per comment

Every call returns them for each record, in the results of its JSON answer.

List a video's comments

28 fields
object
text
comment
id
id
The comment's id on YouTube (a reply's is its thread's, a dot, its own).
UgzXk2mQp8vRt4LwNc94AaABAg
ids.comment_id
id
UgzXk2mQp8vRt4LwNc94AaABAg
ids.video_id
id
k7Rt2mVxQ4s
ids.parent_id
object
A reply's thread: the comment it answers; null for a comment.
empty in the example

What it costs

Billed by the call: 1 credits, whatever the page holds (up to 20 comments). Pick how many calls a month.

Every plan

1 credit a call

Calls a month

100

Per 100 calls

Free

On the free plan, up to 100 calls a month.

Live

Built to run

Every call counts; a day is green at 95% successful.

Successful calls
100.00%
Median call
1.4 s
90 days agoToday
95% or more (SLA)90 to 95%75 to 90%Under 75%

A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.

Frequently asked questions

What people ask before calling youtube/comments/list.

List a video's comments

When do I 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.

What do I give it?
  • video (required): The video: its id (11 letters, digits, - or _) or any of its links (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/..., /embed/...).
  • comment: 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.
  • sort: 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.
What does it return?

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. Every record has the same fields, empty ones included: they are all listed above.

How do I get the next page?

Each answer ends with next: the following call, whole. Send it as it is; it is null after the last page. A page holds 20 records at most.

Pricing

What does a call cost?

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.

When is a call free?
  • an empty page (past the end, or nothing found)
  • a call that fails

Errors

What can go wrong?
  • ip_blocked (503, retry): YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free.
  • 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 (UgxAql952yQOWVUsad4AaABAg, a record's id) or its link (https://www.youtube.com/watch?v=e3OV3LnrS7o&lc=UgxAql952yQOWVUsad4AaABAg).
  • 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, retry): YouTube did not answer properly; retry later (not charged).
  • unexpected_answer (424): YouTube answered in a shape we do not read yet; we are told and fix it (not charged).
How long can a call take?

30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.

API and agents

Can my AI agent run it?

Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs youtube/comments/list. Its page for agents, in Markdown: youtube/comments/list.md.

Where is its full description?

The contract, as JSON: https://api.lobstr.io/v2/catalog/youtube/comments/list: every option, every field, the price and the errors. This page is drawn from it.

Ready to call it?

An API key in a minute, then the call above, from your code or your agent.