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 in tasks[0].id. The charge lands here; fetching is free, including re-fetching. 💰 Measured at 0.012 billed - this family is the cheapest source of search data here, six times under the flat rate. 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.
Example
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Keyword; you can specify up to 700 characters
Search engine location code; required if location_name or location_coordinate is not specified
Full name of search engine location; required if location_code or location_coordinate is not specified
GPS coordinates of a location; required if location_name or location_code is not specified
Full name of search engine language; required if language_code is not specified
Search engine language code; required if language_name is not specified
Task priority: 1 normal (default), 2 high
Device type: desktop or mobile
Notification URL of a completed task
URL for sending task results
Postback URL datatype; required if postback_url is specified; possible values: advanced, html
Response
Successful response
The current version of the API
General status code
General informational message
Execution time, seconds
Total tasks cost, USD
The number of tasks in the tasks array
The number of tasks in the tasks array returned with an error
Array of task objects
Task identifier in UUID format
Task status code
Task status message
Cost of the task, USD
Number of elements in the result array