YouTube API

YouTube Video API

Full video or Short metadata by URL or id: title, description, channel, view/like counts and publish date.

POST/v1/run/youtube.video
Uptime
99.90%
30d · 10,202 calls
Requests
10,202
30d · weekly, last 12 wks
Response
2.9s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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."
  }
}
Response interface
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 30d
POST /v1/run/youtube.video
curl -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"}'
FieldTypeExample value
Request body
idstringYouTube video ID. A Short uses the same ID as any other video.
urlstring"https://www.youtube.com/watch?v=dQw4w9WgXcQ"Full YouTube video URL. Shorts (youtube.com/shorts/...), youtu.be, live, and embed URLs all work.
Response
foundbooleantrue
dataobject
data.idstring"dQw4w9WgXcQ"
data.titlestring"Official Video"
data.channelobject
data.channel.titlestring"Rick Astley"
data.channel.channelIdstring"UCuAXFkgsw1L7xaCfnd5JJOw"
data.durationSecondsnumber213
data.viewsnumber1540000000
data.likesnumber17200000
data.publishedAtstring"2009-10-25T06:57:33Z"
data.descriptionstring"The official video."
Price
Price per requestUSD$0.0009
Price /1k reqUSD$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.

It costs from $0.90 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Full video or Short metadata by URL or id: title, description, channel, view/like counts and publish date. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.