curl --request POST \
--url https://api.scrapeunblocker.com/groceries/publix-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/groceries/publix-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/publix-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape Publix grocery search
Searches publix.com (US) for query at one store and returns products: productId, itemCode, title, brand, size, url, image, price, priceText, unit (e.g. ‘lb’ for items sold by weight), wasPrice, currency, onSale, promotion (type such as BOGO, message, conditions, validThrough, savings), hasCoupon, soldByWeight, aisle, category, categoryPath and storeId, plus store (the store the prices are for), totalResults, totalPages and nextPage. Publix publishes a price online only while an item is on promotion, so price is null for the rest. A keyword Publix sends to a category returns that category, named in redirectedTo; one it sends to a page that lists no products (the weekly ad, cake ordering, store locations) answers with no products and sentElsewhere true.
curl --request POST \
--url https://api.scrapeunblocker.com/groceries/publix-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/groceries/publix-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/publix-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 for, e.g. 'milk', 'cheerios' or 'chicken breast'.
Publix store number whose prices and promotions to return, e.g. '1614'. Give this or zip; with neither, a store in Lakeland, FL is used. The store used is named in store.
US ZIP code; the nearest Publix store is used, e.g. '33801'.
1-based results page to start from (48 products per page).
Products to collect from page on, 1-480. Each page fetched is billed one unit.
Response
JSON with a products array. A search with no matches answers 200 with an empty products list.

