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/successプロバイダー原価
Success rate
—成功率データはまだありませんLast 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
Try online近日公開Provider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

パラメータ

パラメータ型必須説明例
クエリパラメータ
format文字列任意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.srt
videoId文字列必須The unique identifier for a YouTube video.dQw4w9WgXcQ
languageCode文字列任意Caption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks.
  • クエリパラメータ
  • format文字列任意

    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.

    例:srt

  • videoId文字列必須

    The unique identifier for a YouTube video.

    例:dQw4w9WgXcQ

  • languageCode文字列任意

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

コード例

$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。

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"

このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.01476/success です。サービス料を含みます。