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",
"other_pages": {
"2": "https://www.walmart.com/search?query=coffee&page=2&cat_id=0&grid=true&redirect=false",
"3": "https://www.walmart.com/search?query=coffee&page=3&cat_id=0&grid=true&redirect=false",
"4": "https://www.walmart.com/search?query=coffee&page=4&cat_id=0&grid=true&redirect=false",
"5": "https://www.walmart.com/search?query=coffee&page=5&cat_id=0&grid=true&redirect=false",
"6": "https://www.walmart.com/search?query=coffee&page=6&cat_id=0&grid=true&redirect=false",
"25": "https://www.walmart.com/search?query=coffee&page=25&cat_id=0&grid=true&redirect=false"
}
},
"serpapi_pagination": {
"current": 1,
"next_link": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&query=coffee",
"next": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&query=coffee",
"other_pages": {
"2": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&query=coffee",
"3": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=3&query=coffee",
"4": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=4&query=coffee",
"5": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=5&query=coffee",
"6": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=6&query=coffee",
"25": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=25&query=coffee"
}
}
...
}