Home · APIs · Content and media · YouTube video

YouTube video API

One request, one key: POST /v1/content/youtube/video. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.

Price

2 credits a call. One call is about $0.0196 and 1,000 calls are about $19.60 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.

Try it free

Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.

{
  "url": "https://www.youtube.com/watch?v=aircAruvnKk"
}

What it returns

FieldTypeValue in the sample
urlstringhttps://www.youtube.com/watch?v=aircAruvnKk
platformstringyoutube
extracted_atstring2026-11-20T10:22:14.121091+00:00
titlestringBut what is a neural network? | Deep learning chapter 1
author_namestring3Blue1Brown
author_urlstringhttps://www.youtube.com/@3blue1brown
thumbnail_urlstringhttps://i.ytimg.com/vi/aircAruvnKk/hqdefault.jpg
content_typestringvideo
extrasobject{"source":"youtube_oembed","note":"Title, channel and thumbnail only: YouTube did not serve the watch page ...
credits_usednumber2
latency_msnumber764

Sample response (20 November 2026)

{
  "url": "https://www.youtube.com/watch?v=aircAruvnKk",
  "platform": "youtube",
  "extracted_at": "2026-11-20T10:22:14.121091+00:00",
  "text": null,
  "title": "But what is a neural network? | Deep learning chapter 1",
  "description": null,
  "author_name": "3Blue1Brown",
  "author_handle": null,
  "author_url": "https://www.youtube.com/@3blue1brown",
  "author_avatar": null,
  "author_followers": null,
  "author_verified": null,
  "published_at": null,
  "published_at_unix": null,
  "modified_at": null,
  "date_source": null,
  "likes": null,
  "comments_count": null,
  "shares": null,
  "views": null,
  "reposts": null,
  "saves": null,
  "thumbnail_url": "https://i.ytimg.com/vi/aircAruvnKk/hqdefault.jpg",
  "video_url": null,
  "images": [],
  "content_type": "video",
  "hashtags": [],
  "mentions": [],
  "language": null,
  "extras": {
    "source": "youtube_oembed",
    "note": "Title, channel and thumbnail only: YouTube did not serve the watch page to our network, so views, likes and the publish date are not available for this call."
  },
  "errors": [],
  "credits_used": 2,
  "latency_ms": 764
}

Measured on that call: 1625 ms.

Code

curl -X POST https://api.foxapis.com/v1/content/youtube/video \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.youtube.com/watch?v=aircAruvnKk"}'
import requests

r = requests.post(
    "https://api.foxapis.com/v1/content/youtube/video",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"url":"https://www.youtube.com/watch?v=aircAruvnKk"},
)
print(r.json())
const r = await fetch("https://api.foxapis.com/v1/content/youtube/video", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"url":"https://www.youtube.com/watch?v=aircAruvnKk"}),
});
console.log(await r.json());

n8n (HTTP Request node: paste it into a workflow)

{
  "nodes": [
    {
      "name": "YouTube video",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.foxapis.com/v1/content/youtube/video",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"url\":\"https://www.youtube.com/watch?v=aircAruvnKk\"}"
      }
    }
  ],
  "connections": {}
}

Assistants (Claude, ChatGPT, Cursor)

Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.

claude mcp add --transport http foxapis https://foxapis.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Errors and limits

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

More from YouTube: channel

Same category: Content and media · all APIs

How we calculate

Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.