# Get your API key Source: https://docs.transcribetube.com/api-documentation/authentication How to authenticate your requests to our API. In order to use our API, you need to get your `api-key` first. Create an account, log in and in the left menu click on the **REST API** link. Next, see on the `API Access` -> `Your API key` to find your `api-key`. You can Copy your api-key via click `Copy` button menu Start using api - [Transcribe Youtube View](/api-documentation/endpoint/post-apitranscribevideo) Do not show your `api-key` to anyone else. If someone gains the access ot your `api-key`, they can use your credits as if they had your api-key. You can click on the `Generate new API key` button to get a new one and invalidate the old one for security reasons. menu # Get Project Detail Source: https://docs.transcribetube.com/api-documentation/endpoint/get-apidetail get /api/detail/{id} Fetch a single project's status and (if ready) its transcription text. Use this to poll for completion — see [Lifecycle & Polling](/api-documentation/lifecycle). ## Request | Param | In | Type | Default | Description | | ------------------- | ----- | ------- | ------- | -------------------------------------------------------------------------------------------- | | `id` | path | string | — | The `projectId` returned by `POST /api/transcribeVideo`. | | `showTimecode` | query | boolean | `false` | Include `[HH:MM:SS.sss]` timecodes in the `text` field (only applies when state is `done`). | | `showSpeaker` | query | boolean | `false` | Include `Speaker N:` labels in the `text` field. | | `showTranscription` | query | boolean | `true` | If `false`, omits the full transcript JSON (currently ignored by the API view but reserved). | ## Examples ```bash cURL theme={null} curl "https://api.transcribetube.com/api/detail/f3c1e7a0-2b48-4a91-8a30-9b1c2d3e4f50" \ -H "api-key: $TRANSCRIBETUBE_API_KEY" ``` ```bash with options theme={null} curl "https://api.transcribetube.com/api/detail/f3c1e7a0-…?showTimecode=true&showSpeaker=true" \ -H "api-key: $TRANSCRIBETUBE_API_KEY" ``` ```js Node (fetch) theme={null} const res = await fetch( `https://api.transcribetube.com/api/detail/${projectId}`, { headers: { "api-key": process.env.TRANSCRIBETUBE_API_KEY } } ); const project = await res.json(); if (project.state === "done") { console.log(project.text); } ``` ## Response The response shape **depends on the project's state**. ### When `state` is `done` ```json theme={null} { "id": "f3c1e7a0-2b48-4a91-8a30-9b1c2d3e4f50", "name": "Rick Astley - Never Gonna Give You Up", "youtubeId": "dQw4w9WgXcQ", "language": "en", "text": "We're no strangers to love\n\nYou know the rules and so do I\n\n..." } ``` | Field | Type | Description | | ----------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | string | Project ID. | | `name` | string | Video title. | | `youtubeId` | string | The YouTube video ID. | | `language` | string | Language code. | | `text` | string | Plain-text transcription. Paragraphs separated by `\n\n`. With `showTimecode=true`, each paragraph is prefixed by `[HH:MM:SS.sss]`; with `showSpeaker=true`, by `Speaker N:`. | The `done` shape does **not** include the `state` field. If you're branching on state, also check for the presence of `text` to confirm completion. ### When `state` is `upload` or `transcription` ```json theme={null} { "id": "f3c1e7a0-2b48-4a91-8a30-9b1c2d3e4f50", "name": "Rick Astley - Never Gonna Give You Up", "state": "transcription", "message": "Transcription is in progress", "videoLength": 213, "createdAt": "2026-01-15T14:30:00.000Z" } ``` | Field | Type | Description | | ------------- | ----------------- | ----------------------------- | | `state` | enum | `upload` or `transcription`. | | `message` | string | Human-readable status. | | `videoLength` | integer | Length in seconds. | | `createdAt` | string (ISO 8601) | When the project was created. | ## Errors | Status | When | | ------ | ----------------------------------------------------- | | 401 | Missing or invalid `api-key` header. | | 404 | Project not found, or it belongs to a different user. | # List Projects Source: https://docs.transcribetube.com/api-documentation/endpoint/get-apilist get /api/list List all projects belonging to the API user, newest first, in pages of 100. ## Request | Query param | Type | Default | Description | | ----------- | ----------- | ------- | ------------------------------------------- | | `page` | integer ≥ 1 | `1` | Page number. Page size is fixed at **100**. | ## Examples ```bash cURL theme={null} curl "https://api.transcribetube.com/api/list?page=1" \ -H "api-key: $TRANSCRIBETUBE_API_KEY" ``` ```js Node (fetch) theme={null} const res = await fetch("https://api.transcribetube.com/api/list?page=1", { headers: { "api-key": process.env.TRANSCRIBETUBE_API_KEY }, }); const projects = await res.json(); ``` ```python Python (requests) theme={null} import os, requests res = requests.get( "https://api.transcribetube.com/api/list", params={"page": 1}, headers={"api-key": os.environ["TRANSCRIBETUBE_API_KEY"]}, ) projects = res.json() ``` ## Response `200 OK` — array of projects (one page): ```json theme={null} [ { "id": "f3c1e7a0-2b48-4a91-8a30-9b1c2d3e4f50", "name": "Rick Astley - Never Gonna Give You Up", "youtubeId": "dQw4w9WgXcQ", "state": "done", "createdAt": "2026-01-15T14:30:00.000Z" }, { "id": "a812b3c4-5d6e-7f8a-9b0c-1d2e3f4a5b60", "name": "Some other video", "youtubeId": "abc123XYZ_w", "state": "transcription", "createdAt": "2026-01-15T14:25:00.000Z" } ] ``` | Field | Type | Description | | ----------- | ----------------- | ------------------------------------------------------------------------------------------------ | | `id` | string (UUID) | Project ID, used in `GET /api/detail/{id}`. | | `name` | string | Video title from YouTube at submission time. | | `youtubeId` | string | The YouTube video ID. | | `state` | enum | `upload` \| `transcription` \| `done` \| `error`. See [Lifecycle](/api-documentation/lifecycle). | | `createdAt` | string (ISO 8601) | When the project was created. | ## Pagination There is no total count or `hasMore` field. To detect the last page, request until you receive an empty array. Pages are 1-indexed. ```js theme={null} let page = 1; while (true) { const res = await fetch(`https://api.transcribetube.com/api/list?page=${page}`, { headers: { "api-key": apiKey }, }); const batch = await res.json(); if (batch.length === 0) break; process(batch); page++; } ``` ## Errors | Status | When | | ------ | ------------------------------------ | | 400 | `page` \< 1 or not a number. | | 401 | Missing or invalid `api-key` header. | # Transcribe YouTube Video Source: https://docs.transcribetube.com/api-documentation/endpoint/post-apitranscribevideo post /api/transcribeVideo This API endpoint allows users to submit a YouTube video ID along with language preference and a webhook URL. Upon submission, the system processes the request and sends a POST request to the provided webhook URL with project details with transcription. Submit a YouTube video for transcription. The request returns immediately with a `projectId`; the actual transcription runs in the background — see [Lifecycle & Polling](/api-documentation/lifecycle). ## Request | Field | Type | Required | Description | | ---------------- | ------ | -------- | ------------------------------------------------------------------------------------------------- | | `youtubeVideoId` | string | yes | The YouTube video ID (the `v=` parameter, e.g. `dQw4w9WgXcQ`). | | `webhookUrl` | string | yes | HTTP(S) URL we POST to when transcription completes. See [Webhooks](/api-documentation/webhooks). | | `language` | string | no | BCP-47 language code (`en`, `tr`, `de`, …). Defaults to auto-detect. | Credit is deducted at request time based on the video's reported length: **1 credit per minute (rounded down, minimum 1)**. If the YouTube video is unavailable or private, the request fails before any credit is consumed. ## Examples ```bash cURL theme={null} curl -X POST https://api.transcribetube.com/api/transcribeVideo \ -H "api-key: $TRANSCRIBETUBE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "youtubeVideoId": "dQw4w9WgXcQ", "language": "en", "webhookUrl": "https://yourapp.com/hooks/transcribetube" }' ``` ```js Node (fetch) theme={null} const res = await fetch("https://api.transcribetube.com/api/transcribeVideo", { method: "POST", headers: { "api-key": process.env.TRANSCRIBETUBE_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ youtubeVideoId: "dQw4w9WgXcQ", language: "en", webhookUrl: "https://yourapp.com/hooks/transcribetube", }), }); const { projectId } = await res.json(); ``` ```python Python (requests) theme={null} import os, requests res = requests.post( "https://api.transcribetube.com/api/transcribeVideo", headers={"api-key": os.environ["TRANSCRIBETUBE_API_KEY"]}, json={ "youtubeVideoId": "dQw4w9WgXcQ", "language": "en", "webhookUrl": "https://yourapp.com/hooks/transcribetube", }, ) project_id = res.json()["projectId"] ``` ## Response `201 Created`: ```json theme={null} { "success": true, "projectId": "f3c1e7a0-2b48-4a91-8a30-9b1c2d3e4f50" } ``` ## Errors | Status | Body | When | | ------ | ------------------- | ----------------------------------------------------------------------------- | | 400 | Validation error | `youtubeVideoId` or `webhookUrl` missing/invalid. | | 401 | `Missing api-key` | Header not provided or invalid. | | 402 | `NOT_ENOUGH_CREDIT` | Subscription has fewer credits than the video length requires. | | 404 | Video not found | YouTube returned no item for the supplied ID (private, deleted, or wrong ID). | ## What happens next 1. Project is created in `upload` state. 2. We download the video, then transcribe its audio. 3. State moves to `transcription`, then to `done`. 4. If you supplied `webhookUrl`, we POST the result to it. Either way, `GET /api/detail/{id}` will return the full transcription once state is `done`. # Getting Started Source: https://docs.transcribetube.com/api-documentation/introduction Prerequisite and how to get help The TranscribeTube API lets you transcribe YouTube videos programmatically. Submit a video, get a `projectId`, and either receive a [webhook callback](/api-documentation/webhooks) or [poll for the result](/api-documentation/lifecycle). ## Prerequisite The API is available on any paid plan. See current plans and pricing at [app.transcribetube.com/subscription](https://app.transcribetube.com/subscription). Once you've subscribed, follow [Get your API key](/api-documentation/authentication) to start testing. ## Endpoints at a glance | Method | Path | Purpose | | ------ | ----------------------------------------------------------------------------- | ---------------------------------------- | | `POST` | [`/api/transcribeVideo`](/api-documentation/endpoint/post-apitranscribevideo) | Submit a YouTube video for transcription | | `GET` | [`/api/list`](/api-documentation/endpoint/get-apilist) | List your projects (paginated) | | `GET` | [`/api/detail/{id}`](/api-documentation/endpoint/get-apidetail) | Get a project's status and transcription | Base URL: `https://api.transcribetube.com`. All requests require an `api-key` header — see [Authentication](/api-documentation/authentication). ## Getting Help If you have any questions, please email us at [hello@transcribetube.com](mailto:hello@transcribetube.com) or get help in chat in [App](https://app.transcribetube.com/dashboard). # Lifecycle & Polling Source: https://docs.transcribetube.com/api-documentation/lifecycle How a transcription job progresses and how to know when it's ready. `POST /api/transcribeVideo` returns immediately with a `projectId` — the actual transcription happens asynchronously in the background and typically takes **between a few seconds and several minutes** depending on video length and queue load. There are two ways to find out when a transcription is ready: **webhook** (push) or **polling** (pull). You can use either, or both. ## Project States Every project moves through a small set of states. The current value is returned in the `state` field of `GET /api/detail/{id}`. | State | Meaning | Action | | --------------- | ----------------------------------------------------------------------- | ----------------------------------------------------- | | `upload` | The video is being downloaded from YouTube and uploaded to our storage. | Wait. | | `transcription` | The audio is being transcribed by our speech engine. | Wait. | | `done` | Transcription finished, full text and transcript JSON available. | Read the result. | | `error` | Something failed in the pipeline. | Retry (re-submit), or contact support if it persists. | A typical run looks like: `upload → transcription → done`. Most videos under 10 minutes complete in **30–90 seconds** total. ## Pattern 1: Webhook (recommended) Provide a `webhookUrl` when you call `POST /api/transcribeVideo`: ```json theme={null} { "youtubeVideoId": "dQw4w9WgXcQ", "language": "en", "webhookUrl": "https://yourapp.com/hooks/transcribetube" } ``` When the project reaches `done`, we POST the full payload to your URL. See [Webhooks](/api-documentation/webhooks) for the payload shape, headers, and the (lack of) retry policy. ## Pattern 2: Polling If you don't have a public webhook endpoint, poll `GET /api/detail/{id}` periodically until the `state` is `done`. ```js theme={null} async function waitForTranscription(projectId, apiKey, { intervalMs = 5000, maxMs = 600000 } = {}) { const deadline = Date.now() + maxMs; while (Date.now() < deadline) { const res = await fetch(`https://api.transcribetube.com/api/detail/${projectId}`, { headers: { "api-key": apiKey }, }); const project = await res.json(); if (project.state === "done") return project; if (project.state === "error") throw new Error(`Project ${projectId} failed`); await new Promise((r) => setTimeout(r, intervalMs)); } throw new Error(`Timed out waiting for project ${projectId}`); } ``` **Recommended cadence**: * Poll every **5–10 seconds** for the first 2 minutes (short videos finish fast). * Then back off to **30–60 seconds** for the next 10 minutes. * Give up after \~10 minutes and report a failure — the project will likely be in `error` state by then. Polling more frequently than once every 3 seconds wastes both your quota and our rate limits without making the job complete any sooner. ## Pattern 3: Both (most robust) The webhook is single-attempt and not retried (see [Webhooks](/api-documentation/webhooks)). To make sure you never miss a result: 1. Submit with a `webhookUrl`. 2. Have your webhook handler mark the project as "received" in your own database. 3. Run a background job every few minutes that lists pending projects via `GET /api/list` and reconciles any that didn't get a webhook by calling `GET /api/detail/{id}`. ## Response Shape by State Note that `GET /api/detail/{id}` returns **different fields depending on state**: ```json done theme={null} { "id": "f3c1e7a0-2b48-4a91-8a30-9b1c2d3e4f50", "name": "Rick Astley - Never Gonna Give You Up", "youtubeId": "dQw4w9WgXcQ", "language": "en", "text": "We're no strangers to love\n\nYou know the rules and so do I\n\n..." } ``` ```json transcription / upload theme={null} { "id": "f3c1e7a0-2b48-4a91-8a30-9b1c2d3e4f50", "name": "Rick Astley - Never Gonna Give You Up", "state": "transcription", "message": "Transcription is in progress", "videoLength": 213, "createdAt": "2026-01-15T14:30:00.000Z" } ``` Detect "ready" by checking `state === "done"` **or** by the presence of the `text` field. # CLI & MCP Source: https://docs.transcribetube.com/cli-and-mcp Transcribe YouTube videos from the command line, or wire TranscribeTube into Claude, Cursor and other AI clients over the Model Context Protocol (MCP). The `tube` CLI turns any YouTube URL (or media file) into a transcript — `txt`, `srt`, `vtt`, `md` or `json` — straight from your terminal. The same package ships an [MCP](https://modelcontextprotocol.io) server, so AI clients like Claude and Cursor can transcribe and read YouTube transcripts as a native tool. You need a TranscribeTube account and an API key. Grab one from your [API key page](https://app.transcribetube.com/account/api-key). Transcription consumes account credit, same as the web app. ## Install ```bash npm theme={null} npm install -g @transcribetube/cli ``` ```bash pnpm theme={null} pnpm add -g @transcribetube/cli ``` ```bash npx (no install) theme={null} npx @transcribetube/cli transcribe "https://youtu.be/dQw4w9WgXcQ" --wait ``` This installs the `tube` binary. ## Authenticate Store your API key once: ```bash theme={null} tube login # opens app.transcribetube.com/account/api-key, then paste your key ``` For CI or headless environments, pass it non-interactively or via the `TUBE_API_KEY` environment variable: ```bash flag theme={null} tube login --api-key "tt_live_xxx" ``` ```bash env var theme={null} export TUBE_API_KEY="tt_live_xxx" tube whoami ``` Verify with `tube whoami` (prints the account email and remaining credit). ## Transcribe a YouTube video The one-liner most people come for: ```bash theme={null} tube transcribe "https://youtu.be/dQw4w9WgXcQ" --wait ``` `--wait` blocks until processing finishes and prints the transcript. Without it, the command queues the job and returns the project id so you can poll later. ### Choose an output format `txt` (default), `srt`, `vtt`, `md`, and `json` are supported via `-f/--format`: ```bash SRT subtitles theme={null} tube transcribe "https://youtu.be/dQw4w9WgXcQ" --wait -f srt > captions.srt ``` ```bash WebVTT theme={null} tube transcribe "https://youtu.be/dQw4w9WgXcQ" --wait -f vtt > captions.vtt ``` ```bash Markdown theme={null} tube transcribe "https://youtu.be/dQw4w9WgXcQ" --wait -f md > transcript.md ``` ```bash JSON (words + timecodes) theme={null} tube transcribe "https://youtu.be/dQw4w9WgXcQ" --wait -f json > transcript.json ``` ### Common flags | Flag | Description | | -------------------- | --------------------------------------------------------- | | `-w, --wait` | Wait for completion and print the transcript | | `-f, --format ` | `txt` \| `srt` \| `vtt` \| `md` \| `json` (default `txt`) | | `-l, --lang ` | Language hint, e.g. `en`. Omit to auto-detect | | `--webhook ` | POST to this URL when transcription completes | | `--json` | Machine-readable JSON output for any command | ## Work with projects Every transcription is a project. Fetch transcripts later, in any format: ```bash theme={null} tube project list # recent projects + status tube project get # project details tube project watch # poll until DONE or ERROR tube project transcript -f srt # fetch a finished transcript ``` `project transcript` also takes `--no-speakers` and `--no-timecodes` to strip speaker labels or timecodes from the output. ## MCP server (Claude, Cursor, Claude Code) The package ships an MCP server over stdio. Point any MCP-capable client at `tube mcp` and it gains three tools: | Tool | What it does | | -------------------- | ------------------------------------------------------------------- | | `transcribe_youtube` | Transcribe a YouTube URL and return speaker-labeled, timecoded text | | `get_transcript` | Fetch an existing project's transcript by id, in any format | | `list_projects` | List recent projects with their ids and status | ### Claude Desktop / Claude Code Add this to your MCP config (`claude_desktop_config.json`, or `.mcp.json` for Claude Code). The server reads your key from `TUBE_API_KEY`: ```json theme={null} { "mcpServers": { "transcribetube": { "command": "tube", "args": ["mcp"], "env": { "TUBE_API_KEY": "tt_live_xxx" } } } } ``` Then just ask: *"Transcribe this YouTube video and summarize the key points: \."* Claude calls `transcribe_youtube`, gets the text, and works with it directly — no copy-paste. ### Cursor Add the same block under `mcpServers` in Cursor's MCP settings. The tools appear automatically in the agent's tool list. The MCP server transcribes synchronously and waits up to 10 minutes for long videos. For batch or unattended jobs, prefer the CLI with `--webhook`. ## Scripting examples ```bash Caption a whole channel (bash) theme={null} # transcript.txt for every URL in urls.txt while read url; do id=$(tube transcribe "$url" --json | jq -r '.id') echo "queued $id for $url" done < urls.txt ``` ```bash Pipe into an LLM theme={null} tube transcribe "https://youtu.be/dQw4w9WgXcQ" --wait -f md \ | your-llm "Summarize this transcript into 5 bullet points" ``` ## API early access **🔌 Need transcription as a hosted API for your agents?** TranscribeTube is opening an MCP-native transcription API. **[Request early access →](https://app.transcribetube.com/api-waitlist?from=docs)** ## Reference * Full REST API: [API Documentation](/api-documentation/introduction) * Authentication & keys: [Authentication](/api-documentation/authentication) * Project lifecycle (UPLOAD → TRANSCRIPTION → DONE): [Lifecycle](/api-documentation/lifecycle) # Welcome to TranscribeTube Source: https://docs.transcribetube.com/introduction Welcome to the TranscribeTube Help Center! Here, you will find all the resources you need to make the most of TranscribeTube’s powerful transcription tools Welcome to the **TranscribeTube Help Center**! Here, you’ll find all the resources you need to make the most of TranscribeTube’s powerful transcription tools. Whether you’re new to TranscribeTube or looking for guidance on specific features, our Help Center provides step-by-step guides and insights to support your transcription needs. ## Getting Started 1. **[Transcribe Audio or Video](/transcribe-audio-video)**\ Learn how to upload audio or video files, edit transcripts, and download your final transcription in just a few steps. Our guide covers everything from selecting files to refining your text, making the transcription process quick and easy. 2. **[Transcribe YouTube Videos](/transcribe-youtube-video)**\ Discover how to transcribe videos directly from YouTube links. This guide walks you through entering the video link, editing the transcript, and downloading the transcription file, perfect for transforming YouTube content into accessible text. 3. **[Transcription Text Editor](/transcription-editor)**\ Dive into our Transcription Text Editor to make detailed edits to your transcriptions. Understand features like language selection, speaker identification, low-confidence keyword review, and how to download your finalized text with confidence. 4. **[Speaker Identification](/speaker-identification)**\ Use the Speaker Identification feature to distinguish between multiple speakers in your transcriptions. This guide explains how to edit speaker names, label different voices, and download a clear, organized transcript with speaker names included. *** ### Need More Help? Each of these guides provides a comprehensive overview of our main features, with detailed steps and visual aids to help you along the way. If you have additional questions or need support, feel free to explore each section above or contact our support team for further assistance. We’re here to help you transcribe effortlessly with TranscribeTube!