API Keys
API संदर्भ

ट्रांसक्रिप्ट V2

V2 सुव्यवस्थित, यूज़र-स्वामित्व वाला ट्रांसक्रिप्ट मॉडल है। यह तेज़ कैश हिट और एक जैसे रिस्पॉन्स को प्राथमिकता देता है, और जब तक आप कोई भाषा न माँगें, कोई अनचाहा अनुवाद नहीं करता।

बेस URLhttps://www.youtubetranscript.dev/api/v2

आप क्या कर सकते हैं

नया: हर ट्रांसक्रिप्ट स्रोत के लिए एक mode पैरामीटर

source और allow_asr को मिलाने के बजाय auto, captions_only, human_captions_only, speech_to_text_only में से चुनें। मौजूदा अनुरोध पहले की तरह ही काम करते रहेंगे। देखें यह कैसे काम करता है

OpenAPI स्पेसिफ़िकेशन

Postman, Insomnia में इम्पोर्ट करने, क्लाइंट जनरेट करने या ChatGPT / Claude में पेस्ट करने के लिए YAML डाउनलोड करें।

OpenAPI 3.0: V2 (सुझाया गया)

एक वीडियो ट्रांसक्राइब करें

एक बार में एक वीडियो के लिए सबसे तेज़ रास्ता। कैप्शन-आधारित ट्रांसक्रिप्ट कुछ ही सेकंड में लौट आते हैं; ASR asynchronously चलता है और /api/v2/jobs/{job_id} से पोल किया जाता है।

वीडियो ट्रांसक्राइब करें

Transcribe a single YouTube video. Returns immediately for caption-based videos. With mode=auto it falls back to ASR (async) when captions are unavailable: you get status processing and a job_id to poll at /api/v2/jobs/{job_id}, or the result is POSTed to webhook_url if you set one. Responses include the mode the request ran with.

POST/api/v2/transcribe
पैरामीटर
videostringज़रूरी

YouTube URL or 11-character video ID. Required unless upload_id is set.

upload_idstring

Transcribe an uploaded media file instead of a YouTube video (see /uploads). Forces the ASR path (mode must be omitted or speech_to_text_only); webhook_url required. The upload id is returned as video_id in results.

modeauto | captions_only | human_captions_only | speech_to_text_only

Where the transcript comes from (recommended). auto: captions first, speech-to-text (ASR) only if the video has none. captions_only: any captions, never ASR. human_captions_only: human-made captions only. speech_to_text_only: always transcribe the audio. auto and speech_to_text_only can charge ASR credits. Replaces source + allow_asr; cannot be combined with them. Note: mode=auto is not the same as legacy source=auto (captions only, which is mode=captions_only). When omitted, your account default from the API Dashboard applies: auto for accounts created from October 2026, captions_only for older accounts unless changed. ASR modes work without webhook_url: poll the returned job_id.

languageISO 639-1

Preferred transcript language (e.g. en). If unavailable, captions in another language may be returned: transcript.language reports the actual language.

sourceauto | manual | asr

Legacy, still supported: use mode instead. Default: auto. asr transcribes the audio (async, requires webhook_url).

allow_asrboolean

Legacy, still supported: use mode=auto instead. Falls back to ASR if captions fail.

formatobject

{ timestamp, paragraphs, words }: include extra structure in the transcript.

webhook_urluri

When set, ASR results are POSTed to your URL. Optional with mode (poll the job_id instead); required for legacy source=asr. Ignored by captions_only and human_captions_only, which never use ASR.

asr_optionsobject

Rich ASR config: language (+ codeSwitching, medicalMode, keyTerms), translateTo, speaker diarization (speakerLabels, speakerId + type/known values, multichannel, exact or min/max expected speakers), speech understanding (topics, summary, moderation, PII, profanity, sentiment), and formatting (punctuation, text formatting, filler words, custom date/phone/email patterns). Billable add-ons increase cost: preview with /transcribe/estimate. See the AsrOptions schema in the OpenAPI spec.

curl -X POST https://www.youtubetranscript.dev/api/v2/transcribe \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "dQw4w9WgXcQ",
    "mode": "auto",
    "language": "en",
    "format": { "timestamp": true, "paragraphs": true }
  }'
रिस्पॉन्स (200)
{
  "request_id": "req_abc123",
  "status": "completed",
  "data": {
    "video_id": "dQw4w9WgXcQ",
    "video_title": "Example video",
    "transcript": {
      "text": "Welcome to this tutorial...",
      "language": "en",
      "source": "auto",
      "segments": [
        { "text": "Welcome to this tutorial.", "start": 0, "end": 2500 }
      ]
    }
  },
  "credits_used": 1,
  "mode": "auto"
}

इंस्टाग्राम रील ट्रांसक्राइब करें

Transcribe an Instagram Reel. Uses the Reel's captions when it has them, otherwise transcribes its audio (about 15 to 20 seconds). The transcript is saved like a YouTube one with video_id instagram_<code>: read it with GET /api/v2/transcripts/{video_id} and file it in folders. Transcribing a Reel you already have is free.

POST/api/v2/social/transcribe1 credit with captions; otherwise 1 credit per 2 minutes of audio (minimum 1). Refunded if it fails.
पैरामीटर
urlstringज़रूरी

Instagram Reel or video post link, e.g. https://www.instagram.com/reel/C9xYz12AbCd/

languageISO 639-1

Preferred transcript language.

