---
title: "YouTube Video Comments"
method: GET
path: "/v1/youtube/comments"
tags: ["YouTube"]
---

# YouTube Video Comments

`GET /v1/youtube/comments`

## Request

- Base URL: `https://apidirect.io`
- URL: `https://apidirect.io/v1/youtube/comments`
- Auth: API key in header `X-API-Key`

Get comments (comment threads) from a YouTube video. Returns each comment's text, author, author channel, like count, reply count, publication date, last-updated date, a direct link, and preview replies. Supports sorting by most recent or relevance, and fetching up to 20 pages in a single call.

**Price:** $0.005 per page. **Free tier:** 50 requests/month.

## Query parameters

- `url` string, required
- `pages` integer
- `sort_by` 'most_recent' | 'relevance'

## Response `200`

Successful response

- GetYoutubeCommentsResponse: Inferred from a live response. Any field can be null or absent, and new fields may be added at any time.
  - `comments` object[], nullable
    - `comment_id` string, nullable
    - `text` string, nullable
    - `author` string, nullable
    - `author_channel_id` string, nullable
    - `author_channel_url` string, nullable
    - `author_thumbnail` string, nullable
    - `likes` number, nullable
    - `reply_count` number, nullable
    - `date` string, nullable
    - `updated_date` string, nullable
    - `url` string, nullable
    - `video_id` string, nullable
    - `channel_id` string, nullable
    - `source` string, nullable
    - `domain` string, nullable
    - `replies` object[], nullable
      - `comment_id` string, nullable
      - `text` string, nullable
      - `author` string, nullable
      - `author_channel_id` string, nullable
      - `author_channel_url` string, nullable
      - `author_thumbnail` string, nullable
      - `likes` number, nullable
      - `date` string, nullable
      - `url` string, nullable
      - `video_id` string, nullable
  - `pages` number, nullable
  - `count` number, nullable

## Other responses

- `400`: Bad request - missing or invalid parameters
- `401`: Unauthorized - invalid or missing API key
- `402`: Free tier used up for this endpoint and no payment method on file (`payment_required`).
- `403`: Account blocked after a failed payment (`account_blocked`).
- `404`: Video not found, private, or unavailable
- `429`: Rate limit exceeded or too many concurrent requests
- `500`: Internal server error
- `502`: Temporary failure retrieving YouTube data. Please retry shortly.
- `503`: Service temporarily unavailable. Please retry shortly.
- `504`: The request timed out

---

[API](https://skmtc.dev/apidirect/apis/api-direct.md) · [All operations](https://skmtc.dev/apidirect/apis/api-direct/llms.txt) · [OpenAPI document](https://skmtc.dev/apidirect/apis/api-direct/revisions/fa8c68d70bd0?raw)
