# agdata YouTube Comments API

> agdata YouTube Comments API is a paid API for AI agents from agdata.shveik.dev, paid per call via x402, $0.018/call, status unknown (last checked 2026-10-12).

Fetches up to 100 comments from a YouTube video as structured JSON, including text, timestamp, likes, and reply count, sorted by top or newest.

## Facts

- Endpoint: POST https://agdata.shveik.dev/x402/youtube-comments?utm_source=zero.xyz
- Price: $0.018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agdata-youtube-comments-api-afba0409
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ffmw6-ngtTrcKr3KmXAib

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agdata-youtube-comments-api-afba0409 -d '<json body>'
```

Example prompt: Pull the top 50 comments from this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — sorted by top, and give them to me as structured data with likes and reply counts.

## When to prefer this

Choose this endpoint when you need structured comment data from a YouTube video quickly and without setting up YouTube API credentials. It is ideal for agents doing sentiment analysis, audience research, or content monitoring on YouTube videos, especially when paying per-call via stablecoins is acceptable and commenter identity is not required.

## Known failure modes

- Invalid or non-existent YouTube video URL returns an error
- Private or age-restricted videos may not return comments
- Limit parameter out of range (below 1 or above 100) is rejected
- Video with comments disabled returns empty or error response
- Network or upstream YouTube blocking causes partial or failed response

## How this service works

YouTube comments API for AI agents: send the URL of a video and get its comments as JSON: text, time, likes and reply count. Up to 100 comments per call. The commenters' names and handles are not returned. Pay per call in stablecoins; comments you paid for but did not get are refunded.

## Output

A JSON array of up to 100 comment objects, each containing the comment text, posting timestamp, number of likes, and reply count. Commenter names and handles are not included. Any comments paid for but not returned are automatically refunded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 300
  },
  "sort": {
   "enum": [
    "top",
    "newest"
   ],
   "type": "string"
  },
  "limit": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agdata-youtube-comments-api-afba0409/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agdata.shveik.dev](https://www.zero.xyz/host/agdata.shveik.dev/llms.txt)