curl -X POST https://www.youtubetranscript.dev/api/v2/social/transcribe \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://www.instagram.com/reel/C9xYz12AbCd/" }'
रिस्पॉन्स (200)
{
  "request_id": "5b0e1c2d-3f4a-4b5c-8d6e-7f8a9b0c1d2e",
  "transcript": {
    "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f",
    "video_id": "instagram_C9xYz12AbCd",
    "language": "en",
    "source_kind": "auto"
  },
  "credits_used": 1,
  "cached": false
}

लागत का अनुमान

Dry-run credit estimate. Returns the ASR base cost plus any add-on surcharge for the requested asr_options without creating a job or charging credits.

POST/api/v2/transcribe/estimate
पैरामीटर
videostringज़रूरी

YouTube URL or 11-character video ID.

modeauto | captions_only | human_captions_only | speech_to_text_only

Same values as /transcribe. Use speech_to_text_only (or auto) to preview the ASR cost.

sourceauto | manual | asr

Legacy, still supported: use mode instead. Defaults to asr for cost preview.

asr_optionsobject

Same shape as /transcribe. Add-on charges are prorated by duration.

curl -X POST https://www.youtubetranscript.dev/api/v2/transcribe/estimate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "dQw4w9WgXcQ",
    "mode": "speech_to_text_only",
    "asr_options": {
      "speakerLabels": true,
      "summarization": true,
      "translateTo": "es"
    }
  }'
रिस्पॉन्स (200)
{
  "request_id": "req_abc123",
  "video_id": "dQw4w9WgXcQ",
  "source": "asr",
  "mode": "speech_to_text_only",
  "duration_seconds": 213,
  "duration_minutes": 4,
  "max_duration_minutes": 480,
  "exceeds_max_duration": false,
  "base_credits": 3,
  "addon_credits": 2,
  "estimated_credits": 5
}

जॉब स्टेटस देखें

Poll a single transcription job. Use this for ASR jobs returned from /transcribe. Returns 202 while running and 200 when complete. Completed ASR jobs include asr_intelligence (summary, topics, sentiment, etc.) when those options were enabled. With speaker labels on (asr_options.speakerLabels or speakerId), every segment carries a speaker field ("A", "B", ... or a name or role with speakerId), and so does every word when you add include_words=true. There is no separate speakers or utterances object.

GET/api/v2/jobs/{job_id}
पैरामीटर
job_idpathज़रूरी

Identifier returned in the original transcribe response.

include_segmentsboolean

Include segment-level timestamps in the transcript payload.

include_paragraphsboolean

Include paragraph groupings.

include_wordsboolean

Include word-level timestamps (ASR only). Each word carries a speaker field when speaker labels were on.

curl -X GET https://www.youtubetranscript.dev/api/v2/jobs/JOB_ID \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200, speaker labels on)
{
  "request_id": "req_abc123",
  "status": "completed",
  "data": {
    "video_id": "dQw4w9WgXcQ",
    "transcript": {
      "text": "Welcome to this tutorial...",
      "language": "en",
      "source": "asr",
      "segments": [
        { "text": "Welcome to this tutorial.", "start": 0, "end": 2500, "speaker": "A" },
        { "text": "Thanks for having me.", "start": 2600, "end": 4100, "speaker": "B" }
      ]
    }
  },
  "credits_used": 6
}

अपना मीडिया अपलोड करें

अपनी ऑडियो या वीडियो फ़ाइलों को ASR पाइपलाइन से ट्रांसक्राइब करें। तीन स्टेप: अपलोड रजिस्टर करें, bytes को signed URL पर PUT करें, finalize करें: फिर upload_id के साथ /transcribe कॉल करें। नतीजे आपके webhook पर आते हैं और किसी भी ASR जॉब की तरह पोल किए जाते हैं।

फ़ाइल अपलोड करें

Register an audio/video file upload and get a signed URL. PUT the raw file bytes to signed_url (with the file's Content-Type), finalize via /uploads/{upload_id}/complete, then transcribe with upload_id on /transcribe. Max 2GB and 8 hours per file.

POST/api/v2/uploads
पैरामीटर
filenamestringज़रूरी

Original filename. The extension is preserved for content sniffing.

mime_typestringज़रूरी

Must start with audio/ or video/ (e.g. audio/mpeg, video/mp4).

size_bytesintegerज़रूरी

File size in bytes. Max 2147483648 (2GB).

duration_secintegerज़रूरी

Media duration in seconds. Max 28800 (8 hours). Used for the ASR credit estimate.

curl -X POST https://www.youtubetranscript.dev/api/v2/uploads \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "interview.mp3",
    "mime_type": "audio/mpeg",
    "size_bytes": 48211234,
    "duration_sec": 1820
  }'

# Then PUT the raw file bytes to the returned signed_url:
curl -X PUT "SIGNED_URL_FROM_RESPONSE" \
  -H "Content-Type: audio/mpeg" \
  --data-binary @interview.mp3

# Then finalize:
curl -X POST https://www.youtubetranscript.dev/api/v2/uploads/UPLOAD_ID/complete \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "upload_id": "up_a1B2c3D4",
  "bucket": "asr-media",
  "path": "user-uuid/up_a1B2c3D4/interview.mp3",
  "token": "eyJhbGciOiJIUzI1NiJ9...",
  "signed_url": "https://api.youtubetranscript.dev/storage/v1/object/upload/sign/asr-media/...?token=..."
}

