Skip to main content
POST
Setting Google Events SERP Tasks
Queues the events Google surfaces for a query on Google, returning a task id in tasks[0].id. The charge lands here; fetching is free, including re-fetching. 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

Request contract

  • Method and path: POST /apis/v1/dataforseo/serp/google/events/task_post
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/dataforseo/serp/google/events/task_post
  • Runtime facts: 6ab8fec17df1d5dcdff2e036dd1eb40587752b774ec040ab4eb0cc6946c3dd3c
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.02 USD (not a fixed price). Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.02
  • Cost contract: response_usd
  • Published reference multiplier: 1.0
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
keyword
string
required

Keyword to search for

language_code
string

Search engine language code

language_name
string

Full name of search engine language

location_code
integer

Search engine location code

location_coordinate
string

GPS coordinates of a location

location_name
string

Full name of search engine location

pingback_url
string

Notification URL of a completed task

postback_data
string

Postback datatype

postback_url
string

URL for sending task results

priority
integer

Task priority

Response

Successful response

cost
number

Total tasks cost, USD

status_code
integer

General status code

status_message
string

General informational message

tasks
string[]

Array of task objects

tasks[].cost
number

Cost of the task, USD

tasks[].id
string

Task identifier in UUID format

tasks[].result_count
integer

Number of elements in the result array

tasks[].status_code
integer

Task status code

tasks[].status_message
string

Task status message

tasks_count
integer

The number of tasks in the tasks array

tasks_error
integer

The number of tasks in the tasks array returned with an error

time
string

Execution time, seconds

version
string

The current version of the API