# Coockies.ai YouTube API

> Coockies.ai YouTube API is a paid API for AI agents from coockies-ai.vercel.app, paid per call via x402, $0.128443/call, status unknown (last checked 2026-10-12).

Fetches YouTube video data, metadata, or related information via a pay-per-call API endpoint on Base chain

## Facts

- Endpoint: POST https://coockies-ai.vercel.app/api/yt-api?utm_source=zero.xyz
- Price: $0.128443/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coockies-ai-youtube-api-33e705a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RV8HZwuOlGVptA8KMVSOm

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 coockies-ai-youtube-api-33e705a7 -d '<json body>'
```

Example prompt: Can you pull the metadata for this YouTube video — title, view count, duration, and channel name — for the video at https://www.youtube.com/watch?v=dQw4w9WgXcQ?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically retrieve YouTube video or channel metadata without managing a Google API key, and is willing to pay per call via x402 on Base chain. Prefer this over direct YouTube Data API access when you want a managed, no-credentials-required integration.

## Known failure modes

- Invalid or non-existent video ID returns empty or error result
- Private or deleted YouTube videos may return no data
- Rate limiting or quota exhaustion on the underlying YouTube API
- Malformed request body returns generic error
- Payment failure on Base chain blocks the call
- YouTube API changes may cause schema mismatches

## How this service works

194 production-ready API endpoints. AI, Search, Social, Finance, Crypto. Pay-per-call with x402 on Base chain.

## Output

Returns a result object containing YouTube video or channel data such as title, description, view count, like count, duration, upload date, channel name, and other available metadata fields depending on the query type.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "result": {
   "data": "example response"
  }
 },
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## More

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