> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). The sections below mirror the orientation block in [`/llms.txt`](https://www.socialfetch.dev/llms.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need a structured operation inventory. The catalog covers documented operations with on-site reference pages.

## This page

- **On-site (HTML):** [https://www.socialfetch.dev/docs/api/v1/youtube/videos/comments/replies/get](https://www.socialfetch.dev/docs/api/v1/youtube/videos/comments/replies/get)
- **Markdown (.mdx) URL:** [https://www.socialfetch.dev/docs/api/v1/youtube/videos/comments/replies/get.mdx](https://www.socialfetch.dev/docs/api/v1/youtube/videos/comments/replies/get.mdx)

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** [https://www.socialfetch.dev/openapi.json](https://www.socialfetch.dev/openapi.json)

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [SDK reference](https://www.socialfetch.dev/docs/sdk-reference.mdx) — exhaustive SDK method inventory and route mapping for agents, tooling, and power users.
- [Choose the right endpoint](https://www.socialfetch.dev/docs/choose-endpoint.mdx) — task-oriented route selection for smoke tests, profiles, list endpoints, and single-item lookups.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — fast comparison of identifiers, pagination, outcomes, media download, and SDK coverage.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).

---
# List YouTube comment replies (https://www.socialfetch.dev/docs/api/v1/youtube/videos/comments/replies/get)

## Summary

Get replies to a YouTube comment.

**Tags:** `YouTube`

## HTTP

- **Method:** GET
- **Path:** `/v1/youtube/videos/comments/replies`
- **Base URL:** `https://api.socialfetch.dev`

## Capability summary

- **SDK mapping:** `client.youtube.getVideoCommentReplies({ cursor })`
- **Pagination:** cursor via `cursor`, next cursor: `data.page.nextCursor`, has more: `data.page.hasMore`

## Credits

- **Base:** 1 credit per successful lookup.
- **Maximum on success (200):** 1 credit.
- **Normalization failure (502):** 1 credit charged.
- **Authoritative field:** `meta.creditsCharged`.

## Authentication

- **`x-api-key`**: API key (`sfk_...`)

## Parameters

### `cursor` (query)

- **Required:** yes
- **Constraints:** type `string`; minLength: 1
- **Description:** Comment `repliesCursor` from Video Comments endpoint, or `page.nextCursor` to paginate replies.

## Pagination

This endpoint uses **cursor-based pagination** via the `cursor` query parameter.

- Read **hasMore** from `data.page.hasMore`.
- When that value is `true`, read **nextCursor** from `data.page.nextCursor` and pass it as the `cursor` query parameter on the **next** request (URL-encode when building a query string).
- Omit `cursor` on the **first** request.
- Stop when **hasMore** is `false` or **nextCursor** is null (end of list).

## Responses (status codes)

- **200**: Comment replies for the supplied cursor.
- **400**: Invalid request
- **401**: Missing or invalid API key
- **402**: Insufficient credits
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed from the response (unexpected or invalid data).
- **503**: Service temporarily unavailable; safe to retry with backoff.

## Response body (200)

Comment replies for the supplied cursor.

### Field outline

- **data** (required) — type `object`. Endpoint-specific response payload.
  - **replies** (required) — type `array`. Replies returned for this page.
    - _items:_
      - **id** (required) — type `string`; minLength: 1. Stable identifier for the reply.
      - **text** (required) — type `string`. Reply text.
      - **publishedAt** (required) — type `string`; nullable. ISO-8601 timestamp when the reply was published.
      - **publishedTimeText** (required) — type `string`; nullable. Human-readable relative publish time when available.
      - **replyLevel** (required) — type `integer`; minimum: 0. Nesting depth of the reply within the thread.
      - **likes** (required) — type `integer`; minimum: 0. Like count on the reply.
      - **replyCount** (required) — type `integer`; minimum: 0. Direct reply count beneath this reply.
      - **author** (required) — type `object`. Reply author.
        - **name** (required) — type `string`; minLength: 1. Display name or handle for the reply author.
        - **channelId** (required) — type `string`; nullable. YouTube channel id when available.
        - **channelUrl** (required) — type `string`; nullable. Channel page URL when available.
        - **avatarUrl** (required) — type `string`; nullable. Profile image URL for the author when available.
        - **isVerified** (required) — type `boolean`. Whether the author channel is verified.
        - **isCreator** (required) — type `boolean`. Whether the author is the video creator.
  - **page** (required) — type `object`. Pagination information for this response.
    - **nextCursor** (required) — type `string`; nullable. Cursor for the next page when another page exists.
    - **hasMore** (required) — type `boolean`. Whether another page of replies is available.
- **meta** (required) — type `object`. Metadata describing the request and billing outcome.
  - **requestId** (required) — type `string`; minLength: 1. Unique request identifier for tracing this API call.
  - **creditsCharged** (required) — type `integer`; minimum: 0. Credits charged for this request.
  - **version** (required) — type `string`; enum: v1. Public API version that served the response.

### Example JSON (found_paginated)

```json
{
  "data": {
    "replies": [
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHEjU2AWVXk",
        "text": "Bro is 15 years late",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 1,
        "likes": 3400,
        "replyCount": 0,
        "author": {
          "name": "@Cheese-fs8sh",
          "channelId": "UCBLgz6ukUD-XAsZY0Pel2HQ",
          "channelUrl": "https://youtube.com/@Cheese-fs8sh",
          "avatarUrl": "https://yt3.ggpht.com/plix_oeMCArXHz6oVTi-vlJ8YxbTeUFgYXg7lOfILOcaFWu0kz3n5st8vFaSaK4hqqqinB8np0E=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHEHm78J5Jn",
        "text": "Only took 15 years for YouTube to get rickrolled I guess",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 1,
        "likes": 2000,
        "replyCount": 0,
        "author": {
          "name": "@SleepyBear_SB",
          "channelId": "UCU8BOA0E3OXcWQz0m8J_b4A",
          "channelUrl": "https://youtube.com/@SleepyBear_SB",
          "avatarUrl": "https://yt3.ggpht.com/YWpXosPyhwob1SxwUVqMS26ZCYQqitJzrltIHAV2ZVdbRlh8tfZkQZj4Hj0KDiGmihIbtJOOUh8=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHIU6q1Jh4a",
        "text": "Yesssssss",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 1,
        "likes": 22,
        "replyCount": 0,
        "author": {
          "name": "@koreywinn1863",
          "channelId": "UCZwYsAKy5e5WGO62Xa7msjA",
          "channelUrl": "https://youtube.com/@koreywinn1863",
          "avatarUrl": "https://yt3.ggpht.com/d5GnavsZThvJLqaCn-jpBTpvgFjs-5xsgFiJye0zxrZOLQO-0gduSLtF2_tFn6SuyfC_-U0c=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHEBULT5fJJ",
        "text": "Youtube accidently got rickrolled",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 1,
        "likes": 1100,
        "replyCount": 0,
        "author": {
          "name": "@ShyGuy_cc",
          "channelId": "UCSD9AzRp9sX_xD30kobRKew",
          "channelUrl": "https://youtube.com/@ShyGuy_cc",
          "avatarUrl": "https://yt3.ggpht.com/uCkB_R4HK76i_0N4d0BO_GaNZe-3xGegU6FjU-Z4hhO2LTkdqmJwsOyDj0cFrBr-4JubJYA=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHE9eIiztxR",
        "text": "YOUTUBE AND ONE LIKE WOOHAAAAH",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 1,
        "likes": 6700,
        "replyCount": 5,
        "author": {
          "name": "@linganguliguliwatcha",
          "channelId": "UCjFRISlX-LPxiqViJAE3h6Q",
          "channelUrl": "https://youtube.com/@linganguliguliwatcha",
          "avatarUrl": "https://yt3.ggpht.com/AbGqKNjK9k5tyOqdV7cdXx-GgnGuuGQ5wj8RN42U5YCDvYHT0vaOKXGFahR36iaDPseGN08DjQ=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHGluCp9lWL",
        "text": "HAI YOUTUBEEEEE",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 2,
        "likes": 430,
        "replyCount": 0,
        "author": {
          "name": "@plushy771",
          "channelId": "UCbSQtvqJpiX8AaRInq5-49Q",
          "channelUrl": "https://youtube.com/@plushy771",
          "avatarUrl": "https://yt3.ggpht.com/6JSfhEpCNCGAam13kOkaIGwA15ycff8ezVMEtKNwhvmSg4GA4WhK98Yez7fsWhW25pe73tVyJwk=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHG1p7VMwAB",
        "text": " @linganguliguliwatcha  hi",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 2,
        "likes": 208,
        "replyCount": 1,
        "author": {
          "name": "@ehhauh",
          "channelId": "UC_K_YBTOyS5XHl6w_Dp0CxA",
          "channelUrl": "https://youtube.com/@ehhauh",
          "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_lNT6zFLM6lRjkTQzMW5wpq3MJSfVBScD4twmsjisFnrSMsdeYivqQHoujpGOGgNFTu2Q=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHQ1oSooc7x",
        "text": "​ @linganguliguliwatcha 😊",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 2,
        "likes": 75,
        "replyCount": 0,
        "author": {
          "name": "@Achfef",
          "channelId": "UCt3ifxAl04803akGAt62aLg",
          "channelUrl": "https://youtube.com/@Achfef",
          "avatarUrl": "https://yt3.ggpht.com/9trTGdWcj1C3YkRN-HmNVbohrSSJ7qfX50tPqvLb9Vy3N16fqoLLN8fszuCR3YtE9L9SC58mzA=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHEAOCSlaNN",
        "text": "new comment alert",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 1,
        "likes": 1900,
        "replyCount": 0,
        "author": {
          "name": "@NashiraArif",
          "channelId": "UCWrbmlBO2iW7jwhSuvLsgXQ",
          "channelUrl": "https://youtube.com/@NashiraArif",
          "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_n1guDiz8iQIUgFGnmh5VA5PJlNSiWQwX3Ik0ywlPv8JUDRXZiF6wxDvbC7F3YSi1BdlA=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHG6xmplPpk",
        "text": "YOOO 18 HOURS AGO.\nI CAN GUARANTEE YOUTUBE GOT RICK ROLLED 💀💙",
        "publishedAt": "2025-05-19T04:38:01.460Z",
        "publishedTimeText": "1 year ago",
        "replyLevel": 1,
        "likes": 14,
        "replyCount": 2,
        "author": {
          "name": "@sawmangames",
          "channelId": "UCtzH0UMM4oQrI1SxO2k6jqg",
          "channelUrl": "https://youtube.com/@sawmangames",
          "avatarUrl": "https://yt3.ggpht.com/Z95gYQAMQ6RPWYLOeXbo4kZWXC9zDZKaOCGZRwvWH_r9Da4ivMGbMHLHgDhTdD-Qyx1wYrfE=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      }
    ],
    "page": {
      "nextCursor": "Eg0SC2RRdzR3OVdnWGNRGAYyuQIKsQFnZXRfY29tbWVudF93aXRoX3JlcGxpZXNfc3RyZWFtLS1DbE1JZ0FRVkY3ZlJPQnBKQ2tVSTJGOFFnQVFZQnlJN2g4azE3NVVTajhwVDZoQ0IydnZjYVptbE5PYjlnOXprc0dfM0FpTGtwd19vZnhvNWQ1QzhrVzhyVW9LdTZLOVJZU05SZkxLSlVsbGNfaklRQnhJRkNLQWdHQUVpRGdvTUNKZlZuOEFHRU5EUGdvc0QaUBIaVWd6Z2UzNDBkQmdCNzVoV0JtNTRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQABIMoIBAggBKAdCL2NvbW1lbnQtcmVwbGllcy1pdGVtLVVnemdlMzQwZEJnQjc1aFdCbTU0QWFBQkFn",
      "hasMore": true
    }
  },
  "meta": {
    "requestId": "req_01example_paginated",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Example JSON (single_reply)

```json
{
  "data": {
    "replies": [
      {
        "id": "UgxwFVx3ERR0ZDPpJ3F4AaABAg.AWyZIYUCJ3FAWygH7SL-9b",
        "text": "I'm right here with you 😊",
        "publishedAt": "2026-05-19T04:43:33.912Z",
        "publishedTimeText": "2 hours ago",
        "replyLevel": 1,
        "likes": 0,
        "replyCount": 0,
        "author": {
          "name": "@Flourish-cash",
          "channelId": "UClxUIS_CP9jgJHmVY7SDMUw",
          "channelUrl": "https://youtube.com/@Flourish-cash",
          "avatarUrl": "https://yt3.ggpht.com/w6NlAuuMK8UBxxuuED3OaLwuk4VxQNhKi5AmnD3MDEceZAj0JnUe5UZmc1t4Hd97rts5O9Ve=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      }
    ],
    "page": {
      "nextCursor": null,
      "hasMore": false
    }
  },
  "meta": {
    "requestId": "req_01example_single",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Example JSON (last_page)

```json
{
  "data": {
    "replies": [
      {
        "id": "UgzOIBYEjun6K5SXSyF4AaABAg.AWkpetbsJ13AWl6aRumkja",
        "text": "https://youtu.be/W9QVQvGSsKI?si=trY8Kn9WVtQfnQWY .",
        "publishedAt": "2026-05-14T04:38:38.475Z",
        "publishedTimeText": "5 days ago",
        "replyLevel": 1,
        "likes": 2,
        "replyCount": 1,
        "author": {
          "name": "@Komunaka-s2n",
          "channelId": "UCbSErL1z653P_vdGQsT_mZA",
          "channelUrl": "https://youtube.com/@Komunaka-s2n",
          "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_njGmxKfoPrBMaI_BcpyasarYRb-fAoAoQbz4AUVTUbPx-Uvg-WVnjh5erCqOgSOACzYA=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      },
      {
        "id": "UgzOIBYEjun6K5SXSyF4AaABAg.AWkpetbsJ13AWri4lsaIIV",
        "text": "​ @Komunaka-s2n  why",
        "publishedAt": "2026-05-17T04:38:38.475Z",
        "publishedTimeText": "2 days ago",
        "replyLevel": 2,
        "likes": 0,
        "replyCount": 0,
        "author": {
          "name": "@eduardocabrera2226",
          "channelId": "UCfQjnAEqJ9mG76fjHYjncLQ",
          "channelUrl": "https://youtube.com/@eduardocabrera2226",
          "avatarUrl": "https://yt3.ggpht.com/f-WsLrEJI2MNcBltvAgvZAuMTZV-3DN3CtJOv6Ud1VxUJeFzvsXoSfBFwvlAECMr1BwKVT6-C6I=s88-c-k-c0x00ffffff-no-rj",
          "isVerified": false,
          "isCreator": false
        }
      }
    ],
    "page": {
      "nextCursor": null,
      "hasMore": false
    }
  },
  "meta": {
    "requestId": "req_01example_last",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Machine-readable error codes

When an error JSON body is returned, it may include one of these `error.code` values (derived from the OpenAPI schemas for this operation; additional codes may exist at runtime):

- `bad_request`

## Error handling & retries

Interpret HTTP status codes using the descriptions below. Do not assume a JSON body unless the OpenAPI schema defines one for that status.

- **400**: Invalid request **Retry:** Fix the request; retrying the same invalid payload will not help.
- **401**: Missing or invalid API key **Retry:** Fix the API key first; retrying without changes will not help.
- **402**: Insufficient credits **Retry:** Do not retry without resolving billing/credits (retrying the same request will not help).
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed from the response (unexpected or invalid data). **Retry:** May be transient; a few retries with backoff are reasonable.
- **503**: Service temporarily unavailable; safe to retry with backoff. **Retry:** Usually safe to retry with exponential backoff and jitter.

### Suggested client defaults

- Send the API key using the `x-api-key` header on every request.
- On `503` (and sometimes `502`), retry with backoff; cap retries and surface a clear error to the user.
- On `402`, surface an actionable billing message rather than blind retries.

## Examples

### TypeScript SDK

```typescript
import { SocialFetchClient } from "@socialfetch/sdk";

const client = new SocialFetchClient({
  apiKey: process.env.SOCIALFETCH_API_KEY!,
});

const result = await client.youtube.getVideoCommentReplies({
  cursor: "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6Z2UzNDBkQmdCNzVoV0JtNTRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pnZTM0MGRCZ0I3NWhXQm01NEFhQUJBZw%3D%3D",
});

if (!result.ok) {
  console.error(result.error);
} else {
  console.log(result.value.data);
}
```

### Node.js

```javascript
const response = await fetch(
  "https://api.socialfetch.dev/v1/youtube/videos/comments/replies?cursor=Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6Z2UzNDBkQmdCNzVoV0JtNTRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pnZTM0MGRCZ0I3NWhXQm01NEFhQUJBZw%3D%3D",
  {
    headers: {
      "x-api-key": "YOUR_API_KEY",
    }
  }
);

const data = await response.json();
console.log(data);
```

### cURL

```bash
curl "https://api.socialfetch.dev/v1/youtube/videos/comments/replies?cursor=Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6Z2UzNDBkQmdCNzVoV0JtNTRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pnZTM0MGRCZ0I3NWhXQm01NEFhQUJBZw%3D%3D" \
  -H "x-api-key: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://api.socialfetch.dev/v1/youtube/videos/comments/replies?cursor=Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6Z2UzNDBkQmdCNzVoV0JtNTRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pnZTM0MGRCZ0I3NWhXQm01NEFhQUJBZw%3D%3D",
    headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()
print(data)
```

### Example: next page (pagination)

After a successful response, if pagination is not finished, request the next page using `cursor` (URL-encode when composing the query string):

```javascript
const previous = await response.json();
const nextCursor = previous?.data?.page?.nextCursor;
const hasMore = previous?.data?.page?.hasMore;
if (!hasMore || nextCursor == null) {
  // no more pages
} else {
  const nextUrl = new URL("https://api.socialfetch.dev/v1/youtube/videos/comments/replies");
  nextUrl.searchParams.set("cursor", nextCursor);
  // optionally preserve sort: nextUrl.searchParams.set("sortBy", "latest");
  const nextResponse = await fetch(nextUrl.toString(), {
    headers: { "x-api-key": "YOUR_API_KEY" },
  });
  const nextData = await nextResponse.json();
}
```