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.

$2.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.97%
30d · 19,946 calls
Requests
19,997
30d · weekly, last 12 wks
Response
5.1s
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
$20.00
$2.00/1k req, only for what you use. No monthly plan.
Your first 50 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 `likes`, 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.

This sample shows 24 of 25 fields. See every field

{
  "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": null,
    "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-11-22 · 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. With `captionKind` set to "manual" or "automatic", no other language is returned.

  • 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 `likes`, 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.

datadata
  • authorIdstring

    UC5sTr3u6vBzPq8fWdZgX9Lm

    YouTube channel ID of the publishing channel.

  • authorUrlstring

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

    Canonical URL of the publishing channel, tracking query parameters stripped.

  • categorystringcan require

    Education

    YouTube category the video is filed under, for example "Music".

  • channelstring

    Kitchen Chemistry with Owen

    Channel name that published the video.

  • createdUtcnumbercan require

    1757462400

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • descriptionstring

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

    Full video description text.

  • durationSecondsnumber

    612

    Video duration in seconds.

  • imagestring

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

    URL of the video thumbnail image.

  • isAiGeneratedboolean

    null

    True when the words were recognized from the audio by the serving lane rather than read from any YouTube caption track, or null when the serving source does not say.

  • isAutoGeneratedboolean

    false

    True when YouTube generated the caption track by speech recognition rather than the creator supplying it. Automatic captions carry recognition errors, especially on names and jargon. Populated whenever the provider has data for the entity.

  • keywordsstring[]

    Keywords the uploader tagged the video with.

  • languagestring

    en

    Caption language code (e.g. "en"). Populated whenever the provider has data for the entity.

  • likesintegercan require

    18900

    Number of likes.

  • titlestring

    The Science of Sourdough, Explained Simply

    Video title.

  • 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

    Full transcript text, segments joined in playback order. Populated whenever the provider has data for the entity.

  • urlstring

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

    Watch URL of the video.

  • videoIdstring

    nS3oOb6VwJq

    Unique identifier of the video.

  • viewsinteger

    341000

    Number of views.

each segmentdata.segments[]

Timed transcript segments in playback order. Populated whenever the provider has data for the entity.

  • endSecondsnumber

    4.2

    Segment end offset in seconds.

  • startSecondsnumber

    0

    Segment start offset in seconds.

  • textstring

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

    Text of this transcript segment.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

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 $2 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of YouTube video transcript full calls through AnyAPI succeeded, with a median response time of 5.1 seconds across 19,946 measured calls.

It costs from $2 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, 100.0% of YouTube video transcript full calls through AnyAPI succeeded, with a median response time of 5.1 seconds across 19,946 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 50 YouTube Video transcript full calls at $0.002 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.