Guides · 10 min read
Give your LLM agent fresh Google results
Add a Google search tool to an LLM agent: the tool definition, trimming results to fit the context window, citing sources and caching, in Python.
Give your AI agents a way to check what is happening now. Bring fresh Google results, useful sources and search context into their answers.
Search Google for recent information, news and product prices when your agent needs them.
Give your agent titles, snippets and real destination links it can cite or explore next.
Use related searches, People Also Ask and AI Overviews when Google shows them.
Let an LLM agent or RAG pipeline search Google and get compact JSON back: organic results with real links and snippets, People Also Ask, and the AI Overview when Google shows one.
A model only knows what it was trained on. Questions about prices, news or anything recent need a live search, and scraping Google yourself means handling blocks, layouts and parsing.
Agents work best with clean, structured input: titles, snippets and real URLs they can cite or fetch next, not raw HTML.
Expose a search tool to your agent that calls the Google Search endpoint on the live queue and returns organic_results.
Google Search APILinks are resolved to the destination site, so the agent can cite them or fetch the page next.
Google Search APIAdd Google News for recent events, and Google Shopping for current product prices.
Google News APIai_overview, people_also_ask and related_searches give extra context and follow-up queries when Google shows them.
Google Search APIExplore a real example before you build.
Pass organic_results (title, link, snippet) into the model's context. ai_overview is included when Google shows one.
curl -X POST https://api.crawlerdata.com/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"endpoint":"google-search","params":{"query":"best crm software","country":"us","device":"desktop"},"queue":"live"}'const res = await fetch('https://api.crawlerdata.com/v1/jobs', {
method: 'POST',
headers: { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({
"endpoint": "google-search",
"params": {
"query": "best crm software",
"country": "us",
"device": "desktop"
},
"queue": "live"
}),
});
const { job, result } = await res.json();import requests
res = requests.post(
"https://api.crawlerdata.com/v1/jobs",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"endpoint": "google-search",
"params": {
"query": "best crm software",
"country": "us",
"device": "desktop",
},
"queue": "live",
},
)
data = res.json(){
"organic_results": [
{
"position": 1,
"title": "If You Had to Pick the Best CRM for Small Business Today, ...",
"link": "https://www.reddit.com/r/CRMSoftware/comments/1vmy4xb/if_you_had_to_pick_the_best_crm_for_small/",
"snippet": "I've spent the last few days reading reviews and watching videos, and somehow I'm even more undecide…"
},
{
"position": 2,
"title": "Enterprise CRM Software: Salesforce vs HubSpot ...",
"link": "https://www.alphabold.com/crm-software-solutions-for-large-companies/",
"snippet": "Sep 15, 2026 — This blog explores the top three CRM enterprise software solutions for large business…"
}
],
"ai_overview": {
"text": "The best CRM software depends on your business size and goals, with HubSpot CRM ranked as the top ch…",
"sources": [
{
"title": "HubSpot CRM",
"link": "https://www.hubspot.com"
},
{
"title": "Solutions Review",
"link": "https://solutionsreview.com/crm/2026/01/05/best-crm-companies-to-know-about/"
}
]
},
"people_also_ask": [
{
"question": "Will CRM be replaced by AI?"
},
{
"question": "What is the #1 CRM platform?"
}
]
}Long values are shortened in this example.
Excerpt of the result object, with fields and items trimmed. Full response on the Google Search API page.
Buy prepaid credits with no subscription. Failed requests are never charged.
Every Google endpoint costs 1 credit per request, except the Google Shopping sellers endpoint, which costs 1 credit per 10 sellers returned (rounded up, minimum 1). Here is what a typical monthly workload costs with whole credit packs.
5,000 agent searches a day × 30 days
= 150,000 requests a month
1 credit per request, so 150,000 credits a month.
Buy one month at a time
3 × Starter (150,000 credits) for $150.00
$150.00 / month
$0.0010 per search
Buy six months at once (best)
900,000 credits needed: 2 × Standard (1,000,000 credits) for $750.00
$125.00 / month
$0.0008 per search, 100,000 credits left unused after six months
Packs are bought whole, like in the pricing calculator. Credits are valid for 6 months, so buying ahead can move you to a cheaper pack. Failed requests are not charged. Prices exclude sales tax/VAT.
Yes. Your agent can search through your server using an API key. Keep the key on your server, outside the code delivered to a user’s browser.
You can choose just the information your model needs, such as titles, links and snippets, before adding the results to its context.
Use the live option when your agent needs results in the same response. The fast and regular options let you collect results later or have them sent to your system automatically. All three cost the same.
No. Failed requests are not charged.
Guides · 10 min read
Add a Google search tool to an LLM agent: the tool definition, trimming results to fit the context window, citing sources and caching, in Python.
Guides · 7 min read
We compared AI Overviews for 10 searches in 5 countries: India's were shortest, Australia's cited the most local sites, and none matched the US text.
Guides · 6 min read
We checked 40 entity searches: 25 got a knowledge panel, including every person and place. Fields, gaps, AI Overview overlap and code.
Guides · 6 min read
Measured limits: live Google searches ran at about 0.36 per second with 3, 6 or 10 workers. Batch and retry code for the live and fast queues.
Guides · 13 min read
Use a Google SERP API in n8n with the HTTP Request node: daily keyword checks, rank history in Google Sheets and Slack alerts when rankings change.
Guides · 8 min read
How often does Google show an AI Overview? We checked 40 searches: every how-to and product query, none of the local ones. Plus Python to track citations.
Guides · 6 min read
Which domains do Google's AI Overviews cite? Across 40 searches, YouTube appeared in 15 of 25 overviews. Counts by search type, plus code to tally yours.
Organic positions and SERP features, desktop or mobile, per keyword and country.
See how it works
Google News mentions of your brand, competitors and topics on a schedule.
See how it works
Organic results with real destination links, ads, AI Overview, People Also Ask, local pack, top stories, knowledge panel and related searches. Desktop or mobile.
from $0.30 / 1,000 requests
News articles with source, date, snippet and link.
from $0.30 / 1,000 requests
Search Google Shopping and get every product with price, merchant, rating and a product ID you can use to fetch all sellers.
from $0.30 / 1,000 requests
Get 50 free credits when you sign up with your work email and verify it. Failed requests are never charged.
We use Google Analytics and Google Ads cookies to measure how the site is used and which ads lead to sign-ups. No personalized ads or remarketing. See our privacy policy.