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.
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
| Field | Type | Description |
|---|---|---|
| url | string | YouTube URL. Required unless video_id is sent. |
| video_id | string | 11-character ID. Required unless url is sent. |
| languages | string[] | Preferred language codes, in order. When omitted, tries bn/en, then any available language. |
| auto_any_language | boolean | Fall back to any available language when the requested ones are missing. Default true. |
| translate_to | string | Translate 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
| Param | Type | Description |
|---|---|---|
| url | string | URL-encoded YouTube URL. |
| video_id | string | Raw 11-character video ID. |
| languages | string[] | Repeatable preference list. Omitted = bn/en, then any available language. |
| auto_any_language | boolean | Set false to require one of the requested languages. |
| translate_to | string | Target 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": "…" }.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | Missing or malformed input. |
| 401 | unauthorized | Missing, invalid, or revoked API key. |
| 404 | no_transcript_found | No transcript exists, or the video is private, unavailable, or restricted. |
| 429 | ip_blocked | YouTube blocked the server IP. Add a proxy. |
| 502 | upstream_error | Unexpected response from YouTube. |
| 503 | database_unavailable | Key validation is temporarily unavailable. |
Need the generated schema? Open Swagger UI.