Sources › Social media › Youtube › Video Transcript

Youtube Video Transcript API

Transkrip/subtitle video YouTube lengkap dengan timestamp per segmen (start, duration, text) + teks gabungan. Pilih bahasa lewat `lang` dari daftar availableLanguages (manual atau auto-generated). Terima video ID, URL watch, shorts, youtu.be.

YoutubeGET /transcriptAll plans2 Zap

Request

GET
https://api.zapi.ink/v1/social-media:youtube-scraper/transcript

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 1 hour.

Parameters

NameTypeInRequiredDescription
idstringqueryNoVideo ID (11 chars) or full YouTube URL (watch, shorts, youtu.be) Example: dQw4w9WgXcQ
urlstringqueryNoFull YouTube video URL — alias for id
langstringqueryNoTranscript language code (e.g. en, id, ja). Default: the video's original/first track. Must be one of the video's available languages (listed in `availableLanguages`) Example: en

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:youtube-scraper/transcript?id=dQw4w9WgXcQ&url=&lang=en" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:youtube-scraper/transcript?id=dQw4w9WgXcQ&url=&lang=en", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/social-media:youtube-scraper/transcript",
    params={"id":"dQw4w9WgXcQ","url":"","lang":"en"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Frequently asked questions

How do I call the Youtube Video Transcript API?

Send a GET request to https://api.zapi.ink/v1/social-media:youtube-scraper/transcript with your Zapi key in the x-api-key header. Parameters — optional: id, url, lang. The response is JSON in the { project, data, timestamp } envelope.

What does the Youtube Video Transcript API return?

Transkrip/subtitle video YouTube lengkap dengan timestamp per segmen (start, duration, text) + teks gabungan.

Is the Youtube Video Transcript API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 2 Zap. Paid plans raise the limits.

Can an AI assistant call the Youtube Video Transcript API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "youtube-scraper" and endpoint "transcript".

What other Youtube API endpoints are there?

It has 12 endpoints. Besides Video Transcript: Get User Profile, Get User Videos, Get Video Detail, Get Video Comments, Search, Get Playlist, and 5 more.