ChangelogImproved

Precise location comes to Google AI Mode, AI Overviews and Search

Answers
Playground showing a Google AI Mode answer on where to get a flu shot near 旺角, Hong Kong, with clinics in the Yau Tsim Mong District

Set payload.location on GOOGLE, AIMODE and GOOGLE_SERP tasks to get the AI Overview, AI Mode answer and search results a user at that place sees.

What changed

  • GOOGLE, AIMODE and GOOGLE_SERP tasks take payload.location and return the AI Overview, AI Mode answer and search results Google shows a user at the place you name: a station, a district or a street address.
  • location in every located result, the same object ChatGPT and Gemini return: the place applied, its coordinates and the kind of place it matched.
  • GEMINI tasks take a location in every country Gemini serves, now including Germany, the United Kingdom and Iran.
  • The Location field in the Playground for Google AI Overviews and Google AI Mode under Answer engines, and for Google Search under Search engines. It suggests a place in the chosen country, such as 강남역 for KR or 旺角 for HK.

How it works

Google answers for the precise location a phone or browser shares with it, so “flu shot near me” lists clinics around that point. For a located task, querying.ai shares the coordinates of your place the same way before the search runs, and Google answers as it does for a user standing there. The task’s country sets the market and the language of the results, and payload.location sets the point inside it.

In testing, AI Mode named the requested place in all 50 located answers, across eight Korean cities and ten places in the United States, Japan, Germany and the United Kingdom. AI Overviews reflected the place in all 18 located answers, and Gemini answered for the requested city in every completed answer from Germany and the United Kingdom.

Write the place the way people there write it, up to 200 characters, inside the task’s country. AI Mode, AI Overviews and search results all record it as location, with query, name, latitude, longitude and precision.

Where it helps

  • See whether your clinic, restaurant or store appears in the AI Overview and the AI Mode answer for searches made around it.
  • Ask the same question from one address on Google AI Mode, AI Overviews, ChatGPT and Gemini, and compare what each one recommends.
  • Track the search results around each branch of a chain, with one query set per address.

Send a request

Send the request with your API key in the Authorization header.

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskType": "AIMODE",
    "payload": {
      "query": "where can I get a flu shot near me",
      "country": "HK",
      "location": "旺角"
    }
  }'

Request fields

taskTypestringRequired
The engine to run, such as CHATGPT or GOOGLE.
payload.querystringRequired
The search query, written the way a user types it into the search box.
payload.countrystring
Two-letter country code of the market to ask from, such as US, KR or JP. Default US.
payload.locationstring
A place inside country, such as a station, district or street address, up to 200 characters. The engine answers as a user standing there. For CHATGPT, GEMINI, GOOGLE, AIMODE and GOOGLE_SERP.
webhook.urlstring
An HTTPS address on your server. The finished task is posted there the moment it completes.
idempotencyKeystring
Your own ID for the request. Each key creates one task per account, so a retried send stays a single task.

Response

A finished task looks like this, trimmed for length.

JSON
{
  "success": true,
  "task": {
    "id": "22ae7f29-df83-425a-b614-606c50c81502",
    "taskType": "AIMODE",
    "status": "COMPLETED",
    "createdAt": "2026-10-03T17:54:37.189Z"
  },
  "credits": { "creditsToCharge": 2, "creditsCharged": 2 },
  "response": {
    "markdown": "In the **Yau Tsim Mong District** and across Hong Kong, you can get your seasonal influenza vaccination (flu shot) through private medical clinics, private group medical practices, or subsidized public channels…\n\nHere are a few options located right in your area:\n\n- **Private Medical Groups & Clinics:**\n  - **Local Private General Practice Clinics:** Many neighborhood private clinics across Yau Ma Tei, Tsim Sha Tsui, and Mong Kok offer walk-in or appointment-based flu jabs.\n…",
    "sources": [
      {
        "position": 1,
        "url": "https://www.chp.gov.hk/en/features/18630.html",
        "label": "CHP Government Vaccination Programme"
      }
    ],
    "location": {
      "name": "旺角, 亞皆老街, 旺角, 油尖旺區, 九龍, 香港, 中国",
      "query": "旺角",
      "latitude": 22.31931,
      "longitude": 114.16981,
      "precision": "railway"
    }
  }
}
task.statusstring
QUEUED, PROCESSING, then COMPLETED with the answer or FAILED with error.
credits.creditsChargedinteger
Credits charged for the finished task. A failed task charges 0.
response.textstring
The answer as plain text.
response.markdownstring
The answer with its headings, lists and tables, in every result.
response.sourcesarray
The pages the answer cites, in the engine’s order, each with position, url and label.
response.locationobject
The place the answer used: query, name, latitude, longitude and precision.

Receive the result

The request returns the task right away with status QUEUED. Poll GET /v1/async/task/{id} until status is COMPLETED or FAILED, or add webhook.url and the finished task arrives at your server with the same task, credits and response. Results stay available for 24 hours after a task finishes.

curl https://api.querying.ai/v1/async/task/$TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

Errors

LOCATION_UNSUPPORTEDHTTP 422
payload.location works on CHATGPT, GEMINI, GOOGLE, AIMODE and GOOGLE_SERP. Other engines return this code when you submit.
LOCATION_NOT_FOUNDHTTP 422
The place in payload.location is unknown inside country. Add the district or city and send again.
LOCATION_LOOKUP_UNAVAILABLEHTTP 503
Place lookup is briefly unavailable. Send the same request again: places found before return at once.

Pricing

A located task costs the same as any other task on its engine, per completed task: 2 credits for AI Mode and AI Overviews, 1 credit for search results and 1 credit for Gemini.

More updates

Stay in the loop

Get new product updates in your inbox.

RSS feed