Google
Google search API
Search Google and get results, the AI Overview, the knowledge panel and related questions. Call the Google search API for JSON. 1 credit per call.
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, incrementpage. 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.
Related methods
- Google AI Mode: Accepts a question from
peopleAlsoAskasquery. Sends a question to Google AI Mode a question and returns its answer with the sources it cites. - Google Search: Accepts an entry from
relatedSearchesasquery. Searches Google and returns results, the AI Overview, the knowledge panel and related questions.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Required string length:
1 - 400ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted.
Pattern:
^[A-Za-z]{2}$Two-letter language code like en or pt. Any case is accepted.
Pattern:
^[A-Za-z]{2}$Maximum array length:
10Maximum array length:
10Google's Tools time filter. Leave out for any time.
Available options:
pastHour, past24Hours, pastWeek, pastMonth, pastYear Google's Verbatim: search the exact words, with no spelling fixes.
Available options:
pdf, doc, docx, xls, xlsx, ppt, pptx, txt, rtf, csv, kml Hide explicit results.
Page number, starting at 1.
Required range:
1 <= x <= 100