Skip to content
OperationsYouTube

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.0

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

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

Options

videostringrequired
The video: its id (11 letters, digits, - or _) or any of its links (youtube.com/watch?v=..., youtu.be/..., /shorts/..., /live/..., /embed/...).
commentstring
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"top" | "newest"Default top
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.
cursorstring
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).

Record

Each record of results, in the envelope every call returns (Run an operation).

objectstring
idstring
The comment's id on YouTube (a reply's is its thread's, a dot, its own).
ids.comment_idstring
ids.video_idstring
ids.parent_idstring
A reply's thread: the comment it answers; null for a comment.
ids.author_channel_idstring
urlstring
The comment on its video's page (its link, lc).
positioninteger
Its place in the list, across pages.
is_replyboolean
textstring
The comment, as written, its lines apart (emojis as characters).
linkslist
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).
published_textstring
When it was written, as YouTube tells a visitor (4 months ago).
is_editedboolean
Edited by its author.
likesinteger
Its likes, as YouTube shows them: exact below a thousand, rounded above (1.2K is 1200).
reply_countinteger
Its replies, as YouTube counts them (a reply has none).
is_pinnedboolean
Pinned by the video's creator, first of the top comments.
is_heartedboolean
Hearted by the video's creator.
has_creator_replyboolean
The video's creator is among its replies.
author.channel_idstring
The author's channel (UC...).
author.namestring
As the comment shows it: its @handle, or its name.
author.handlestring
author.urlstring
Its channel's page.
author.thumbnailslist
Its avatar.
author.is_verifiedboolean
author.is_artistboolean
An official artist channel's badge.
author.is_creatorboolean
The video's own creator.
source_urlstring
The video's page on youtube.com (with the comment, for its replies).
observed_atdate

Errors

Its own, besides those of every call (Errors). A failed call is free.

CodeStatusWhat it means
ip_blocked503YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free. Retryable.
invalid_video422video 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_comment422comment 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_unavailable404YouTube has no such video (removed, private, or never one). Not charged.
comments_turned_off404The video's comments are turned off (videos made for kids, or by its creator's choice). Not charged.
site_unavailable503YouTube did not answer properly; retry later (not charged). Retryable.
unexpected_answer424YouTube 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
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.