Google google AI Mode API
Scrape Google AI Mode answers with their sources. Call the Google google AI Mode API for JSON. 2 credits per call. Every call returns the same flat shape.
Request
query is required.
Response
If successful, the response body contains the standard envelope.data contains Google’s answer in answer and the pages it cites in sources.
The following example is a real response, truncated: each list shows one item and long strings are cut.
Optional parameters
Billing
Each successful request consumes 2 credits, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.Pagination
This method is not paginated. A single request returns the complete result.Related methods
- Google google Search: Accepts the same
query. Scrape Google Search results.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.
x >= 1Body
The question to ask, worded the way a person would ask it.
1 - 2000ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted.
^[A-Za-z]{2}$Two-letter language code like en or pt. Any case is accepted.
^[A-Za-z]{2}$