अपलोड पूरा करें

Finalize an upload after the PUT to signed_url succeeds. Verifies the file exists in storage and marks it ready. The upload can then be transcribed by passing upload_id to /transcribe (source="asr", webhook_url required).

POST/api/v2/uploads/{upload_id}/complete
पैरामीटर
upload_idpathज़रूरी

Upload id returned by POST /uploads.

curl -X POST https://www.youtubetranscript.dev/api/v2/uploads/up_a1B2c3D4/complete \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "upload_id": "up_a1B2c3D4",
  "status": "uploaded",
  "filename": "interview.mp3",
  "duration_sec": 1820
}

बैच ट्रांसक्रिप्शन

एक ही रिक्वेस्ट में कई वीडियो ट्रांसक्राइब करें, फिर पोल करें या webhook से नतीजे पाएँ।

कई वीडियो ट्रांसक्राइब करें

Submit up to 3,000 videos in one request. Returns within 2 seconds; poll the returned poll_url or wait for the webhook.

POST/api/v2/batch
पैरामीटर
video_idsstring[]ज़रूरी

Up to 3,000 IDs depending on plan. Free = 10, Basic = 500, Pro = 1,500, Business = 3,000.

languageISO 639-1

Preferred language for every video.

modeauto | captions_only | human_captions_only | speech_to_text_only

Where the transcript comes from (recommended). auto: captions first, speech-to-text (ASR) only if the video has none. captions_only: any captions, never ASR. human_captions_only: human-made captions only. speech_to_text_only: always transcribe the audio. auto and speech_to_text_only can charge ASR credits. Replaces source + allow_asr; cannot be combined with them. Note: mode=auto is not the same as legacy source=auto (captions only, which is mode=captions_only). For batch, auto and speech_to_text_only require webhook_url. When omitted, your API Dashboard default applies (an ASR default only when webhook_url is set).

sourceauto | manual | asr

Legacy, still supported: use mode instead. Default: auto. source=asr requires webhook_url.

allow_asrboolean

Legacy, still supported: use mode=auto instead. webhook_url is required.

formatobject

{ timestamp, paragraphs, words }: applied to every result.

webhook_urluri

Delivers the completed batch payload. Required for mode=auto or speech_to_text_only (legacy: allow_asr=true or source=asr).

asr_optionsobject

Rich ASR config applied to every video transcribed via ASR (same shape as /transcribe). Billable add-ons apply per video.

curl -X POST https://www.youtubetranscript.dev/api/v2/batch \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video_ids": ["dQw4w9WgXcQ", "jNQXAC9IVRw"],
    "mode": "auto",
    "webhook_url": "https://your-domain.com/webhook",
    "format": { "timestamp": true }
  }'
रिस्पॉन्स (202)
{
  "batch_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "processing",
  "results": [],
  "summary": { "total": 2, "succeeded": 0, "failed": 0, "processing": 2 },
  "poll_url": "https://www.youtubetranscript.dev/api/v2/batch/550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2026-05-15T10:00:00Z"
}

बैच स्टेटस देखें

Check the status of a batch. Returns 202 while processing and 200 when results are ready. Stop polling once status is "completed", "partial", or "failed": finished batches never change, and re-fetching one more than 60 times in 24h returns 429 with a Retry-After header.

GET/api/v2/batch/{batch_id}
पैरामीटर
batch_idpathज़रूरी

Batch identifier returned from POST /batch.

curl -X GET https://www.youtubetranscript.dev/api/v2/batch/BATCH_ID \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "batch_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "summary": { "total": 2, "succeeded": 2, "failed": 0, "processing": 0 },
  "results": [
    { "request_id": "req_1", "status": "completed", "data": { "video_id": "dQw4w9WgXcQ" } },
    { "request_id": "req_2", "status": "completed", "data": { "video_id": "jNQXAC9IVRw" } }
  ],
  "credits_used": 2,
  "webhook_delivered": true,
  "completed_at": "2026-05-15T10:04:00Z"
}

ट्रांसक्रिप्ट और जॉब

अपने सेव किए गए ट्रांसक्रिप्ट की सूची देखें, उन्हें लाएँ, अनुवाद करें और हटाएँ, और async जॉब की सूची देखें। सभी endpoints एक ही API-key ऑथ स्वीकार करते हैं।

जॉब सूची

List your transcription jobs, newest first. Filter by status and paginate. Use the returned job_id with GET /api/v2/jobs/{job_id} to fetch a transcript.

GET/api/v2/jobs
पैरामीटर
pagequery

Page number (default 1).

limitquery

Items per page (default 50, max 100).

statusquery

completed | processing | failed | requires_asr_confirmation.

curl "https://www.youtubetranscript.dev/api/v2/jobs?status=processing&limit=25" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "jobs": [
    {
      "job_id": "9c2...",
      "video_id": "dQw4w9WgXcQ",
      "video_title": "Example video",
      "language": "en",
      "source": "asr",
      "status": "processing",
      "error": null,
      "credits_used": 0,
      "created_at": "2026-07-06T12:00:00Z",
      "started_at": "2026-07-06T12:00:01Z",
      "completed_at": null
    }
  ],
  "count": 1,
  "pagination": { "page": 1, "limit": 25, "total": 1, "totalPages": 1, "hasMore": false }
}

ट्रांसक्रिप्ट सूची

List stored transcripts with search, status, language, and date filters. Metadata only (no full text) unless include_segments=true.

