Just One APIYouTubeSocial

YouTube video captions by video id — SRT, XML, JSON3, text

justoneapi.x.youtube-get-video-captions-v1

Retrieve available caption tracks for a YouTube video or request captions in SRT, XML, JSON3, or plain-text format.

Price
$0.01476/successAl precio del proveedor
Success rate
—Aún no hay datos de tasa de éxitoLast 30 days · 2 calls
Latency p50
——
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-video-captions-v1?format=srt&videoId=dQw4w9WgXcQPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parámetros

ParámetroTipoObligatorioDescripciónEjemplo
Parámetros de consulta
formatcadenaOpcionalCaption output format. Available Values: - `srt`: SubRip caption format with timeline cues - `xml`: Original XML caption format - `json3`: YouTube original JSON caption structure - `txt`: Plain text without timeline cues One of: srt, xml, json3, txt.srt
videoIdcadenaObligatorioThe unique identifier for a YouTube video.dQw4w9WgXcQ
languageCodecadenaOpcionalCaption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks.
  • Parámetros de consulta
  • formatcadenaOpcional

    Caption output format. Available Values: - `srt`: SubRip caption format with timeline cues - `xml`: Original XML caption format - `json3`: YouTube original JSON caption structure - `txt`: Plain text without timeline cues One of: srt, xml, json3, txt.

    Ejemplo: srt

  • videoIdcadenaObligatorio

    The unique identifier for a YouTube video.

    Ejemplo: dQw4w9WgXcQ

  • languageCodecadenaOpcional

    Caption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks.

Ejemplos de código

Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-video-captions-v1?format=srt&videoId=dQw4w9WgXcQ' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.01476/success, incluida la tarifa de servicio.