KonbiniAPI

Get video transcript — YouTube API

Returns the transcript for a public video, in WebVTT format.

GET/v1/youtube/videos/{videoId}/transcript1 credit per request
Example response200OK
{
  "data": {
    "@context": [
      "https://www.w3.org/ns/activitystreams#",
      "https://konbiniapi.com/ns/social#"
    ],
    "type": "Document",
    "id": "https://www.youtube.com/watch?v=plN7JMbadRg&transcript=en",
    "url": "https://www.youtube.com/watch?v=plN7JMbadRg",
    "mediaType": "text/vtt",
    "language": "en",
    "size": 376111,
    "source": "ASR",
    "content": "WEBVTT\n\n00:00:00.133 --> 00:00:02.033\n​​​ ​I just bought this entire ​ ​​\n​​ ​grocery store--​ ​​\n\n00:00:00.133 --> 00:00:02.033\n​​​ ​I just bought this entire ​ ​​\n​​ ​grocery store--​ ​​"
  }
}

Make the request.

One authenticated GET to /v1/youtube/videos/{videoId}/transcript. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.

Built for

  • Data Analytics
  • Market Research
  • Platform Integration
const response = await fetch("https://api.konbiniapi.com/v1/youtube/videos/plN7JMbadRg/transcript", {
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});

const data = await response.json();
Parameters2
  • videoIdrequiredIn · PathType · stringYouTube video ID (the v= value from a watch URL)
  • languageIn · QueryType · stringLanguage code of the caption track to return, as listed in the video-detail endpoint's captions[].languageCode. Defaults to the channel's default track, or the first available one if none is set.

Try it on your own data.

Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.