GET/api/v2/transcripts
पैरामीटर
pagequery

Page number (default 1).

limitquery

Items per page (default 50, max 100).

searchquery

Match video id, title, or transcript text.

statusquery

Filter by status; omit for succeeded.

languagequery

Filter by language code.

date_fromquery

ISO date-time lower bound.

date_toquery

ISO date-time upper bound.

include_segmentsquery

Include segments in each item.

curl "https://www.youtubetranscript.dev/api/v2/transcripts?page=1&limit=50&status=succeeded" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "history": [
    {
      "id": "b1f...",
      "video_id": "dQw4w9WgXcQ",
      "video_title": "Example video",
      "language": "en",
      "source_kind": "auto",
      "status": "succeeded",
      "created_at": "2026-07-06T12:00:00Z",
      "word_count": 1234,
      "segment_count": 88,
      "credits_used": 1
    }
  ],
  "count": 1,
  "pagination": { "page": 1, "limit": 50, "total": 1, "totalPages": 1, "hasMore": false }
}

ट्रांसक्रिप्ट पाएं

Fetch the best owned transcript for a video, including asr_intelligence (summary, topics, sentiment, etc.), plus summary and mind_map when generated.

GET/api/v2/transcripts/{video_id}
पैरामीटर
video_idpathज़रूरी

YouTube 11-character video ID.

idquery

Specific transcript/job id.

languagequery

Preferred language version.

sourcequery

auto | manual | asr.

include_timestampsquery

Include segments (default true).

curl "https://www.youtubetranscript.dev/api/v2/transcripts/dQw4w9WgXcQ?language=en" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "id": "b1f...",
  "video_id": "dQw4w9WgXcQ",
  "language": "en",
  "text": "Welcome to this tutorial...",
  "segments": [{ "text": "Welcome to this tutorial.", "start": 0, "end": 2500 }],
  "has_timestamps": true,
  "source_kind": "asr",
  "video_title": "Example video",
  "summary": null,
  "mind_map": null,
  "asr_intelligence": {
    "summary": "A short overview of the video...",
    "topics": [{ "text": "Technology", "relevance": 0.92 }],
    "sentiment": [{ "text": "Great tutorial", "sentiment": "POSITIVE" }]
  }
}

थीम और कीवर्ड पाएँ

AI key moments, themes & keywords for a stored transcript: a short TL;DR, the key moments worth finding again (each a short label plus the exact quote, with where it starts and ends), its main themes, and each keyword with the timestamps where it's said. 1 credit per transcript, charged once: calling it again (or GET) is free. Waits up to ~25s; a 202 "processing" means it's paid for and still running, so poll GET. If detection fails the credit is refunded. Transcripts too short to analyse return empty themes for 0 credits. 402 without enough credits.

POST/api/v2/transcripts/{video_id}/themes
पैरामीटर
video_idpathज़रूरी

YouTube 11-character video ID of a transcript you own.

idquery

Specific transcript/job id.

languagequery

Which language version to analyse.

sourcequery

auto | manual | asr.

curl -X POST "https://www.youtubetranscript.dev/api/v2/transcripts/dQw4w9WgXcQ/themes?language=en" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "video_id": "dQw4w9WgXcQ",
  "language": "en",
  "status": "completed",
  "credits_used": 1,
  "credits_remaining": 41,
  "tldr": "A promise of lifelong loyalty, sung as a list of things he'll never do.",
  "moments": [
    {
      "id": "m1",
      "theme_id": "t1",
      "label": "The six promises of the chorus",
      "quote": "Never gonna give you up, never gonna let you down",
      "color_hex": "#0d9488",
      "start": 43000,
      "end": 47500,
      "segment_start": 4,
      "segment_end": 5
    }
  ],
  "themes": [
    {
      "id": "t1",
      "name": "Commitment",
      "summary": "Promises never to leave or let the listener down.",
      "color": "teal",
      "color_hex": "#0d9488",
      "share": 0.62,
      "mention_count": 18,
      "moment_count": 3,
      "keywords": [
        {
          "id": "k1",
          "term": "never gonna give you up",
          "aliases": [],
          "definition": "The song's central promise.",
          "mention_count": 6,
          "mentions": [{ "segment_index": 4, "start": 43000 }]
        }
      ]
    }
  ]
}

अनलॉक की गई थीम पढ़ें

Read key moments, themes & keywords you've already unlocked. Never charges and never starts the AI: returns status "locked" (with credits_required) until you POST, then "completed" with the same body as POST, or 202 "processing" while detection is still running.

GET/api/v2/transcripts/{video_id}/themes
पैरामीटर
video_idpathज़रूरी

YouTube 11-character video ID of a transcript you own.

idquery

Specific transcript/job id.

languagequery

Which language version to analyse.

sourcequery

auto | manual | asr.

curl "https://www.youtubetranscript.dev/api/v2/transcripts/dQw4w9WgXcQ/themes?language=en" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200, not unlocked yet)
{
  "video_id": "dQw4w9WgXcQ",
  "language": "en",
  "status": "locked",
  "credits_required": 1
}

ट्रांसक्रिप्ट का अनुवाद करें

Translate an owned transcript into a target language using YouTube captions or the AI provider. Returns free if you already own the translation.

POST/api/v2/transcripts/{video_id}/translate
पैरामीटर
video_idpathज़रूरी

YouTube 11-character video ID.

