Skip to content
Webfold Docs
Esc
↑↓navigate↵open⌘Jpreview

Fetch a YouTube transcript

Extract a text transcript from a YouTube video URL. The server talks to YouTube’s InnerTube API internally.

POST/v1/youtube/transcript
Authorization
AuthorizationBearer token (JWT) · headerrequired

Bearer API key issued for your account. Send Authorization: Bearer <key>.

Request body
requiredapplication/json
urlstring<uri>required

YouTube video URL

languagestring

Preferred language code or auto

default: "auto"
Responses
200

Transcript text and detected language

textstringrequired

Full transcript text

languagestringrequired

Language code of the selected caption track

400

Bad request

string
401

Missing or invalid bearer token

string
403

Billing or plan entitlement blocked the request

string
502

Upstream service (arXiv, YouTube, web page) failed

string
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://api.webfold.ai/v1/youtube/transcript' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://youtu.be/dQw4w9WgXcQ",
  "language": "en"
}'
Response
{
  "text": "string",
  "language": "en"
}