Data 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