Google Web Search — API reference
/google/searchGoogle Web Search
Search Google web results with q, language hl, country gl and a supported device. Result sections depend on the query and upstream response.
Search Google web results with q, language hl, country gl and a supported device. Result sections depend on the query and upstream response.
qstringrequired
Search query string.
hlstringoptional
Language code. Defaults to en.
glstringoptional
Country code. Defaults to us.
pagenumberoptional
1-based page number. Defaults to 1.
device"default" | "pc" | "mobile"optional
Google Search only. Use default for automatic routing, pc for desktop sessions, or mobile for mobile sessions.
{
"device": "mobile",
"gl": "us",
"hl": "en",
"q": "coffee shops"
}querystringrequired
Normalized query from the request.
pagenumberrequired
Current 1-based page number.
organicOrganicResult[]When organic results are parsed.
Organic search results.
featured_snippetFeaturedSnippetWhen Google shows a featured snippet.
Featured snippet answer card, returned separately from organic results.
top_storiesTopStory[]When the SERP contains top stories.
Top stories module.
people_also_askPAA[]When People Also Ask is present.
Question, answer, and source links.
knowledge_graphKnowledgeGraphWhen a knowledge panel is parsed.
Entity panel data.
related_searchesstring[]When related search suggestions are found.
Related search queries.
ranknumberrequired
1-based ranking position in this response.
positionnumberAlias for rank when available.
Normalized rank alias for clients that expect position.
titlestringrequired
Result title.
linkstringrequired
Primary link returned by the parser.
urlstringPresent for normalized result links.
Canonical target URL, usually the same value as link.
source_urlstringOnly when Google redirect/source URL is observed.
Original Google URL kept for debugging and provenance.
display_urlstringWhen Google display text or a domain can be derived.
Display URL or source domain.
display_linkstringWhen Google display text is present.
Raw Google display link text.
snippetstringWhen a snippet is parsed.
Organic result summary.
datestringWhen Google includes a date in the snippet.
Raw date text extracted from snippet.
published_atstringAlias for parsed date when available.
Normalized date alias.
iconstringWhen a favicon/image is exposed.
Result icon URL.
sitelinks{ title, link, url, source_url?, display_url? }[]When sitelinks are present.
Nested sitelinks for the organic result.
curl -X POST 'https://api.serpbase.dev/google/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"device":"mobile","gl":"us","hl":"en","q":"coffee shops"}'Existing Google request example
curl -X POST https://api.serpbase.dev/google/search \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key" \
-d '{
"q": "python asyncio",
"hl": "en",
"gl": "us",
"page": 1,
"device": "default"
}'Search grounding, SEO checks, answer extraction.
Search can also return ai_overview, weather, finance, flight, and result_stats when those modules appear in the SERP.