# Sna4an YouTube Data API v2

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

Fetches YouTube data (videos, channels, search, trends, comments, etc.) by proxying RapidAPI sub-endpoints via a pay-per-call x402 gateway

## Facts

- Endpoint: POST https://sna4an-social.vercel.app/api/yt-v2
- Price: $0.135/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sna4an-youtube-data-api-v2-3ea341fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DJQ-4IfjPzHlN40hMl5ZX

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-v2-3ea341fd -d '<json body>'
```

Example prompt: Can you search YouTube for the top videos about 'machine learning tutorials' and give me the titles, view counts, and channel names for the first 10 results?

## When to prefer this

Use this endpoint when you need programmatic access to YouTube data (video info, channel stats, search results, comments, trends) without managing a YouTube Data API key or quota. Prefer this over direct YouTube API calls when operating in an agent context that supports x402 micropayments and you want pay-as-you-go access at $0.135 per call. Best suited for one-off lookups or low-to-medium volume enrichment tasks.

## Known failure modes

- Invalid or unsupported RapidAPI sub-endpoint path returns an error or empty response
- Missing required query parameters (e.g. video ID, search query) cause downstream API errors
- Payment not settled via x402 protocol results in 402 response and no data returned
- RapidAPI rate limits or quota exhaustion cause upstream failures
- YouTube content region-locked or removed returns empty or error payload
- Malformed params object causes request parsing failure

## How this service works

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

## Output

A JSON object containing YouTube data corresponding to the queried sub-endpoint — could include video metadata (title, description, view count, likes, duration), channel info (subscribers, uploads), search result listings, comment threads, or trending video lists depending on the path and params supplied.

## 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-v2-3ea341fd/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)
