API reference · v2.0.0

Build with the Transcript API.

Fetch captions as clean JSON with one request. Every URL on this page resolves from the host currently serving it — no fixed domain.

Base URL https://transcript.meldrixai.xyz
Authentication

Send your key in a header.

Create and revoke keys from the dashboard. Keys are hashed server-side and shown only once.

request header
X-API-Key: mtx_live_…
POST /api/transcript

Send a JSON body with a full URL or an 11-character video ID.

https://transcript.meldrixai.xyz/api/transcript
FieldTypeDescription
urlstringYouTube URL. Required unless video_id is sent.
video_idstring11-character ID. Required unless url is sent.
languagesstring[]Preferred language codes, in order. When omitted, tries bn/en, then any available language.
auto_any_languagebooleanFall back to any available language when the requested ones are missing. Default true.
translate_tostringTranslate the transcript to this language code.
curl
curl -X POST https://transcript.meldrixai.xyz/api/transcript \
  -H "X-API-Key: mtx_live_…" \
  -H "Content-Type: application/json" \
  -d '{"video_id": "dQw4w9WgXcQ", "languages": ["en"]}'
200 OK · application/json
{
  "video_id": "dQw4w9WgXcQ",
  "language": "English",
  "language_code": "en",
  "is_generated": false,
  "available_languages": ["en", "bn"],
  "full_text": "We're no strangers to love…",
  "snippets": […]
}
GET /api/transcript

Pass the same fields as query parameters. Repeat languages for multiple values.

https://transcript.meldrixai.xyz/api/transcript
ParamTypeDescription
urlstringURL-encoded YouTube URL.
video_idstringRaw 11-character video ID.
languagesstring[]Repeatable preference list. Omitted = bn/en, then any available language.
auto_any_languagebooleanSet false to require one of the requested languages.
translate_tostringTarget translation language code.
curl
curl "https://transcript.meldrixai.xyz/api/transcript?video_id=dQw4w9WgXcQ&languages=en" \
  -H "X-API-Key: mtx_live_…"
GET /health

Liveness probe for load balancers and uptime monitors. No API key is required.

https://transcript.meldrixai.xyz/health
200 OK · application/json
{
  "status": "ok"
}

Try it

Send a real request to this deployment. Your key stays in this browser.

—
idle
Response will appear here.
Error handling

Predictable failures.

Errors share one shape: { "error": "code", "message": "…" }.

StatusCodeMeaning
400invalid_requestMissing or malformed input.
401unauthorizedMissing, invalid, or revoked API key.
404no_transcript_foundNo transcript exists, or the video is private, unavailable, or restricted.
429ip_blockedYouTube blocked the server IP. Add a proxy.
502upstream_errorUnexpected response from YouTube.
503database_unavailableKey validation is temporarily unavailable.

Need the generated schema? Open Swagger UI.