# agdata YouTube Search & Profile API

> agdata YouTube Search & Profile API is a paid API for AI agents from agdata.shveik.dev, paid per call via x402, $0.032/call, status unknown (last checked 2026-10-14).

Fetch YouTube video search results or a channel's profile data as structured JSON, paid per call with no account required.

## Facts

- Endpoint: POST https://agdata.shveik.dev/v1/mpp/youtube?utm_source=zero.xyz
- Price: $0.032/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agdata-youtube-search-profile-api-0da6dbb6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qu40EHFV3mLcIeeR8nC_o

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-search-profile-api-0da6dbb6 -d '<json body>'
```

Example prompt: Search YouTube for 'beginner Python tutorials' and give me the top 10 results with view counts, likes, duration, and channel info.

## When to prefer this

Choose this endpoint when you need structured YouTube video or channel data — view counts, likes, durations, thumbnails, subscriber counts — without managing YouTube API quotas, credentials, or scraping infrastructure. It is especially useful for AI agents that need fresh YouTube data on demand in a pay-per-call model with no account setup. Prefer this over the official YouTube Data API when you want zero-setup access billed in stablecoins.

## Known failure modes

- Invalid or unknown channel username/ID returns empty results or 404-equivalent error
- Query string exceeding 500 characters is rejected with a validation error
- Limit outside 1–20 range causes a schema validation error
- YouTube rate limiting or blocking on the backend may result in a service error or empty response
- Payment failure (insufficient USDC or x402/MPP issue) prevents the call from completing

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

A JSON array of video objects, each containing video ID, URL, title, description, thumbnail URL, view count, like count, comment count, duration in seconds, published date, and channel details (name, ID, URL, subscriber count). In profile mode, results are scoped to a specific channel's uploads.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "profile",
    "search"
   ],
   "type": "string"
  },
  "limit": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1
  },
  "query": {
   "type": "string",
   "maxLength": 500
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "QhD015WU…",
  "url": "https://…",
  "likes": 13000,
  "title": "Beginner…",
  "views": 483801,
  "thumbnail": "https://…",
  "channel_id": "UCZDA1kA…",
  "channel_url": "https://…",
  "description": "The web…",
  "subscribers": 627000,
  "channel_name": "Tinkernu…",
  "published_at": "2021-11-…",
  "comments_count": 232,
  "duration_seconds": 456
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agdata-youtube-search-profile-api-0da6dbb6/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)
