> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Google Events SERP Tasks

> Queues the events Google surfaces for a query on Google, returning a task id in tasks[0].

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

```bash theme={null}
curl -X POST "https://api.aisa.one/apis/v1/dataforseo/serp/google/events/task_post" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '[{"keyword": "...", "location_code": "...", "location_name": "..."}]'
```


## OpenAPI

````yaml openapi/dataforseo.json POST /dataforseo/serp/google/events/task_post
openapi: 3.0.3
info:
  title: DataForSEO API
  version: 1.0.0
  description: DataForSEO API endpoints exposed through the AIsa unified gateway.
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /dataforseo/serp/google/events/task_post:
    post:
      summary: Setting Google Events SERP Tasks
      description: >-
        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.
      operationId: post_dataforseo_serp_google_events_submit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  keyword:
                    type: string
                    description: Keyword to search for
                  location_code:
                    type: integer
                    description: Search engine location code
                  location_name:
                    type: string
                    description: Full name of search engine location
                  location_coordinate:
                    type: string
                    description: GPS coordinates of a location
                  language_code:
                    type: string
                    description: Search engine language code
                  language_name:
                    type: string
                    description: Full name of search engine language
                  priority:
                    type: integer
                    description: Task priority
                  postback_url:
                    type: string
                    description: URL for sending task results
                  pingback_url:
                    type: string
                    description: Notification URL of a completed task
                  postback_data:
                    type: string
                    description: Postback datatype
                required:
                  - keyword
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  version:
                    type: string
                    description: The current version of the API
                  status_code:
                    type: integer
                    description: General status code
                  status_message:
                    type: string
                    description: General informational message
                  time:
                    type: string
                    description: Execution time, seconds
                  cost:
                    type: number
                    description: Total tasks cost, USD
                  tasks_count:
                    type: integer
                    description: The number of tasks in the tasks array
                  tasks_error:
                    type: integer
                    description: >-
                      The number of tasks in the tasks array returned with an
                      error
                  tasks:
                    type: array
                    items:
                      type: string
                    description: Array of task objects
                  tasks[].id:
                    type: string
                    description: Task identifier in UUID format
                  tasks[].status_code:
                    type: integer
                    description: Task status code
                  tasks[].status_message:
                    type: string
                    description: Task status message
                  tasks[].cost:
                    type: number
                    description: Cost of the task, USD
                  tasks[].result_count:
                    type: integer
                    description: Number of elements in the result array
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '429':
          description: Rate limit exceeded
        '500':
          description: Internal server error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.