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 the results page in the html field. 0 omits it.

Available options:
0,
1

Response

Parsed search results. Organic results are under results[0].Organic.

query
string

The query that was executed.

url
string

The Google search URL the request resolved to.

html
string

Raw HTML of the results page. Populated only when rawhtml=1.

results
object[]

Single-element array holding the parsed result groups.