curl --request POST \
--url https://api.scrapeunblocker.com/groceries/bodegaaurrera-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/groceries/bodegaaurrera-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/groceries/bodegaaurrera-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape Bodega Aurrera (Mexico) product search
Searches Bodega Aurrera (bodegaaurrera.com.mx, Walmart de Mexico) for query and returns products, each with position, productId, name, brand, url, price (MXN), wasPrice and savings (only on a promotion), unitPrice, priceRange, rating, reviewCount, availability / availabilityText / inStock, seller / sellerType, salesUnit, department, category (path), badges, fulfillment (pickup / delivery labels), sponsored and image. Also totalResults, storeId (the store the prices and availability are for: the one the storefront assigns a new visitor - a store or postal code cannot be chosen) and nextPage. Sort with sort (relevance, price_low, price_high), start at page and collect up to max_results across pages (about 40 per page, each page billed as one request, see pagesFetched). url takes a Bodega Aurrera search link instead of query. A results page usually takes 1-3 s; a page that has to be rendered in a browser takes 20-60 s.
curl --request POST \
--url https://api.scrapeunblocker.com/groceries/bodegaaurrera-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/groceries/bodegaaurrera-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/groceries/bodegaaurrera-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
What to search, e.g. 'leche', 'arroz', 'detergente' or 'pañales'.
Order: relevance, price_low, price_high.
1-based results page to start from (1-25).
Products to collect across pages (1-220); about 44 per page, and each page read is billed as one request.
Instead of query: a Bodega Aurrera search link, e.g. https://www.bodegaaurrera.com.mx/search?q=leche (its sort and page are used).
Response
JSON with a products array plus paging totals.

