Skip to main content
POST
Search Google and get results, the AI Overview, the knowledge panel and related questions
Searches Google and returns results, the AI Overview, the knowledge panel and related questions.

Request

query is required.
This endpoint can be called without an API key, subject to per-address limits. Pagination requires a key.

Response

If successful, the response body contains the standard envelope. data contains the web results in results, Google’s AI Overview when it shows one, related questions and related searches. The following example is a real response, truncated: each list shows one item and long strings are cut.
For every field, see the response schema on this page.

Optional parameters

Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

Results are paginated. To retrieve the next page, increment page. An empty data.results indicates the last page. The maximum value of page is 100. Requests without an API key return the first page only.
  • Google AI Mode: Accepts a question from peopleAlsoAsk as query. Sends a question to Google AI Mode a question and returns its answer with the sources it cites.
  • Google Search: Accepts an entry from relatedSearches as query. Searches Google and returns results, the AI Overview, the knowledge panel and related questions.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required
Required string length: 1 - 400
country
string

ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted.

Pattern: ^[A-Za-z]{2}$
language
string

Two-letter language code like en or pt. Any case is accepted.

Pattern: ^[A-Za-z]{2}$
includeDomains
string[]
Maximum array length: 10
excludeDomains
string[]
Maximum array length: 10
time
enum<string>

Google's Tools time filter. Leave out for any time.

Available options:
pastHour,
past24Hours,
pastWeek,
pastMonth,
pastYear
verbatim
boolean
default:false

Google's Verbatim: search the exact words, with no spelling fixes.

fileType
enum<string>
Available options:
pdf,
doc,
docx,
xls,
xlsx,
ppt,
pptx,
txt,
rtf,
csv,
kml

Hide explicit results.

page
integer
default:1

Page number, starting at 1.

Required range: 1 <= x <= 100

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required