target_languageISO 639-1ज़रूरी

Language to translate into.

source_languageISO 639-1

Source transcript language to translate from.

providerai | youtube

Translation provider.

allow_ai_fallbackboolean

Fall back to AI when YouTube has no translation.

curl -X POST "https://www.youtubetranscript.dev/api/v2/transcripts/dQw4w9WgXcQ/translate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "target_language": "es", "provider": "ai" }'
रिस्पॉन्स (200)
{
  "success": true,
  "message": "Translation completed",
  "language": "es",
  "credits_used": 4,
  "provider_used": "ai"
}

उपलब्ध भाषाएं

List the languages you already own for a video plus the YouTube translation targets available for it.

GET/api/v2/transcripts/{video_id}/languages
पैरामीटर
video_idpathज़रूरी

YouTube 11-character video ID.

include_youtube_defaultquery

Include YouTube translation targets (default true).

curl "https://www.youtubetranscript.dev/api/v2/transcripts/dQw4w9WgXcQ/languages" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "video_id": "dQw4w9WgXcQ",
  "languages": ["en", "es"],
  "youtube_translation_languages": ["fr", "de", "ja"]
}

ट्रांसक्रिप्ट हटाएं

Delete owned transcript(s) for a video. Optional language/source query params narrow the deletion; otherwise every language/source is removed. Also deletes bulk by id via POST /api/v2/transcripts/bulk-delete.

DELETE/api/v2/transcripts/{video_id}
पैरामीटर
video_idpathज़रूरी

YouTube 11-character video ID.

languagequery

Only delete this language.

sourcequery

Only delete this source (auto | manual | asr).

curl -X DELETE "https://www.youtubetranscript.dev/api/v2/transcripts/dQw4w9WgXcQ" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "success": true,
  "deleted": 2,
  "message": "Successfully deleted 2 transcripts"
}

फ़ोल्डर

अपने ट्रांसक्राइब किए गए वीडियो को सिंगल-लेवल फ़ोल्डरों में व्यवस्थित करें, जो टैग की तरह काम करते हैं: एक वीडियो कई फ़ोल्डरों में हो सकता है। हर अकाउंट के लिए मुफ़्त, कोई क्रेडिट नहीं लगता। अपने वीडियो की सूची पहले से बने आउटपुट के साथ पाएं, फ़ोल्डर के हिसाब से फ़िल्टर करके।

फ़ोल्डर सूची

List your folders, alphabetically, with how many videos each holds. Folders are flat and work like tags: one video can be in many folders.

GET/api/v2/foldersFree: no credits
curl "https://www.youtubetranscript.dev/api/v2/folders" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "folders": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "name": "Competitor research",
      "video_count": 12,
      "created_at": "2026-10-29T09:14:02Z",
      "updated_at": "2026-10-29T09:14:02Z"
    }
  ]
}

फ़ोल्डर बनाएं

Create a folder. Names are unique per account, ignoring case (409 if you already have one with that name). Up to 200 folders.

POST/api/v2/foldersFree: no credits
पैरामीटर
namestringज़रूरी

1 to 80 characters.

curl -X POST https://www.youtubetranscript.dev/api/v2/folders \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Competitor research" }'
रिस्पॉन्स (201)
{
  "folder": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "Competitor research",
    "video_count": 0,
    "created_at": "2026-10-29T09:14:02Z",
    "updated_at": "2026-10-29T09:14:02Z"
  }
}

फ़ोल्डर का नाम बदलें

Rename a folder. GET the same path returns one folder.

PATCH/api/v2/folders/{folder_id}Free: no credits
पैरामीटर
folder_idpathज़रूरी

The folder's id.

namestringज़रूरी

1 to 80 characters.

curl -X PATCH https://www.youtubetranscript.dev/api/v2/folders/{folder_id} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Competitors 2026" }'
रिस्पॉन्स (200)
{
  "folder": { "id": "7c9e6679-...", "name": "Competitors 2026", "video_count": 12, "created_at": "...", "updated_at": "..." }
}

फ़ोल्डर हटाएं

Delete a folder. Only the folder goes: its videos, transcripts and outputs stay in your account.

DELETE/api/v2/folders/{folder_id}Free: no credits
पैरामीटर
folder_idpathज़रूरी

The folder's id.

curl -X DELETE https://www.youtubetranscript.dev/api/v2/folders/{folder_id} \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{ "deleted": true }

फ़ोल्डर में वीडियो जोड़ें

Add videos you've transcribed to a folder. Videos already in it are skipped; ids you have no transcript for come back in not_found. Every language and output of a video comes with it.

POST/api/v2/folders/{folder_id}/videosFree: no credits
पैरामीटर
folder_idpathज़रूरी

The folder's id.

video_idsstring[]ज़रूरी

Up to 100 video ids: YouTube ids, upload ids (upl_...) or Instagram ids (instagram_...).

curl -X POST https://www.youtubetranscript.dev/api/v2/folders/{folder_id}/videos \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "video_ids": ["dQw4w9WgXcQ", "jNQXAC9IVRw"] }'
रिस्पॉन्स (200)
{
  "added": ["dQw4w9WgXcQ"],
  "already_in_folder": ["jNQXAC9IVRw"],
  "not_found": []
}

फ़ोल्डर से वीडियो हटाएं

Take videos out of a folder. Their transcripts are not touched. GET the same path lists the folder's videos, like GET /api/v2/videos?folder_id=.

