Skip to main content
POST
Setting Google Organic SERP Tasks
Queues the ranked results for a keyword on Google, returning a task id in tasks[0].id. The charge lands here; fetching is free, including re-fetching. 💰 Measured at 0.002upstreamagainstthe0.002 upstream against the 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

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

location_name
string

Full name of search engine location

location_code
integer

Search engine location code

location_coordinate
string

GPS coordinates of a location

language_name
string

Full name of search engine language

language_code
string

Search engine language code

depth
integer

Parsing depth, default 100, max 700

max_crawl_pages
integer

Page crawl limit, max 100

device
string

Device type: desktop or mobile

os
string

Device operating system

group_organic_results
boolean

Display related results as grouped organic results

calculate_rectangles
boolean

Calculate pixel rankings for SERP elements in advanced results

postback_url
string

Postback URL for completed task results

pingback_url
string

Pingback URL for task completion notification

postback_data
string

Postback payload type

tag
string

User-defined task identifier

Response

Successful response

version
string

API version

status_code
integer

General status code

status_message
string

General informational message

time
string

Execution time

cost
number

Total tasks cost in USD

tasks_count
integer

Number of tasks in the request

tasks_error
integer

Number of tasks returned with an error

tasks
string

Array of task objects

tasks[].id
string

Task identifier in UUID format

tasks[].status_code
integer

Task status code

tasks[].status_message
string

Task status message

tasks[].cost
number

Task cost

tasks[].result_count
integer

Number of result elements