# Sna4an YouTube Data API

> Sna4an YouTube Data API is a paid API for AI agents from sna4an-social.vercel.app, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-13).

Fetches YouTube data (videos, channels, search results, trending, comments) via a RapidAPI-backed proxy endpoint using path-based sub-endpoint routing

## Facts

- Endpoint: POST https://sna4an-social.vercel.app/api/yt-api
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sna4an-youtube-data-api-edc2e919
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8y7rVLT1p7bDGcxtQzlDm

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 sna4an-youtube-data-api-edc2e919 -d '<json body>'
```

Example prompt: Can you pull the YouTube video details and stats for video ID 'dQw4w9WgXcQ' — I need the title, view count, like count, and channel name?

## When to prefer this

Choose this endpoint when you need programmatic access to YouTube data — video metadata, search results, trending content, channel stats, or comments — without setting up your own YouTube Data API key. Useful for agents that need to enrich content pipelines, monitor YouTube channels, or analyze video performance at $0.09 per call with x402 micropayment settlement.

## Known failure modes

- Invalid or unsupported 'path' sub-endpoint returns an error or empty response
- Missing required query parameters for the sub-endpoint cause a bad request or malformed response
- Payment not received (402) blocks the request from being processed
- RapidAPI rate limit exceeded returns a quota error
- Non-existent video ID or channel ID returns empty or null data
- Vercel cold start may add latency on first call

## How this service works

Social media data APIs - YouTube, TikTok, Instagram, Twitter, Medium

## Output

Returns a JSON object containing YouTube data corresponding to the requested sub-endpoint — could include video metadata (title, description, duration, views, likes), channel info (subscriber count, name, thumbnails), search result lists, or comment threads, depending on the 'path' and 'params' provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "path": {
   "type": "string",
   "description": "RapidAPI sub-endpoint path"
  },
  "params": {
   "type": "object",
   "description": "Query parameters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sna4an-youtube-data-api-edc2e919/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sna4an-social.vercel.app](https://www.zero.xyz/host/sna4an-social.vercel.app/llms.txt)
