YouTube Video API
Full video or Short metadata by URL or id: title, description, channel, view/like counts and publish date.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"found": true,
"data": {
"id": "dQw4w9WgXcQ",
"title": "Official Video",
"channel": {
"title": "Rick Astley",
"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw"
},
"durationSeconds": 213,
"views": 1540000000,
"likes": 17200000,
"publishedAt": "2009-10-25T06:57:33Z",
"description": "The official video."
}
}interface YoutubeVideoResponse {
data: {
channel: string;
comments: number;
createdUtc: number;
durationMs: number;
id: string;
likes: number;
title: string;
views: number;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/youtube.video \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| id | string | YouTube video ID. A Short uses the same ID as any other video. |
| url | string | "https://www.youtube.com/watch?v=dQw4w9WgXcQ"Full YouTube video URL. Shorts (youtube.com/shorts/...), youtu.be, live, and embed URLs all work. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.id | string | "dQw4w9WgXcQ" |
| data.title | string | "Official Video" |
| data.channel | object | |
| data.channel.title | string | "Rick Astley" |
| data.channel.channelId | string | "UCuAXFkgsw1L7xaCfnd5JJOw" |
| data.durationSeconds | number | 213 |
| data.views | number | 1540000000 |
| data.likes | number | 17200000 |
| data.publishedAt | string | "2009-10-25T06:57:33Z" |
| data.description | string | "The official video." |
| Price | ||
| Price per request | USD | $0.0009 |
| Price /1k req | USD | $0.90 |
FAQ
About the YouTube Video API
The AnyAPI YouTube Video API returns YouTube video data as normalized JSON from one POST call to /v1/run/youtube.video. Full video or Short metadata by URL or id: title, description, channel, view/like counts and publish date. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $0.90 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.9% of YouTube video calls through AnyAPI succeeded, with a median response time of 2.9 seconds across 10,202 measured calls.