# DataForSEO YouTube Video Comments API

> Top-level comments on a YouTube video by video id, with author, text, likes, reply counts and timestamps.

Source: https://www.sandbase.ai/apis/dataforseo/v3/serp/youtube/video_comments/live/advanced
API reference: https://www.sandbase.ai/apis/dataforseo/v3/serp/youtube/video_comments/live/advanced/docs

## Facts

- Provider: DataForSEO
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/video_comments/live/advanced`
- Price: From $0.002 per call
- Capabilities: serp, youtube, comments
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/video_comments/live/advanced` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

## FAQ

### How do I use the DataForSEO YouTube Video Comments API?

Send a POST request to https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/video_comments/live/advanced with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the DataForSEO YouTube Video Comments API cost?

From $0.002 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the DataForSEO YouTube Video Comments API accept?

DataForSEO YouTube Video Comments takes no input parameters; send an empty JSON body.

### What does the DataForSEO YouTube Video Comments API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a DataForSEO developer account or API key?

No. DataForSEO YouTube Video Comments runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for DataForSEO API access separately.

## README

### DataForSEO YouTube Video Comments API

Top-level comments on a YouTube video by video id, with author, text, likes, reply counts and timestamps.

Request fields follow the official DataForSEO `/v3/serp/youtube/video_comments/live/advanced` task schema (one task per call). The response is DataForSEO's original JSON; results are in `tasks[].result`.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/serp/youtube/video_comments/live/advanced" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_id": "dQw4w9WgXcQ", "location_code": 2840, "language_code": "en"}'
```

#### Parameters

The JSON body is forwarded to the upstream endpoint. Main fields:

| Name | Description |
|---|---|
| `video_id` | YouTube video id, e.g. "dQw4w9WgXcQ". |
| `location_code` | Location code, e.g. 2840 for the United States. |
| `language_code` | Language code, e.g. "en". |

#### Reference

- Official docs: https://docs.dataforseo.com/v3/serp/youtube/video_comments/live/advanced/

#### Pricing

Billed at the actual cost of each call, about $0.002 for the request above. The cost grows with the number of rows, targets or tokens a call returns. Failed calls are not charged. Searches with no results are billed at their actual cost.
