Skip to content

Transcripts · es

Spanish YouTube transcripts

Español

Spanish is one of the most common YouTube caption tracks after English — both `es` and region tags (`es-419`, `es-MX`, `es-ES`) appear. Request `lang=es`; we prefix-match if only a regional track exists.

curl
curl "https://api.ytapi.dev/v1/transcripts/dQw4w9WgXcQ?lang=es" \
  -H "Authorization: Bearer yta_YOUR_KEY"
Example 200
{
  "video_id": "dQw4w9WgXcQ",
  "lang": "es",
  "is_auto_generated": true,
  "is_translated": true,
  "segments": [
    {
      "start": 18,
      "duration": 4.2,
      "text": "No somos extraños al amor"
    },
    {
      "start": 22.2,
      "duration": 4.8,
      "text": "Tú conoces las reglas y yo también"
    }
  ]
}

Probe available tracks first with the free GET /v1/transcripts/{id}/languages endpoint — 0 credits. Fetching the transcript itself is 1 credit on HTTP 200; missing tracks return transcript_language_not_available and are not billed.

Other languages