数据 API / DataForSEO / SERP
Live YouTube Subtitles Advanced
Returns one YouTube video's subtitle track on YouTube, synchronously. Returns keyword, type, se_domain, location_code, language_code, check_url, datetime, spell, refinement_chips, item_types, items_count and items. advanced is the default choice; take regular when only the ranked list matters and html only to check what the parser dropped. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200.
参数
没有路径、查询或请求头参数。
请求体
video_idstring必填ID of the video
language_codestring可选YouTube interface language code, for example en. Provide this or language_name.
location_codeinteger可选YouTube location code, for example 2840. Provide this or location_name.
location_namestring可选YouTube location name, for example United States. Provide this or location_code.
language_namestring可选YouTube interface language name, for example English. Provide this or language_code.
请求示例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/youtube/video_subtitles/live/advanced" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video_id": "<string>",
"language_code": "<string>",
"location_code": 0,
"location_name": "<string>",
"language_name": "<string>"
}'响应
响应字段
versionstring可选The current version of the API
status_codeinteger可选General status code
status_messagestring可选General informational message
timestring可选Execution time, seconds
costnumber可选Total tasks cost, USD
tasksstring[]可选Array of tasks
resultstring[]可选Array of live SERP results