DELETE/api/v2/folders/{folder_id}/videosFree: no credits
पैरामीटर
folder_idpathज़रूरी

The folder's id.

video_idsstring[]ज़रूरी

Up to 100 video ids.

curl -X DELETE https://www.youtubetranscript.dev/api/v2/folders/{folder_id}/videos \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "video_ids": ["dQw4w9WgXcQ"] }'
रिस्पॉन्स (200)
{ "removed": ["dQw4w9WgXcQ"] }

आपके वीडियो की सूची

List your videos, one entry per video (its newest transcript), newest first, with the folders it's in and the outputs you've already made (summary, themes, mind_map, flashcards, notes, quiz, case_study), each with its languages.

GET/api/v2/videosFree: no credits
पैरामीटर
folder_idquery

Only this folder's videos.

unfiledquery

true: only videos in no folder.

channelquery

Only this channel's videos (a channel_name from GET /api/v2/videos/channels).

sortquery

recent (default), oldest, longest, shortest or title.

searchquery

Title contains, or an exact video id.

pagequery

1-based. Default 1.

limitquery

1 to 100. Default 50.

# Every video, newest first
curl "https://www.youtubetranscript.dev/api/v2/videos?limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Only one folder's videos
curl "https://www.youtubetranscript.dev/api/v2/videos?folder_id={folder_id}" \
  -H "Authorization: Bearer YOUR_API_KEY"

# One channel's videos, longest first
curl "https://www.youtubetranscript.dev/api/v2/videos?channel=TED&sort=longest" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Videos that aren't in any folder yet
curl "https://www.youtubetranscript.dev/api/v2/videos?unfiled=true" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "videos": [
    {
      "video_id": "dQw4w9WgXcQ",
      "transcript": { "id": "0b6f...", "language": "en", "source_kind": "manual" },
      "title": "Example video",
      "duration_seconds": 212,
      "channel_name": "Example Channel",
      "last_transcribed_at": "2026-10-28T18:02:11Z",
      "folder_ids": ["7c9e6679-7425-40de-944b-e07fc1f90ae7"],
      "outputs": {
        "summary": ["en"],
        "flashcards": ["en"],
        "mind_map": ["en", "es"]
      }
    }
  ],
  "pagination": { "page": 1, "limit": 50, "total": 1, "total_pages": 1, "has_more": false }
}

आपके चैनलों की सूची

The channels your videos come from, most videos first, for filtering GET /api/v2/videos?channel=.

GET/api/v2/videos/channelsFree: no credits
curl "https://www.youtubetranscript.dev/api/v2/videos/channels" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "channels": [
    { "channel_name": "TED", "video_count": 14 },
    { "channel_name": "Starter Story", "video_count": 9 }
  ]
}

वीडियो के फ़ोल्डर सेट करें

Put one video in exactly these folders, adding and removing as needed ([] takes it out of all of them). GET the same path returns its folder_ids.

PUT/api/v2/videos/{video_id}/foldersFree: no credits
पैरामीटर
video_idpathज़रूरी

A video you have a transcript of.

folder_idsstring[]ज़रूरी

Your folder ids.

curl -X PUT https://www.youtubetranscript.dev/api/v2/videos/dQw4w9WgXcQ/folders \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "folder_ids": ["7c9e6679-7425-40de-944b-e07fc1f90ae7"] }'
रिस्पॉन्स (200)
{
  "video_id": "dQw4w9WgXcQ",
  "folder_ids": ["7c9e6679-7425-40de-944b-e07fc1f90ae7"]
}

फ़ोल्डर के लिए वीडियो सुझाएं

Videos you've transcribed that look like they belong in this folder, picked by AI from their titles (up to 20, best first). Add them with POST /api/v2/folders/{folder_id}/videos.

GET/api/v2/folders/{folder_id}/suggestionsFree: no credits
पैरामीटर
folder_idpathज़रूरी

One of your folders.

curl "https://www.youtubetranscript.dev/api/v2/folders/7c9e6679-7425-40de-944b-e07fc1f90ae7/suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "folder_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "videos": [
    { "video_id": "dQw4w9WgXcQ", "title": "Keyword research for beginners", "channel_name": "Backlinko", "duration_seconds": 912 }
  ]
}

वीडियो के लिए फ़ोल्डर सुझाएं

Which of your folders a video fits (up to 3), picked by AI from its title, and a name for a new folder when none fits well (new_folder, or null).

GET/api/v2/videos/{video_id}/folder-suggestionsFree: no credits
पैरामीटर
video_idpathज़रूरी

A video you have a transcript of.

