# YouTube Trending Videos API — fetcher.sh

> YouTube Trending Videos API — fetcher.sh is a paid API for AI agents from youtube.fetcher.sh, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10, last successful call 2026-08-27).

Fetches the current trending videos on YouTube via a pay-per-call REST endpoint using USDC micropayments

## Facts

- Endpoint: GET https://youtube.fetcher.sh/api/trending?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Last successful call: 2026-08-27
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/youtube-trending-videos-api-fetcher-sh-49187f45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2fc64B58LCztB90yQxLcf

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 youtube-trending-videos-api-fetcher-sh-49187f45
```

Example prompt: What YouTube videos are trending right now? Pull the current trending list from fetcher.sh — no API key needed, just pay per call.

## When to prefer this

Use this endpoint when you need YouTube trending data without setting up a Google API account, managing OAuth credentials, or committing to a subscription. Ideal for agents that make infrequent or one-off calls and want to pay per use in USDC. Prefer this over the official YouTube Data API when you want zero-setup access to trending data at low cost.

## Known failure modes

- Payment not received or USDC transaction fails — returns 402 Payment Required
- Invalid or unsupported region/category parameter — may return empty list or error
- YouTube scraping temporarily blocked or rate-limited — may return 503 or partial data
- Network timeout fetching upstream YouTube data — returns 504 or error response

## How this service works

YouTube (yt) data and scraping API: Search videos, channels, and playlists; fetch video details, comments, shorts, live streams, and trending. 15 REST endpoints from $0.005 per call — no account, no OAuth, no subscription. Pay with x402 (USDC on Base, Polygon, Arbitrum, Monad or Solana) or prepaid credits.

## Output

A list of currently trending YouTube videos including video IDs, titles, channel names, view counts, thumbnails, and metadata — reflecting real-time or near-real-time YouTube trending data for the requested region or category.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/youtube-trending-videos-api-fetcher-sh-49187f45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from youtube.fetcher.sh](https://www.zero.xyz/host/youtube.fetcher.sh/llms.txt)
