DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Setting Google AI Mode SERP Tasks
Queues Google's AI Mode answer for a query, with the sources it cites on Google, returning a task id in tasks[0].id. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. The live twin answers immediately and is simpler for a single query; queue when the batch would outlast a tool call.
- Тип: 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
- pingbackТип: string
_url Notification URL of a completed task
- postbackТип: string
_data Postback URL datatype; required if postback_url is specified; possible values: advanced, html
- postbackТип: string
_url URL for sending task results
- priorityТип: integer
Task priority: 1 normal (default), 2 high
- Тип: object200
Successful response
- Тип: numbercost
Total tasks cost, USD
- Тип: integerstatus
_code General status code
- Тип: stringstatus
_message General informational message
- Тип: array string[]tasks
Array of task objects
- Тип: 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
- Тип: stringtasks[]
.id Task identifier in UUID format
- Тип: integertasks[]
.result _count Number of elements in the result array
- Тип: integertasks[]
.status _code Task status code
- Тип: stringtasks[]
.status _message Task status message
- Тип: 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/task_post \
--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": "",
"priority": 1,
"device": "",
"pingback_url": "",
"postback_url": "",
"postback_data": ""
}
]'
{
"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[].cost": 1,
"tasks[].result_count": 1
}