# API Direct – YouTube Video Details

> API Direct – YouTube Video Details is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-30).

Retrieves detailed metadata and information about a YouTube video given its URL or video ID.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/youtube/video?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-direct-youtube-video-details-7234b996
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FphK90VCoY_QX6YJ472bm

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 api-direct-youtube-video-details-7234b996
```

Example prompt: Can you pull up all the details for this YouTube video — https://www.youtube.com/watch?v=dQw4w9WgXcQ — I want the title, view count, description, and when it was published?

## When to prefer this

Use this endpoint when you need structured metadata about a specific YouTube video by URL or ID, particularly when you already have the video link and need stats, descriptions, or publishing info. Prefer this over search-based endpoints when the exact video is known. It supports all major YouTube URL formats including standard watch URLs, youtu.be short links, Shorts, embeds, and live URLs.

## Known failure modes

- Invalid or malformed YouTube URL returns an error — ensure URL matches one of the supported formats (watch?v=, youtu.be/, /shorts/, /embed/, /live/, /v/) or is an 11-character video ID
- Video not found or deleted returns a 404-style error
- Private or age-restricted videos may return limited or no data
- Missing required 'url' query parameter returns a validation error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Get detailed information about a YouTube video by URL or video ID.

## Output

Returns detailed metadata about the YouTube video including title, description, view count, like count, comment count, channel name, channel ID, publish date, video duration, thumbnail URLs, and tags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 500,
       "description": "YouTube video URL (watch?v=, youtu.be/, /shorts/, /embed/, /live/ or /v/ forms) or 11-character video ID"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-direct-youtube-video-details-7234b996/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
