Walmart Pagination API
When SerpApi encounters related queries, we add them to our JSON output as the pagination
object. We are able to extract current
, next
, previous
, and other_pages
.
API Examples
JSON structure overview
{
...
"pagination": {
"current": "Integer",
"next": "String",
"previous": "String",
"other_pages": {
"Integer": "String",
}
},
"serpapi_pagination": {
"current": "Integer",
"next": "String",
"previous": "String",
"other_pages": {
"Integer": "String",
}
}
...
}
Organic results pagination overview
{
...
"pagination": {
"current": 1,
"next": "https://www.walmart.com/search?query=coffee&page=2&cat_id=0&grid=true&redirect=false&ps=40",
"other_pages": {
"2": "https://www.walmart.com/search?query=coffee&page=2&cat_id=0&grid=true&redirect=false&ps=40",
"3": "https://www.walmart.com/search?query=coffee&page=3&cat_id=0&grid=true&redirect=false&ps=40",
"4": "https://www.walmart.com/search?query=coffee&page=4&cat_id=0&grid=true&redirect=false&ps=40",
"5": "https://www.walmart.com/search?query=coffee&page=5&cat_id=0&grid=true&redirect=false&ps=40",
"6": "https://www.walmart.com/search?query=coffee&page=6&cat_id=0&grid=true&redirect=false&ps=40",
"25": "https://www.walmart.com/search?query=coffee&page=25&cat_id=0&grid=true&redirect=false&ps=40"
}
},
"serpapi_pagination": {
"current": 1,
"next_link": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&ps=40&query=coffee",
"next": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&ps=40&query=coffee",
"other_pages": {
"2": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&ps=40&query=coffee",
"3": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=3&ps=40&query=coffee",
"4": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=4&ps=40&query=coffee",
"5": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=5&ps=40&query=coffee",
"6": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=6&ps=40&query=coffee",
"25": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=25&ps=40&query=coffee"
}
}
...
}