How does Google Light Pagination Work?
Pagination with Google results is simplified with SerpApi's Pagination API. It is also possible to paginate manually with Google's query parameters for finer control. Both options are covered below.
If you're looking to get started quickly with pagination, SerpApi Pagination is the easiest option. Every result set has a serpapi_pagination
field that provides generated URLs for the next and previous result sets (if they exist).
The next
and previous
URLs respect the existing query parameters that were passed into the first request. By default, SerpAPI pagination will increment the start
parameter by the total number of organic results returned. When there are no previous or next result sets, the respective fields are omitted.
With pagination parameters (recommended)
If pagination parameters are provided in a request, the start
parameter is adjusted according to the number of organic results returned:
{
"serpapi_pagination": {
"current": 3,
"next": "https://serpapi.com/search.json?device=desktop&engine=google_light&gl=us&google_domain=google.com&hl=en&num=25&q=coffee&start=75",
"previous": "https://serpapi.com/search.json?device=desktop&engine=google_light&gl=us&google_domain=google.com&hl=en&num=25&q=coffee&start=25"
}
}
Without pagination parameters
If no pagination parameters are provided in a request, SerpApi will add them in as necessary:
Manual Pagination
Manual pagination with Google Light is possible with two query parameters: start (defines the result offset) and num (defines the maximum number of returned results). For more information on the Google Light pagination parameters, view the Google Light Search API Overview Pagination section.