Walmart SERP
Extract Walmart search results — array of products with prices, ratings, and shipping info.
API usage
Add &scraper=walmart-serp to a Crawling API request. URL-encode the target URL in the url parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.walmart.com/search?q=samsung+galaxy' \
--data-urlencode 'scraper=walmart-serp' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.walmart.com/search?q=samsung+galaxy',
{'scraper': 'walmart-serp'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.walmart.com/search?q=samsung+galaxy',
{ scraper: 'walmart-serp' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.walmart.com/search?q=samsung+galaxy', scraper: 'walmart-serp')
data = JSON.parse(res.body)Example input URL
The URL passed in the url parameter (URL-decoded for readability):
https://www.walmart.com/search?q=samsung+galaxyResponse shape
JSON response body. Field types may be null when the source page omits the value.
Search query.
Total products.
Product summaries.
Product ID.
Title.
Current price.
Rating.
Reviews.
Thumbnail.
Sponsored result flag.
Sample response
{
"query": "samsung galaxy",
"products": [
{
"product_id": "5101854842",
"title": "Samsung Galaxy S24 128GB",
"price": "$799.99",
"rating": 4.6,
"reviews_count": 1240,
"sponsored": false
}
]
}
