YouTube API

YouTube Video transcript full API

Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.

$1.00/1k req, pay per request, no subscription.

YouTube
youtube.com/watch?v=nS3oOb6VwJq
YouTube
Sign in
Subscribe

Transcript

0:00welcome back to the channel today we're going to talk about
0:04how sourdough starters actually work at a chemistry level
0:09first let's talk about the flour you use because that changes
0:15everything about fermentation speed
What the API returnedsegments[0]
{
"text": "welcome back to the channel today we're going to talk about",
"startSeconds": 0,
"endSeconds": 4.2
}
Uptime
99.81%
30d · 1,561 calls
Requests
1,561
30d · weekly, last 12 wks
Response
6.8s
median · 30d

Pricing and providers

YouTube Video transcript full API pricing: one API, 2 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

You pay
$10.00
$1.00/1k req, only for what you use. No monthly plan.
Your first 100 requests are free with the $0.10 starting balance.

Try it

Get YouTube video transcript full in one request

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `isAiGenerated`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
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": {
    "transcript": "welcome back to the channel today we're going to talk about how sourdough starters actually work at a chemistry level first let's talk about the flour you use because that changes everything about fermentation speed",
    "language": "en",
    "isAutoGenerated": false,
    "isAiGenerated": false,
    "title": "The Science of Sourdough, Explained Simply",
    "channel": "Kitchen Chemistry with Owen",
    "durationSeconds": 612,
    "segments": [
      {
        "text": "welcome back to the channel today we're going to talk about",
        "startSeconds": 0,
        "endSeconds": 4.2
      },
      {
        "text": "how sourdough starters actually work at a chemistry level",
        "startSeconds": 4.2,
        "endSeconds": 9.1
      },
      {
        "text": "first let's talk about the flour you use because that changes",
        "startSeconds": 9.1,
        "endSeconds": 14.6
      },
      {
        "text": "everything about fermentation speed",
        "startSeconds": 14.6,
        "endSeconds": 17.8
      }
    ],
    "videoId": "nS3oOb6VwJq",
    "url": "https://www.youtube.com/watch?v=nS3oOb6VwJq",
    "description": "A deep dive into the microbiology and chemistry behind a healthy sourdough starter, with tips for troubleshooting a sluggish rise.",
    "views": 341000,
    "likes": 18900,
    "authorId": "UC5sTr3u6vBzPq8fWdZgX9Lm",
    "authorUrl": "https://www.youtube.com/@kitchenchemistrywithowen",
    "image": "https://i.ytimg.com/vi/nS3oOb6VwJq/hqdefault.jpg",
    "createdUtc": 1757462400,
    "keywords": [
      "sourdough",
      "baking science",
      "fermentation"
    ],
    "category": "Education"
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-07 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • urlstring

    https://www.youtube.com/watch?v=nS3oOb6VwJq

    YouTube video or Short URL (e.g. "https://www.youtube.com/watch?v=dQw4w9WgXcQ" or "https://www.youtube.com/shorts/Fir1x9cw2vg").

  • captionKindenum

    Which caption track to accept: "manual" only creator-written captions, "automatic" only YouTube's speech recognition, "any" whichever exists.

  • languagestring

    Preferred caption language code (e.g. "en", "es"). Defaults to English. If the video has no captions in that language, you get the transcript in another language the video has; the `language` field in the result says which.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `isAiGenerated`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

  • foundboolean

    true

datadata
  • transcriptstring

    welcome back to the channel today we're going to talk about how sourdough starters actually work at a chemistry level first let's talk about the flour you use because that changes everything about fermentation speed

  • languagestring

    en

  • isAutoGeneratedboolean

    false

  • isAiGeneratedbooleancan require

    false

  • titlestring

    The Science of Sourdough, Explained Simply

  • channelstring

    Kitchen Chemistry with Owen

  • durationSecondsnumber

    612

  • videoIdstring

    nS3oOb6VwJq

  • urlstring

    https://www.youtube.com/watch?v=nS3oOb6VwJq

  • descriptionstring

    A deep dive into the microbiology and chemistry behind a healthy sourdough starter, with tips for troubleshooting a sluggish rise.

  • viewsnumber

    341000

  • likesnumber

    18900

  • authorIdstring

    UC5sTr3u6vBzPq8fWdZgX9Lm

  • authorUrlstring

    https://www.youtube.com/@kitchenchemistrywithowen

  • imagestring

    https://i.ytimg.com/vi/nS3oOb6VwJq/hqdefault.jpg

  • createdUtcnumber

    1757462400

  • keywords[]string

    sourdough

  • categorystring

    Education

each segmentdata.segments[]
  • textstring

    welcome back to the channel today we're going to talk about

  • startSecondsnumber

    0

  • endSecondsnumber

    4.2

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the YouTube Video transcript full API

The AnyAPI YouTube Video transcript full API returns YouTube video transcript full data as normalized JSON from one POST call to /v1/run/youtube.video_transcript_full. Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.8% of YouTube video transcript full calls through AnyAPI succeeded, with a median response time of 6.8 seconds across 1,561 measured calls.

It costs from $1 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition. 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.8% of YouTube video transcript full calls through AnyAPI succeeded, with a median response time of 6.8 seconds across 1,561 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 100 YouTube Video transcript full calls at $0.001 each.

AnyAPI asks the next of its 2 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/youtube.video_transcript_full with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.