Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

HTTP Basic Auth using a SERP API sub-user's username and password.

Query Parameters

q
string
required

The search query. URL-encode it.

gl
string
default:us

Two-letter country code for the search location (Google gl), e.g. us, de, fr.

hl
string
default:en

Two-letter interface language code (Google hl), e.g. en, es.

start
integer
default:0

Result offset for pagination. 0 is the first page, 10 the second, and so on.

Required range: x >= 0
rawhtml
enum<integer>
default:0

Set to 1 to also return the raw HTML of every Google page the answer was read from, in pages. 0 omits it.

Available options:
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.

query
string

The query that was executed.

url
string

The Google search URL the request resolved to.

pages
object[]

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.

results
object[]

Single-element array holding the parsed result groups.