Search APIs
Loading…
← API Store
Social

YouTube

YouTube

YouTube video transcript

GET /youtube/v1/transcript
Test this endpoint

Every response includes credits_used: the credits this call cost.

Each call costs 1 credits; failed calls are free. Run it in the console playground to see a live result.

Parameters

NameTypeDescription
video_idrequiredstring Example: aircAruvnKk
urlstringVideo URL (instead of video_id).

Every endpoint also takes: raw、fields、fresh、output、records

{
  "cached": false,
  "credits_used": 1,
  "segments": [
    {
      "end": 14,
      "start": 4,
      "text": "This is a 3. It's sloppily written and rendered at an extremely low resolution of 28x28 pixels, but your brain has no trouble recognizing it…",
      "timestamp": "0:04"
    },
    {
      "end": 19,
      "start": 14,
      "text": "And I want you to take a moment to appreciate how crazy it is that brains can do this so effortlessly.",
      "timestamp": "0:14"
    },
    "… 127 more"
  ],
  "text": "This is a 3. It's sloppily written and rendered at an extremely low resolution of 28x28 pixels, but your brain has no trouble recognizing it…",
  "video_id": "aircAruvnKk"
}
Response fields (11)

Field paths and types observed in the sample response; the live response is authoritative.

$object
$.cachedboolean
$.credits_usedinteger
$.segmentsarray
$.segments[]object | string
$.segments[].endinteger
$.segments[].startinteger
$.segments[].textstring
$.segments[].timestampstring
$.textstring
$.video_idstring