# YouTube Comment Replies API

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

YouTube

Returns the public replies to a comment on a YouTube video, short or live replay, oldest first, from a comment link. Each reply has its text, posting time, like count, the replier's handle and channel, and whether the creator wrote or hearted it. A video link with the comment's ID works too. [Overview](https://socialtap.dev/apis/youtube/replies/index.md)

GET `/v1/youtube/replies`

> [!NOTE]
>
> **Good to know**
>
> - YouTube threads are one level deep: an answer to a reply joins the same list, usually starting with an @handle.
> - published_at is the latest time YouTube's relative label allows, and likes above a thousand are rounded: approximate_fields lists both.
> - A comment that isn't a top-level comment of the video returns not_found. Comments turned off or a private video return private_or_unavailable.
> - A page can hold fewer replies than limit asks for: YouTube leaves some out of the list, so a walk can end short of the comment's reply count.

## Example

cURL:

```shell
curl -G 'https://socialtap.dev/v1/youtube/replies' \
  --data-urlencode 'comment_id=UgwPwTibxdgqCHZxktd4AaABAg' \
  --data-urlencode 'url=https://www.youtube.com/watch?v=dQw4w9WgXcQ' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

TypeScript SDK:

```typescript
// Save this as app.mjs (an ES module) and run: node app.mjs
import { SocialTap } from "socialtap";

const client = new SocialTap(); // apiKey defaults to process.env.SOCIALTAP_API_KEY

const res = await client.youtube.replies.list({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", comment_id: "UgwPwTibxdgqCHZxktd4AaABAg" });
console.log(res.data);
console.log(res.credits.charged, res.meta.request_id);
```

Python SDK:

```python
from socialtap import SocialTap

client = SocialTap()  # api_key defaults to os.environ["SOCIALTAP_API_KEY"]

res = client.youtube.replies.list(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ", comment_id="UgwPwTibxdgqCHZxktd4AaABAg")
print(res.data)
print(res.credits.charged, res.meta.request_id)
```

Go SDK:

```go
package main

import (
	"context"
	"fmt"
	"log"

	socialtap "socialtap.dev/sdk/go"
)

func main() {
	ctx := context.Background()
	client, err := socialtap.NewClient() // the API key defaults to $SOCIALTAP_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	res, err := client.YouTube.Replies.List(ctx, socialtap.YouTubeRepliesParams{URL: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", CommentID: socialtap.String("UgwPwTibxdgqCHZxktd4AaABAg")})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Data)
	fmt.Println(res.Credits.Charged, res.Meta.RequestID)
}
```

200 OK:

```json
{
  "data": [
    {
      "approximate_fields": [
        "published_at",
        "metrics.like_count"
      ],
      "author": {
        "avatar_url": "https://yt3.ggpht.com/ytc/AIdro_nJq_NOvMgX1eLOpBXL_PGwjMi3GqZleaYXD9HwJ_4I-Lk=s88-c-k-c0x00ffffff-no-rj",
        "display_name": null,
        "id": "UCuyLyWFcsnyZF77-W7WFnFg",
        "is_verified": false,
        "url": "https://www.youtube.com/channel/UCuyLyWFcsnyZF77-W7WFnFg",
        "username": "daikerio6830"
      },
      "edited_at": null,
      "id": "UgwPwTibxdgqCHZxktd4AaABAg.8z9UZMV20LP8zH9Ebkoohj",
      "is_by_post_author": false,
      "is_edited": false,
      "is_liked_by_author": false,
      "is_pinned": false,
      "metrics": {
        "like_count": 3300,
        "reply_count": 0
      },
      "parent_id": "UgwPwTibxdgqCHZxktd4AaABAg",
      "platform": "youtube",
      "platform_specific": {},
      "post_id": "dQw4w9WgXcQ",
      "published_at": "2019-11-28T22:47:48Z",
      "text": "Nice troll 👌",
      "unknown_fields": [],
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgwPwTibxdgqCHZxktd4AaABAg.8z9UZMV20LP8zH9Ebkoohj"
    }
  ],
  "page": {
    "has_more": true,
    "next_cursor": "c1.EXAMPLE_CURSOR",
    "next_cursor_expires_at": "2026-10-26T12:00:00Z",
    "end_reason": null
  },
  "meta": {
    "request_id": "req_3f9c2a7d1e8b4c6a9f0e2d4b6a8c0e1f",
    "platform": "youtube",
    "source": "api",
    "is_cached": false,
    "credits_charged": 1,
    "latency_ms": 1000,
    "fetched_at": "2026-10-25T12:00:00Z",
    "input": {
      "kind": "video",
      "id": "dQw4w9WgXcQ",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    },
    "credits_remaining": 9999,
    "client_request_id": null,
    "warnings": []
  }
}
```

The first item of the page; long arrays and strings are shortened for display.

## Query parameters

| Name | Type | Description | Example |
| --- | --- | --- | --- |
| `url` required | `string`<br>max 2,048 chars | A YouTube comment link (youtube.com/watch?v=\<id>&lc=\<comment>, /shorts/\<id>?lc=…, youtu.be/\<id>?lc=…: what a comment's time links to), or the video's link or 11-character ID with comment_id. | `https://www.youtube.com/watch?v=dQw4w9WgXcQ&lc=UgwPwTibxdgqCHZxktd4AaABAg` |
| `comment_id` optional | `string`<br>max 160 chars | The ID of the top-level comment whose replies to list, as the YouTube Comments API returns it. A reply's ID (\<comment>.\<reply>) lists the thread it is in. Required unless url has lc=. | `UgwPwTibxdgqCHZxktd4AaABAg` |
| `since` optional | `string`<br>date-time | Only items at or after this time: RFC 3339 (2026-10-01T12:00:00Z) or a date (2026-10-01, midnight UTC). A newest-first list stops there, so older pages aren't fetched or charged; a list in another order filters each page. YouTube dates replies by a relative label ("2 days ago"), so replies up to one label unit older can come back. | `2026-10-01` |
| `until` optional | `string`<br>date-time | Only items before this time (exclusive): RFC 3339 or a date (midnight UTC). The list is oldest first, so the walk stops at the first reply at or after it. | `2026-10-08` |
| `limit` optional | `integer`<br>min 1<br>max 100 | Items per page, up to the endpoint's page size (the default; larger values are reduced to it). Every page costs the same, so a smaller limit makes a walk cost more. | `100` |
| `cursor` optional | `string` | page.next_cursor from the previous response, with the other parameters unchanged. Omit for the first page. | — |

Every endpoint also accepts [`max_age`](https://socialtap.dev/docs/reference/index.md#common-params), [`max_credits`](https://socialtap.dev/docs/reference/index.md#common-params) and [`fields`](https://socialtap.dev/docs/reference/index.md#common-params).

## Response

`{data, page, meta}`: `data` is an array of [comment](https://socialtap.dev/resources/comment/index.md) objects, `page` says how to get the next page. The same fields on all 14 platforms that serve it. [`meta`](https://socialtap.dev/docs/reference/index.md#meta) describes the request.

| Field | Type | Description |
| --- | --- | --- |
| `data[].id` | `string` | Platform-native comment ID (string), exactly as the platform writes it, its prefix included. |
| `data[].post_id` | `string` | ID of the post commented on (equals post.id). |
| `data[].parent_id` | `string` or `null` | ID of the comment this replies to; null for top-level comments. |
| `data[].url` | `string` (uri) or `null` | Permalink, when the platform has one. |
| `data[].text` | `string` | Comment body as plain text. |
| `data[].author` | `object` | The commenting account. For a deleted account, id and username are null and display_name is the platform's label. |
| `data[].author.id` | `string` or `null` | Platform-native account ID; null when only the handle is known. |
| `data[].author.username` | `string` or `null` | Handle without the @; null when the account has none. |
| `data[].author.display_name` | `string` or `null` | Display name shown on the profile. |
| `data[].author.url` | `string` (uri) or `null` | Canonical profile URL. |
| `data[].author.avatar_url` | `string` (uri) or `null` | Profile picture URL. Platform CDN URLs can expire within hours. |
| `data[].author.is_verified` | `boolean` or `null` | Platform verification badge; null where the platform has no badge. |
| `data[].published_at` | `string` (date-time) or `null` | When the comment was posted, RFC 3339 UTC. From a relative time ("3 weeks ago"), the latest time it allows (the fetch time minus that amount), listed in approximate_fields. |
| `data[].edited_at` | `string` (date-time) or `null` | When the comment was last edited, RFC 3339 UTC; null when never edited or when the platform marks edits without a time (see is_edited). |
| `data[].is_edited` | `boolean` or `null` | The comment was edited after posting (the platform's edited mark); null when the platform does not say. |
| `data[].is_pinned` | `boolean` or `null` | Pinned by the post's author. |
| `data[].is_liked_by_author` | `boolean` or `null` | Liked or hearted by the post's author. |
| `data[].is_by_post_author` | `boolean` or `null` | Written by the post's author (the creator's own comment, marked as such by the platform). |
| `data[].metrics` | `object` | Counts at fetch time; null = not shown, 0 = zero. |
| `data[].metrics.like_count` | `integer` or `null` | Likes or upvotes; never negative. |
| `data[].metrics.reply_count` | `integer` or `null` | Direct replies. |
| `data[].approximate_fields` | `string[]` | JSON paths of values rounded by the platform or parsed from display text. A list path (external_links) means the list may be incomplete. \[\] when all exact. |
| `data[].unknown_fields` | `string[]` | JSON paths of lists whose \[\] means unknown, not none (a source that cannot see them). \[\] when every list is known. |

Besides [the errors any request can return](https://socialtap.dev/docs/errors/index.md): [`not_found`](https://socialtap.dev/docs/errors/index.md#not_found) (404) and [`private_or_unavailable`](https://socialtap.dev/docs/errors/index.md#private_or_unavailable) (403) when the item can't be returned; [`invalid_cursor`](https://socialtap.dev/docs/errors/index.md#invalid_cursor) (400).

## Pagination

Send the same request with `cursor` set to `page.next_cursor` until `page.has_more` is `false`. [Pagination](https://socialtap.dev/docs/pagination/index.md)

- **Order**: Oldest first
- **Page size**: Up to 100 replies (the default; `limit` lowers it)
- **Cursor lifetime**: 1 hour

## Pricing

**1 credit** per successful page ($0.75–$1.97 per 1,000). Failed requests are free. [How credits work](https://socialtap.dev/docs/credits/index.md)

Endpoint ID `youtube.replies` · operationId `youtube.replies.list`

---

[HTML version](https://socialtap.dev/docs/reference/youtube/replies/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
