Query and URL
Every Light request needs a search target. You either send query, or you send a full Google results url.
In the dashboard you type into the search box (query). The API also allows a full Google SERP url instead.
query
GoogleSearchLightRequest.query: string, default "".
OpenAPI: search query. Required unless url is given (the URL carries the query in q).
{
"query": "best coffee shops in berlin"
}url
url: string or null.
OpenAPI: a complete Google results URL to fetch exactly as given, in place of query: https://www.google.com/search?q=... with Google’s own parameters it carries (for example hl, gl).
{
"url": "https://www.google.com/search?q=coffee+grinder&hl=en&gl=us&start=10"
}OpenAPI: not with query, locale, page, safe, time_range, or uule (the URL carries those itself). device, format, and ai_overview apply as usual. Only www.google.com full results pages (no tbm, no udm). Nothing is added, removed, or reordered on that URL.
Minimal examples
Query only:
curl -X POST "https://scraper.geonode.io/v1/google/search/light" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "coffee grinder"
}'URL only:
curl -X POST "https://scraper.geonode.io/v1/google/search/light" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.google.com/search?q=coffee+grinder&hl=en&gl=us"
}'Next
Was this page helpful?