Felo API PlatformFelo API Platform

Harness 設定

YouTube Subtitling API

任意の言語と timestamp パラメータで YouTube subtitles を取得します。

GET/v2/youtube/subtitling

認証

Bearer API key

Content type

不要

レート制限

endpoint ごとの制限が適用される場合があります。

YouTube Subtitling API は YouTube video の structured subtitle data を取得し、Agent、content analysis、education products、search indexes、summary/translation workflows で video text を使えるようにします。

Endpoint

GET https://openapi.felo.ai/v2/youtube/subtitling

認証

Authorization: Bearer YOUR_API_KEY

Query Parameters

ParameterTypeRequiredDefaultDescription
video_codestringはい-YouTube video ID。例: dQw4w9WgXcQ
languagestringいいえ-字幕の language code。例: en or zh-CN; 省略すると下流サービスが利用可能な言語を選択します
with_timebooleanいいえfalse返すかどうか: start and duration 各字幕 item に対して

レスポンス Fields

フィールド説明
data.titlestringYouTube video タイトル
data.contentsarraySubtitle items
data.contents[].startnumber字幕開始時間(秒)
data.contents[].durationnumber字幕長(秒)
data.contents[].textstringSubtitle text

Example

curl -X GET "https://openapi.felo.ai/v2/youtube/subtitling?video_code=dQw4w9WgXcQ&language=en&with_time=true" \
  -H "Authorization: Bearer YOUR_API_KEY"

ユースケース

  • Let an Agent understand a YouTube video before answering questions.
  • video content の検索可能なテキスト index を作成します。
  • 要約や翻訳 workflow の元テキストを準備します。
  • Map notes, quotes, or summaries back to timestamps.

注記

  • This API does not download video or audio, and it only returns existing subtitles.
  • Some videos may not have subtitles or the requested language.
  • If language is omitted, subtitle selection depends on downstream availability.

Error Responses

HTTP StatusError Code説明推奨対応
400YOUTUBE_SUBTITLING_FAILEDvalidation failed, video does not exist, subtitles unavailable, or downstream client-side errorCheck video_code, subtitle availability, and language
401INVALID_API_KEYAPI key missing, invalid, or revokedVerify API key and authorization header
500YOUTUBE_SUBTITLING_FAILED内部サービスエラーRetry; contact support if it persists
502YOUTUBE_SUBTITLING_FAILEDDownstream subtitle service failed or unavailable後でもう一度試してください