Search
Run a Google search and receive parsed results as JSON. Authenticate with HTTP Basic Auth using a SERP API sub-user’s username and password (create and manage sub-users in the dashboard). Every answer has a JSON body. Errors use the HTTP status code (4xx/5xx) and an {"Error": {"Status", "Message", "Code"}} body whose Code equals the status.
Authorizations
HTTP Basic Auth using a SERP API sub-user's username and password.
Query Parameters
The search query. URL-encode it.
Two-letter country code for the search location (Google gl), e.g. us, de, fr.
Two-letter interface language code (Google hl), e.g. en, es.
Result offset for pagination. 0 is the first page, 10 the second, and so on.
x >= 0Set to 1 to also return the raw HTML of every Google page the answer was read from, in pages. 0 omits it.
0, 1 Response
An answer: parsed search results, organic results under results[0].Organic. A search Google finds nothing for is also an answer (HTTP 200) with an empty results[0].Organic, and is not billed.
The query that was executed.
The Google search URL the request resolved to.
Only with rawhtml=1: every Google page the answer was read from, in the order they were read (the first is the results page at url). When the answer would exceed the size limit, the last pages keep their kind and url with html: null and truncated: true.
Single-element array holding the parsed result groups.