DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Live Google Ai Mode SERP HTML
Returns Google's AI Mode answer for a query, with the sources it cites on Google, synchronously. Raw page source rather than parsed results. 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
- 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
- 类型: numbertasks[]
.cost Cost of the task, USD
- 类型: objecttasks[]
.data Contains the same parameters specified in the POST request
- 类型: stringtasks[]
.id Task identifier
- 类型: array string[]tasks[]
.path URL path
- 类型: array string[]tasks[]
.result Array of HTML results
- 类型: integertasks[]
.result _count Number of elements in the result 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
- 类型: integertasks[]
.status _code Task status code
- 类型: stringtasks[]
.status _message Task status message
- 类型: stringtasks[]
.time Execution time, seconds
- 类型: 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/html \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"keyword": "",
"location_name": "",
"location_code": 1,
"location_coordinate": "",
"language_name": "",
"language_code": "",
"device": ""
}
]'
{
"version": "string",
"status_code": 1,
"status_message": "string",
"time": "string",
"cost": 1,
"tasks_count": 1,
"tasks_error": 1,
"tasks": [
"string"
],
"tasks[].id": "string",
"tasks[].status_code": 1,
"tasks[].status_message": "string",
"tasks[].time": "string",
"tasks[].cost": 1,
"tasks[].result_count": 1,
"tasks[].path": [
"string"
],
"tasks[].data": {},
"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"
}