DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
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.
- 型: array object[]
- keyword型: string必須
Keyword; you can specify up to 700 characters
- browser型: integer
_screen _height Custom browser screen height
- browser型: number
_screen _resolution _ratio Screen resolution ratio for rectangle calculations
- browser型: integer
_screen _width Custom browser screen width
- calculate型: boolean
_rectangles Enable pixel ranking calculations for elements in SERP
- device型: string
Device type: desktop or mobile
- language型: string
_code Search engine language code; required if language_name is not specified
- language型: string
_name Full name of search engine language; required if language_code is not specified
- location型: integer
_code Search engine location code; required if location_name or location_coordinate is not specified
- location型: string
_coordinate GPS coordinates of a location; required if location_name or location_code is not specified
- location型: string
_name Full name of search engine location; required if location_code or location_coordinate is not specified
- 型: object200
Successful response
- 型: numbercost
Total tasks cost, USD
- 型: integerstatus
_code General status code
- 型: stringstatus
_message General informational message
- 型: array string[]tasks
Array of tasks
- 型: integertasks
_count The number of tasks in the tasks array
- 型: integertasks
_error The number of tasks in the tasks array returned with an error
- 型: array string[]tasks[]
.result Array of live SERP results
- 型: stringtasks[]
.result[] .check _url Search URL with refinement parameters
- 型: array string[]tasks[]
.result[] .item _types Types of search results found in SERP
- 型: array string[]tasks[]
.result[] .items Elements of search results found in SERP
- 型: integertasks[]
.result[] .items _count Number of results returned in the items array
- 型: stringtasks[]
.result[] .keyword Keyword received in the POST array
- 型: stringtasks[]
.result[] .language _code Language code in the POST array
- 型: integertasks[]
.result[] .location _code Location code in the POST array
- 型: stringtasks[]
.result[] .se _domain Search engine domain in the POST array
- 型: stringtasks[]
.result[] .type Search engine type in the POST array
- 型: stringtime
Execution time, seconds
- 型: stringversion
The current version of the API
application/json - 400
Bad request
- 401
Unauthorized
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
Rate limit exceeded
- 500
Internal server error
- 502
The service could not complete the request.
- 503
The API or billing service is temporarily unavailable.
- 504
The service timed out while processing the request.
- default
The operation failed. Keep the response request ID when contacting Felo support.
curl https://openapi.felo.ai/v1/beta/dataforseo/serp/google/ai_mode/live/advanced \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"keyword": "",
"location_code": 1,
"location_name": "",
"location_coordinate": "",
"language_name": "",
"language_code": "",
"device": "",
"calculate_rectangles": true,
"browser_screen_width": 1,
"browser_screen_height": 1,
"browser_screen_resolution_ratio": 1
}
]'
{
"version": "string",
"status_code": 1,
"status_message": "string",
"time": "string",
"cost": 1,
"tasks_count": 1,
"tasks_error": 1,
"tasks": [
"string"
],
"tasks[].result": [
"string"
],
"tasks[].result[].keyword": "string",
"tasks[].result[].type": "string",
"tasks[].result[].se_domain": "string",
"tasks[].result[].location_code": 1,
"tasks[].result[].language_code": "string",
"tasks[].result[].check_url": "string",
"tasks[].result[].item_types": [
"string"
],
"tasks[].result[].items_count": 1,
"tasks[].result[].items": [
"string"
]
}