curl "https://www.youtubetranscript.dev/api/v2/videos/dQw4w9WgXcQ/folder-suggestions" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "video_id": "dQw4w9WgXcQ",
  "folders": [{ "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "name": "SEO Hacks" }],
  "new_folder": null
}

प्लेलिस्ट

प्लेलिस्ट को वीडियो IDs में बदलें, उन्हें /api/v2/batch से ट्रांसक्राइब करें, फिर प्लेलिस्ट बैच और हिस्ट्री देखें।

प्लेलिस्ट के वीडियो

Resolve a YouTube playlist by URL or ID into its video list (metadata only). Pair the returned video_id values with /api/v2/batch to transcribe them.

POST/api/v2/playlists/resolveपेड प्लान
पैरामीटर
playlist_urlstring

Playlist URL. One of playlist_url or playlist_id is required.

playlist_idstring

Playlist ID (the list= value).

limitinteger

Max videos returned (1-100).

curl -X POST https://www.youtubetranscript.dev/api/v2/playlists/resolve \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "playlist_url": "https://www.youtube.com/playlist?list=PLxxxx", "limit": 100 }'
रिस्पॉन्स (200)
{
  "playlist_id": "PLxxxx",
  "title": "My playlist",
  "total": 42,
  "truncated": false,
  "items": [
    { "video_id": "dQw4w9WgXcQ", "title": "Example video" }
  ]
}

प्लेलिस्ट जॉब स्टेटस

Fetch a playlist batch and per-video transcription job status. For overall batch progress, poll GET /api/v2/batch/{batch_id}.

GET/api/v2/playlists/{playlist_id}
पैरामीटर
playlist_idpathज़रूरी

Batch ID returned from /playlists/resolve.

curl "https://www.youtubetranscript.dev/api/v2/playlists/{playlist_batch_id}" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "playlist": { "id": "3f1...", "playlist_id": "PLxxxx", "title": "My playlist" },
  "videos": [
    { "video_id": "dQw4w9WgXcQ", "video_title": "Example video", "status": "succeeded" }
  ]
}

हाल के प्लेलिस्ट जॉब

List recent playlist batches for the authenticated user.

GET/api/v2/playlists/history
curl "https://www.youtubetranscript.dev/api/v2/playlists/history" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "history": [
    { "id": "3f1...", "playlist_id": "PLxxxx", "title": "My playlist", "total_videos": 42 }
  ],
  "count": 1
}

चैनल

चैनल ट्रांसक्रिप्शन फ़्लो:1. POST /api/v2/channels/resolve: चैनल के अपलोड लाएँ (सिर्फ़ वीडियो मेटाडेटा)।2. POST /api/v2/batch: ट्रांसक्रिप्शन शुरू करने के लिए लौटाए गए video_id मान भेजें। काम पूरा होने पर नतीजे पाने के लिए webhook_url इस्तेमाल करें।3. GET /api/v2/batch/{batch_id}: कुल प्रगति और एकत्रित नतीजों के लिए बैच को पोल करें।4. GET /api/v2/channels/{channel_id}: हर वीडियो के जॉब स्टेटस के साथ चैनल बैच लाएँ; /channels/history पिछले चैनल बैच की सूची देता है।

चैनल के वीडियो

Fetch the uploads of a YouTube channel by URL, channel ID, or @handle. Returns video metadata only: pair the returned video_id values with /api/v2/batch to transcribe them.

POST/api/v2/channels/resolveपेड प्लान
पैरामीटर
channel_urlstringज़रूरी

YouTube channel URL, channel ID, or @handle. One of channel_url, channel_id, or handle must be provided. Handles are the public ID without the @ (for https://www.youtube.com/@jawed, the ID is jawed).

limitinteger

Maximum uploads returned. Defaults to the plan maximum.

Per-request cap: Basic 500 videos · Pro 1,500 videos · Business 3,000 videos. Monthly job cap: Basic 3 · Pro 8 · Business unlimited.

रेट लिमिट

Plan-based: Free 1 req/s · Basic 25 req/s · Pro 50 req/s · Business 100 req/s. Exceeding the limit returns 429 with a Retry-After header.

curl -X POST https://www.youtubetranscript.dev/api/v2/channels/resolve \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "handle": "@youtube",
    "limit": 50
  }'
रिस्पॉन्स (200)
{
  "channel_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
  "channel_title": "YouTube",
  "subscriber_count": 42000000,
  "video_count": 1200,
  "total": 1,
  "truncated": false,
  "items": [
    {
      "video_id": "dQw4w9WgXcQ",
      "title": "Latest upload",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "published_at": "2026-05-01T12:00:00Z",
      "duration_seconds": 420
    }
  ]
}

चैनल जॉब स्टेटस

Fetch a channel batch and the per-video transcription job status. For overall batch status (counts + progress), poll GET /api/v2/batch/{batch_id} instead: use this endpoint when you also need each video's individual job state.

GET/api/v2/channels/{channel_id}
पैरामीटर
channel_idpathज़रूरी

Batch ID returned from /channels/resolve.

curl -X GET https://www.youtubetranscript.dev/api/v2/channels/CHANNEL_BATCH_ID \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "channel": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "channel_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
    "channel_title": "YouTube",
    "total_videos": 2,
    "completed_count": 1,
    "failed_count": 0,
    "status": "processing",
    "created_at": "2026-05-15T10:00:00Z"
  },
  "videos": [
    {
      "id": "job_123",
      "video_id": "dQw4w9WgXcQ",
      "video_title": "Latest upload",
      "status": "succeeded",
      "created_at": "2026-05-15T10:00:00Z",
      "finished_at": "2026-05-15T10:00:10Z"
    }
  ]
}

हाल के चैनल जॉब

List recent channel batches for the authenticated user.

GET/api/v2/channels/history
पैरामीटर
limitquery

Max items (default 50, max 100).

curl -X GET "https://www.youtubetranscript.dev/api/v2/channels/history?limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "history": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "channel_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
      "channel_title": "YouTube",
      "total_videos": 25,
      "completed_count": 25,
      "failed_count": 0,
      "status": "completed",
      "created_at": "2026-05-15T10:00:00Z",
      "completed_at": "2026-05-15T10:12:00Z"
    }
  ],
  "count": 1
}

