# x402vid Trending on YouTube

> x402vid Trending on YouTube is a paid API for AI agents from x402vid.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-20).

Returns AI-analyzed trending YouTube videos for a given region and optional niche, with a structured trend report powered by Muse Spark 1.3.

## Facts

- Endpoint: POST https://x402vid.com/tools/trending_on_youtube?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402vid-trending-on-youtube-6fe0a979
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ESPjXSP90foGBmdx7sXQ_

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 x402vid-trending-on-youtube-6fe0a979 -d '<json body>'
```

Example prompt: What are the top 10 trending YouTube videos in the UK right now in the fitness niche? Give me a full trend report.

## When to prefer this

Use this endpoint when you need real-time, AI-interpreted YouTube trending data broken down by region and optional niche — especially useful for content strategy, market research, or competitive intelligence workflows. It is preferable over raw YouTube API calls because it layers AI analysis (via Muse Spark 1.3) on top of trending data, returning structured insights rather than just raw video metadata. Choose this when an agent needs to understand what is trending and why, not just list videos.

## Known failure modes

- Invalid or unsupported region code returns an error or defaults to US
- Exceeding max of 15 videos returns a validation error
- Payment failure in USDC results in a 402 response blocking the call
- Niche string too vague or unrecognized may return generic results rather than niche-specific ones
- YouTube data latency may cause results to lag slightly behind real-time trends

## How this service works

x402vid — endpoint discovery for YouTube intelligence: pay-per-call via x402 on Base. Muse Spark 1.3 video intelligence, 26 tools (20 paid +6 free) from $0.01. Free before you pay: GET /api/v1/catalog (every tool + price) → GET /api/v1/quote (freeze price) → video_preview. No subscriptions.

## Output

Returns a JSON object containing the queried region code, an array of trending video objects (up to 15), and a structured trending_report object summarizing patterns, themes, and AI-generated insights about what's driving engagement in that region and niche.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "niche": {
   "type": "string",
   "description": "Optional niche to score trends against"
  },
  "region": {
   "type": "string",
   "description": "2-letter region code (default US)"
  },
  "num_videos": {
   "type": "integer",
   "description": "Videos to return (default 10, max 15)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "region": {
   "type": "string"
  },
  "trending": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "trending_report": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402vid-trending-on-youtube-6fe0a979/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402vid.com](https://www.zero.xyz/host/x402vid.com/llms.txt)
