Pagination

Discover the number of pages available on a Google search.

Each API call returns Google results scraped from one page. In order for you to have a better look over the length of the search result, the response body will include a special key, named pagination which holds information about the page you scraped and its 'neighbours':

ElementTypeDescription

other_pages

Object

Lists the rest of the pages with the key set as the page number and the value as the page link

next

String

Link to the next page

current

Integer

The value of the current page

Pagination Results Request Example

Request Example That Returns Pagination Elements

GET https://serpapi.webscrapingapi.com/v1?engine=google&api_key=<YOUR_API_KEY>&q=ozark

This is a basic GET request that returns the pagination results found on the Google page.

Query Parameters

NameTypeDescription

q*

String

ozark

api_key*

String

<YOUR_API_KEY>

{
    ...
	"pagination": {
		"other_pages": {
			"2": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=10&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARA3",
			"3": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=20&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARA5",
			"4": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=30&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARA7",
			"5": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=40&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARA9",
			"6": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=50&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARA_",
			"7": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=60&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARBB",
			"8": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=70&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARBD",
			"9": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=80&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARBF",
			"10": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=90&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8tMDegQIARBH"
		},
		"next": "https://www.google.com/search?q=ozark&ei=VHIKYdXkDo24tQbkiqqIDA&start=10&sa=N&ved=2ahUKEwjV3pe4mpfyAhUNXM0KHWSFCsEQ8NMDegQIARBJ",
		"current": 1
	},
    ...
}

Last updated