Docs · Reference
Google AI Mode
GET /v1/search/google/ai-mode6 credits / requestcache 60 minThe answer Google AI Mode gives to a question, as text (Markdown), with every source it cites (title, link, site), plus any products and videos it shows. Use it to track whether and how your brand or pages are cited in Google's AI answers. AI Mode is not available in every country or language. Results come from a licensed results feed; failed requests are never charged.
Query parameters
qstring · required | Question or search query to ask Google AI Mode. |
glstring | Country to ask from, e.g. us, gb, in. AI Mode is not available everywhere. Default: "us" |
hlstring | Answer language, e.g. en. Default: "en" |
locationstring | Ask as if from this place, e.g. 'Austin,Texas,United States'. Default: null |
devicestring | Desktop or mobile. Default: "desktop" Allowed: desktop, mobile |
max_ageinteger | Accept a cached answer up to this many seconds old, billed at 50%. |
Response data fields
Example
curl "https://api.gridlode.com/v1/search/google/ai-mode?q=what%20is%20the%20best%20way%20to%20learn%20python" \
-H "Authorization: Bearer $GRIDLODE_KEY"Try it without code on the Google AI Mode API page.