← API Store
Social
YouTube
YouTube
YouTube video transcript
GET /youtube/v1/transcriptEvery 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
| Name | Type | Description |
|---|---|---|
video_idrequired | string | Example: aircAruvnKk |
url | string | Video 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 |
$.cached | boolean |
$.credits_used | integer |
$.segments | array |
$.segments[] | object | string |
$.segments[].end | integer |
$.segments[].start | integer |
$.segments[].text | string |
$.segments[].timestamp | string |
$.text | string |
$.video_id | string |