# agdata YouTube Comments Fetcher

> agdata YouTube Comments Fetcher 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-10).

Fetches structured YouTube comment data (text, likes, replies, metadata) for a given video URL, sorted and limited as specified

## Facts

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

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-fetcher-42b0e109 -d '<json body>'
```

Example prompt: Grab the top 50 comments from this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — sorted by top, and give me the text, like counts, and reply counts for each.

## When to prefer this

Choose this endpoint when you need structured, machine-readable YouTube comment data — including like counts, reply counts, timestamps, and ownership flags — without managing YouTube Data API quotas or OAuth credentials. Ideal for agents that need to analyze audience sentiment, monitor reactions, or audit brand mentions on YouTube videos, paying only per call in stablecoins with no account setup required.

## Known failure modes

- Invalid or non-YouTube URL returns an error
- Video with comments disabled returns empty results or error
- Limit out of range (below 1 or above 100) returns a validation error
- Payment failure or insufficient USDC balance blocks the call
- Private or age-restricted videos may return no results
- Network or scraping block on YouTube's side may cause temporary failures

## How this service works

Unblock any URL as Markdown, or get search, social, maps, jobs and news as data. Paid per call in stablecoins over x402 or MPP, with no account.

## Output

Returns an array of comment objects, each containing: comment ID, comment text, pinned status, byOwner flag, isReply flag, postedAt timestamp, likeCount, ownerLiked flag, replyCount, and textTruncated flag. Structured JSON suitable for downstream analysis or display.

## 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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "Ugzge340…",
  "text": "can conf…",
  "pinned": null,
  "byOwner": false,
  "isReply": false,
  "postedAt": "1 year a…",
  "likeCount": 323000,
  "ownerLiked": true,
  "replyCount": 962,
  "textTruncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agdata-youtube-comments-fetcher-42b0e109/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)
