データ API / DataForSEO / SERP
Live YouTube Comments Advanced
Returns the comments on one YouTube video 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
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_codestring任意YouTube interface language code, for example en. Provide this or language_name.
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_comments/live/advanced" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video_id": "<string>",
"location_code": 0,
"location_name": "<string>",
"language_code": "<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