Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesGemini in Practice: Real Google ExamplesSearch Grounding: Real-Time Data in Responses
An order receipt built by a barista bot calling add_to_orderA workflow map: a Telegram message branches into command, voice and text and reaches the agentA form request lands in a spreadsheet row labelled “Complaint”
Course

Gemini in Practice: Real Google Examples

Module 1 · Agents and Tools
01ReAct Agent: Reasoning + Acting02Search Grounding: Real-Time Data in Responses03Barista Bot: Agent with Automatic Function Calling
Module 2 · Structured Data Extraction
04Entity Extraction from Text05Structured Output from PDFs: Invoices and Forms
Module 3 · Embeddings: Search and Anomaly Detection
06Anomaly Detection with Embeddings07Search Re-Ranking with Embeddings
Module 4 · Data Analysis and Integrations
08GitHub Issue Analyzer: Repository Analysis with Gemini
Gemini in Practice: Real Google Examples · Lesson 2

Search Grounding: Real-Time Data in Responses

Connect the google_search tool to Gemini 4 Hydrogen through the Interactions API, stream a company report and extract source links. Search pricing and limits, URL context, Google Maps and the Deep Research agent.

30 min readUpdated Dec 2, 20263 questions in quizReady prompt included

Grounding with Google Search

The google_search tool connects Gemini to live Google Search. The model decides whether a search would help, writes one or more queries, reads the results and answers with links to its sources. The tool is supported on Gemini 4 models (Argon, Hydrogen and others) and on Gemini 3.x: 3.8 Flash, 3.6 Flash, 3.5 Flash-Lite, 3.1 Pro preview.

Google recommends the Interactions API (client.interactions.create) for new projects. The older generate_content is now called legacy: it is still supported, but the examples below use the new API.

from google import genai

client = genai.Client()  # reads the key from GEMINI_API_KEY
MODEL_ID = "gemini-4-hydrogen"

gemini-4-hydrogen launched in November 2026 and suits everyday agent tasks. gemini-3.8-flash works too. gemini-2.5-flash is deprecated: since December 1, 2026, requests to it are automatically routed to gemini-3.5-flash-lite.

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
Grounding with Google SearchAnalyst Agent SetupStreaming the ReportSources and CitationsPricing and LimitsMore Tools for ReportsPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free