RelayAPI

Extract YouTube video transcript

Extracts captions/subtitles from a YouTube video. Returns segments with timestamps and the full concatenated text. Responds with 200 if ready immediately, or 202 with a job_id to poll.

POST
/v1/tools/youtube/transcript
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_). Invite redemption also accepts a server-derived rlay_session_ bearer for a current user session.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/tools/youtube/transcript" \  -H "Content-Type: application/json" \  -d '{    "url": "string"  }'
{  "full_text": "string",  "is_auto_generated": true,  "language": "string",  "segments": [    {      "duration": 0,      "start": 0,      "text": "string"    }  ],  "success": true,  "video_id": "string"}

Found something wrong? Help us improve this page.