# AnyAPI YouTube Video Lookup

> AnyAPI YouTube Video Lookup is a paid API for AI agents from api.getanyapi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Fetches metadata for a YouTube video by ID or URL, returning title, channel, views, likes, comments, duration, and publish date

## Facts

- Endpoint: POST https://api.getanyapi.com/v1/run/youtube.video
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anyapi-youtube-video-lookup-dce91fd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XvtCBNKH3DF6XIDYwM3dg

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 anyapi-youtube-video-lookup-dce91fd0 -d '<json body>'
```

Example prompt: Can you pull up the stats for this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — I want to know the title, channel, view count, likes, comments, and how long it is?

## When to prefer this

Use this endpoint when you need structured metadata (views, likes, comments, duration, publish date) for a specific YouTube video by its ID or URL. Prefer this over YouTube Search or Channel endpoints when you already have the video identifier and want per-video stats. Ideal for enriching content pipelines, validating video references, or surfacing engagement metrics for a known video.

## Known failure modes

- Video not found — found returns false and data is null if the video ID/URL is invalid or the video has been removed
- Invalid input — neither id nor url provided, causing a request error
- Private or restricted video — may return not found even if the video exists
- Network or provider error — upstream YouTube data unavailable

## How this service works

1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.

## Output

Returns a found boolean and a data object containing the video's ID, title, channel name, view count, like count, comment count, duration in seconds, and publish date — or null if the video was not found. Also includes the USD cost of the call and the provider name.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anyapi-youtube-video-lookup-dce91fd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getanyapi.com](https://www.zero.xyz/host/api.getanyapi.com/llms.txt)
