Google AI Mode
google_search_aiQuery Google AI Mode via API to retrieve AI-generated answers, references, and shopping results as structured JSON for research, fact-checking, and product comparisons.
Instructions
Google AI Mode. Query Google AI Mode via API. JSON with text_blocks, references, and shopping_results. Credit cost: 3 credits per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cr | No | Limit results to one or more countries. Use country{XX} with | as delimiter (e.g. countryFR|countryDE). | |
| gl | No | Country to use for the Google search. Two-letter country code (e.g. us for the United States, uk for United Kingdom, or fr for France). | |
| hl | No | Language to use for the Google search. Two or three-letter language code (e.g. en, es, fr), optionally followed by a region code (e.g. en-gb, es-419). | |
| lr | No | Limit results to one or more languages. Use lang_{xx} with | as delimiter (e.g. lang_fr|lang_de). | |
| uule | No | Google encoded location parameter. Use for precise geo targeting. Note: uule and location cannot be used together. | |
| query | Yes | The question or search query you want Google AI Mode to answer (supports advanced operators like site:, inurl:, intitle:). | |
| fields | No | Comma-separated list of fields to keep in the response, with dot notation for nested fields (e.g. name,location.city). Does not change the credit cost. | |
| location | No | Human-readable location to originate the search from (e.g. New York, NY, Paris, France). If several locations match, the most popular one is used. Note: location and uule cannot be used together. | |
| google_domain | No | Google domain to use for the search. Defaults to google.com. Default: "google.com". |