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.

Prix
$0.01476/successAu prix catalogue
Taux de réussite
—Aucune donnée de taux de réussite pour le moment30 derniers jours · 2 appels
Latence p50
——
Dernière vérification
—Pas encore vérifié
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.youtube-get-video-captions-v1?format=srt&videoId=dQw4w9WgXcQBeta
  • Utilise le quota de la plateforme
  • Réponse synchrone
  • Lit des données publiques

Paramètres

ParamètreTypeObligatoireDescriptionExemple
Paramètres de requête
formatchaîneFacultatifCaption 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
videoIdchaîneObligatoireThe unique identifier for a YouTube video.dQw4w9WgXcQ
languageCodechaîneFacultatifCaption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks.
  • Paramètres de requête
  • formatchaîneFacultatif

    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.

    Exemple : srt

  • videoIdchaîneObligatoire

    The unique identifier for a YouTube video.

    Exemple : dQw4w9WgXcQ

  • languageCodechaîneFacultatif

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

Exemples de code

Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.

Beta
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"

Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.01476/success, frais de service inclus.