Get transcription job
get_transcriptionGet the status and result of a transcription job by id. Poll this until state is done or failed, with wait_seconds up to 45 to let the call wait, or every 10 to 15 seconds without. Do not queue the video again meanwhile: that is charged again. On done, content holds the job's text: the transcript (txt) for transcribe, the subtitles (srt) for get_subtitles, nothing for burn_subtitles (read burned_video_url). Pass format for another one (txt, srt, webvtt) and language for a translation's subtitles. Long texts come in parts of at most 40,000 characters: when next_offset is set, call again with offset set to it, or give the user txt_url/srt_url/webvtt_url to download the whole file. If is_preview is true, only the first preview_minutes minutes were transcribed (the account ran out of minutes): tell the user the result is incomplete and that the whole video can be unlocked on youtubetotext.ai after upgrading at https://youtubetotext.ai/pricing/. If state is failed with an error mentioning plan minutes or credits, direct the user to the pricing page at https://youtubetotext.ai/pricing/.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_transcription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The job id returned by `transcribe`, `get_subtitles`, `burn_subtitles` or `transcribe_playlist`. | |
| format | No | Which text to return in `content`: `txt` (plain transcript), `srt` or `webvtt` (subtitles). Omit for the job's own format: `txt` for transcribe, `srt` for get_subtitles, none for burn_subtitles. Transcript jobs have `txt` only. | |
| offset | No | Character offset to read `content` from. Start at 0, then pass the result's `next_offset` until it is null to get a long text in parts. | |
| language | No | Return a translation's subtitles instead of the original, by the language name it was requested with, e.g. "Spanish" (case does not matter). Translations have `srt` and `webvtt` only; `format` defaults to `srt`. | |
| wait_seconds | No | Wait up to this many seconds (max 45) for the job to finish before answering; the call returns as soon as it is `done` or `failed`. 0 answers at once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | No | ||
| type | Yes | ||
| error | No | ||
| state | Yes | ||
| title | No | ||
| lyrics | No | ||
| offset | No | ||
| content | No | One part of the text in `content_format`. Null until the job is done. When `next_offset` is set, call get_transcription again with that offset for the rest. | |
| quality | Yes | ||
| srt_url | No | Download link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs. | |
| txt_url | No | Download link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs. | |
| duration | No | Video length in seconds | |
| progress | Yes | Percent done, 0 to 100 | |
| verbatim | Yes | ||
| font_size | Yes | ||
| background | Yes | ||
| created_at | Yes | ||
| is_preview | No | True means only the first `preview_minutes` minutes were transcribed, because the account ran out of minutes. Tell the user the result is incomplete. | |
| updated_at | Yes | ||
| webvtt_url | No | Download link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs. | |
| next_offset | No | Offset of the next part, or null when `content` reaches the end | |
| total_chars | No | Length of the whole text in `content_format` | |
| translations | No | ||
| lyrics_status | No | ||
| content_format | No | ||
| preview_minutes | No | ||
| burned_video_url | No | Download link, valid for 1 hour; call get_transcription again for a fresh one. Null while the job runs. | |
| content_language | No | The translation `content` holds; null for the original | |
| tag_audio_events | No |