Article
How Gemini Grounding with Google Search Cites Pages
Short answer
Grounding with Google Search is a Gemini API tool that connects the model to real-time web content so it can give more accurate answers and cite verifiable sources (Google AI for Developers). When the model decides a search would help, it writes its own Google queries, runs them, and returns an answer with inline citations that link specific parts of the text to source URLs (Google AI for Developers). Our read: the pages it cites come out of Google Search, so plain old search visibility is your ticket in.
What grounding actually is
Google’s developer docs describe grounding as connecting Gemini to real-time web content, and they say it works with all available languages (Google AI for Developers). So this isn’t an English-only or one-country feature, at least on paper.
The doc lists three things it helps developers build:
- Answers with fewer hallucinations, because responses are based on real-world information (Google AI for Developers).
- Answers about recent events and topics (Google AI for Developers).
- Citations that show users the sources behind the model’s claims (Google AI for Developers).
Our read: you, a site owner, will probably never write this code. But developers building apps on the Gemini API can switch it on, and every one of those apps then pulls answers (and citations) from Google results.
How it works, step by step
According to the doc, the model handles the whole workflow of searching, processing and citing automatically (Google AI for Developers). Here’s the documented flow:
- User Prompt: the app sends the user’s prompt to the Gemini API with the
google_searchtool enabled (Google AI for Developers). - Prompt Analysis: the model looks at the prompt and decides whether a Google Search can improve the answer (Google AI for Developers).
- Google Search: if needed, the model automatically generates one or more search queries and runs them (Google AI for Developers).
- Search Results Processing: the model processes the results, synthesizes the information and writes a response (Google AI for Developers).
- Grounded Response: the API returns the answer with inline
annotationsholding the citations, plusgoogle_search_callandgoogle_search_resultsteps showing the queries and search suggestions (Google AI for Developers).
Watch out
Watch out: step 2 is the model’s call. A search only runs if the model decides it’s needed, so some prompts get answered without touching the web at all (Google AI for Developers).
Step 3 is worth a second look. In the doc’s own example, the user asks “Who won the euro 2024?” (Google AI for Developers). The model’s search query is “UEFA Euro 2024 winner” (Google AI for Developers). Our read: the model rephrases. It doesn’t paste the user’s words into Google, so your page needs to hold up against the tidy, keyword-ish version of a question as well as the chatty one.
The request
Here’s the REST example from the doc, unchanged (Google AI for Developers):
curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.8-flash",
"input": "Who won the euro 2024?",
"tools": [{"type": "google_search"}]
}'Note
Note: older models use a google_search_retrieval tool, and the doc says all current models should use the google_search tool instead (Google AI for Developers).
What comes back: the response fields
If you’ve seen grounding tutorials with different field names, go by the current doc. Here’s what the version we checked describes:
| Field | What it contains |
|---|---|
google_search_call | The search queries the model ran (Google AI for Developers) |
google_search_result | search_suggestions, an HTML snippet for rendering search suggestions in your UI (Google AI for Developers) |
text with annotations | The model’s synthesized answer with inline citations (Google AI for Developers) |
url_citation | An annotation linking a text segment to a source URL (Google AI for Developers) |
start_index / end_index | Inside each citation, they mark which part of the text it cites (Google AI for Developers) |
The important bit for site owners is that last row. Citations attach to stretches of text, so each part of the answer can point at a different URL (Google AI for Developers).
Our read: if a single sentence of the answer gets pinned to a single page, then a page that states its key fact in one clean, standalone sentence gives the model something easy to pin. Nobody outside Google has published how the model picks which result supports which sentence, and the doc doesn’t say. So treat this as a sensible bet, not a rule.
Display requirements
The doc says the annotations give developers “complete control over how you display sources in your user interface” (Google AI for Developers). For the search suggestions snippet, it says “Full usage requirements are detailed in the Terms of Service.” (Google AI for Developers) That Terms of Service page wasn’t in what we checked, so we can’t tell you what it requires. (If you’re shipping an app, read it. Lawyers love a skipped footnote.)
Pricing and limits
On Gemini 3 and newer models, your project is billed for each search query the model decides to run (Google AI for Developers). On the Paid Tier you get 5,000 free search requests per month, shared across all Gemini 3 and newer models (Google AI for Developers) (Google AI for Developers). The pricing page lists grounding with Google Search as not available on the Free Tier for gemini-3.8-flash (Google AI for Developers). After that it costs $14 per 1,000 search requests (Google AI for Developers).
If the model runs two queries to answer one prompt, that counts as two billable uses (Google AI for Developers). Empty web search queries are ignored when counting (Google AI for Developers). On Gemini 2.5 or older models, billing is per prompt instead (Google AI for Developers).
There’s also a default limit of 1,500 requests per day (RPD) per project on Gemini 3 and newer models in the Paid Tier (Google AI for Developers). Need more? The doc says to submit a request in Google AI Studio (Google AI for Developers).
Our read for site owners
Everything below is our interpretation, not something the doc states.
| Google rankings feed this | The model runs Google searches and builds its answer from the results. If your page doesn’t show up for the queries the model writes, it can’t be cited through this route. Ordinary SEO isn’t optional here. It’s the qualifying round. |
|---|---|
| Match the rewritten query | The euro example shows a conversational question turning into a short, factual query. Pages that clearly answer the short version have a better shot at being in the results the model reads. |
| Write liftable sentences | Citations attach to text spans. Put your main answer in a sentence that makes sense on its own, near the top. |
| There’s a side door | Grounding with Google Search can be combined with the URL context tool, so developers can ground answers in public web data and specific URLs they provide (Google AI for Developers). A page can get into an answer by being handed over directly, not just by ranking. |
This is the kind of thing we plan to look at more closely. You can read about how Be In GEO works on the about page.
Key takeaway
What to do next
- Search Google for the plain questions your customers ask and check whether your pages show up.
- Write the short, keyword-style version of each question and check that too.
- Put a one-sentence direct answer near the top of each key page.
- If you build on the Gemini API, read the Terms of Service on search suggestions before launch.
- If you build on the Gemini API, budget for per-query billing on Gemini 3 and newer.
Get the worksheet
Want to see which sites AI answers cite for the questions your customers ask? Grab the free worksheet at beingeo.com/checklist. You’ll also get short emails with each new teardown.