データ API / DataForSEO / SERP
Live Google AI Mode SERP
Returns Google's AI Mode answer for a query, with the sources it cites on Google, 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.
パラメータ
パス・クエリ・ヘッダーのパラメータはありません。
リクエストボディ
keywordstring必須Keyword; you can specify up to 700 characters
location_codeinteger任意Search engine location code; required if location_name or location_coordinate is not specified
location_namestring任意Full name of search engine location; required if location_code or location_coordinate is not specified
location_coordinatestring任意GPS coordinates of a location; required if location_name or location_code is not specified
language_namestring任意Full name of search engine language; required if language_code is not specified
language_codestring任意Search engine language code; required if language_name is not specified
devicestring任意Device type: desktop or mobile
calculate_rectanglesboolean任意Enable pixel ranking calculations for elements in SERP
browser_screen_widthinteger任意Custom browser screen width
browser_screen_heightinteger任意Custom browser screen height
browser_screen_resolution_rationumber任意Screen resolution ratio for rectangle calculations
リクエスト例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/ai_mode/live/advanced" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "<string>",
"location_code": 0,
"location_name": "<string>",
"location_coordinate": "<string>",
"language_name": "<string>",
"language_code": "<string>",
"device": "<string>",
"calculate_rectangles": false
}'レスポンス
レスポンスのフィールド
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
tasks_countinteger任意The number of tasks in the tasks array
tasks_errorinteger任意The number of tasks in the tasks array returned with an error
tasksstring[]任意Array of tasks
resultstring[]任意Array of live SERP results
keywordstring任意Keyword received in the POST array
typestring任意Search engine type in the POST array
se_domainstring任意Search engine domain in the POST array
location_codeinteger任意Location code in the POST array
language_codestring任意Language code in the POST array
check_urlstring任意Search URL with refinement parameters
item_typesstring[]任意Types of search results found in SERP
items_countinteger任意Number of results returned in the items array
itemsstring[]任意Elements of search results found in SERP