Pagination
Light has two pagination fields. They are not the same.
In the dashboard: Current page, Fetch page N, pages 1 to 20. That maps closest to API page. API pages asks for several pages in one request (up to 10).
page (one page per call)
page: integer, default 1. Result page to fetch, 1 to 20.
OpenAPI: every page is its own search and is billed as one. Ask for a query’s pages in order: the next page is served from the same Google session as the last.
{
"query": "best coffee shops in berlin",
"page": 2
}Dashboard “Fetch page 2” is this idea: request that page number.
pages (several pages in one call)
pages: integer, default 1. Pages 1 to pages (at most 10) in one request.
OpenAPI: fetched one after another through one Google session and exit IP, each by the previous page’s own next-page link, and returned together. Billed per page returned.
{
"query": "best coffee shops in berlin",
"pages": 3
}Do not treat page and pages as the same control. Use one mode for your workflow.
Response fields
| Field | Meaning |
|---|---|
pages_requested | Pages asked for (pages; 1 without it) |
pages_returned | Pages returned, and billed |
pages_stopped | Why fewer than asked: no_results, blocked, upstream_unreachable, timeout, warming_up, clock, or error. Null when all returned |
pages[].page | Page number inside the array |
Example
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": "best coffee shops in berlin",
"pages": 2,
"format": "json"
}'Next
Was this page helpful?