api-docs.docs.nav.endpoints.recommendations-videos

Newest uploads from the channels you transcribe most, excluding videos you have already transcribed. Results are interleaved across channels, newest first. Free: no credits are charged. Pass the returned url or video_id to /api/v2/transcribe or /api/v2/batch.

GET/api/v2/recommendations/videos
पैरामीटर
limitquery

Max videos returned (default 6, max 30).

channelsquery

How many of your top channels to draw from (default 3, max 10).

curl -X GET "https://www.youtubetranscript.dev/api/v2/recommendations/videos?limit=6" \
  -H "Authorization: Bearer YOUR_API_KEY"
रिस्पॉन्स (200)
{
  "recommendations": [
    {
      "video_id": "dQw4w9WgXcQ",
      "title": "Latest upload",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "thumbnail_url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mqdefault.jpg",
      "published_at": "2026-10-17T15:00:00Z",
      "duration_seconds": 1089,
      "channel_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
      "channel_title": "YouTube"
    }
  ],
  "channels": [
    {
      "channel_id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
      "channel_title": "YouTube",
      "transcribed_count": 12
    }
  ],
  "count": 1
}

इंटीग्रेशन

आधिकारिक SDKs, Claude और Cursor के लिए एक MCP सर्वर, एक कस्टम GPT, और Make व n8n के लिए तैयार टेम्पलेट्स।

MCP serverClaude · Cursor
Repo

YouTube Transcript MCP सर्वर को Claude Desktop, Cursor या किसी भी MCP-संगत क्लाइंट में जोड़ें। इससे वीडियो ट्रांसक्राइब करने, मौजूदा ट्रांसक्रिप्ट लाने और उपयोग जाँचने के टूल्स मिलते हैं।

इंस्टॉल और कॉन्फ़िगर करें
claude mcp add --transport http youtubetranscript https://mcp.youtubetranscript.dev --header "x-api-token: YOUR_API_KEY"
Node SDKnpm
npm

बेहतरीन TypeScript types, retries, pagination helpers और webhook signature verification।

इंस्टॉल करें और इस्तेमाल करें
npm install youtube-transcript-api
Python SDKPyPI
PyPI

Sync + async क्लाइंट, type stubs, और बैच व webhook फ़्लो के लिए helpers।

इंस्टॉल करें और इस्तेमाल करें
pip install youtubetranscriptdevapi

हमारे कस्टम GPT को ChatGPT में जोड़ें और आम भाषा में किसी भी YouTube वीडियो का सारांश, उद्धरण, अनुवाद या उससे सवाल-जवाब करें। अंदर से /api/v2/gpt/* पर आधारित।

  • · OAuth साइन-इन: चैट में API key की ज़रूरत नहीं
  • · कैप्शन न होने पर ASR फ़ॉलबैक
  • · टाइमस्टैम्प और स्रोत लिंक के साथ उद्धरण
  • · हर अकाउंट पर मुफ़्त ट्रायल

मौजूदा ऑटोमेशन में ट्रांसक्रिप्शन जोड़ने के लिए टेम्पलेट इम्पोर्ट करें (या स्निपेट कॉपी करें): Notion, Sheets, Slack, Airtable, Zapier जैसे फ़्लो।

Make.com मॉड्यूल
Module: HTTP > Make a request
- URL: https://www.youtubetranscript.dev/api/v2/transcribe
- Method: POST
- Headers:
    Authorization: Bearer {{connection.api_key}}
    Content-Type: application/json
- Body type: Raw / JSON
- Request content:
    {
      "video": "{{1.video_url}}",
      "format": { "timestamp": true }
    }
n8n HTTP node
{
  "name": "Transcribe Video",
  "type": "n8n-nodes-base.httpRequest",
  "parameters": {
    "method": "POST",
    "url": "https://www.youtubetranscript.dev/api/v2/transcribe",
    "authentication": "genericCredentialType",
    "genericAuthType": "httpHeaderAuth",
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={ \"video\": $json.video_url }"
  }
}
Postman / OpenAPIएक क्लिक
Postman कलेक्शन

OpenAPI स्पेक को Postman, Insomnia या OpenAPI 3 सपोर्ट करने वाले किसी भी टूल में इम्पोर्ट करें।

एरर

एरर code और message वाली JSON body लौटाते हैं। HTTP स्टेटस श्रेणी दर्शाता है।

HTTP स्टेटसएरर कोडविवरण
400invalid_requestInvalid JSON or missing required fields
401invalid_api_keyMissing or invalid API key
402payment_requiredInsufficient credits
404no_captionsNo captions available and ASR not used
429rate_limit_exceededToo many requests, check Retry-After
500internal_errorServer error, retry with backoff

रेट लिमिट और कोटा

लगातार रिक्वेस्ट और बैच साइज़ के लिए हर प्लान की सीमा। सीमा से ज़्यादा रिक्वेस्ट भेजने पर Retry-After हेडर के साथ 429 लौटता है।

प्लानरिक्वेस्टबैच साइज़
Free1 req/s10 videos
Basic25 req/s500 videos
Pro50 req/s1,500 videos
Business100 req/s3,000 videos

सपोर्ट

लॉन्च करने में मदद चाहिए? हमसे संपर्क करें: हम आम तौर पर कुछ ही घंटों में जवाब देते हैं।

API डॉक्यूमेंटेशन - YouTube Transcript API