HEB
HEB Search API
Search H-E-B products by keyword and get structured rows as JSON: price in cents, list price, sale flag, unit price, size, UPC, stock status, fulfillment channels, SNAP/EBT eligibility, category and aisle location. Pass store_id for the prices, stock and assortment of one specific HEB store. Also covers HEB Mexico (heb.com.mx) with country "mx": MXN prices, regular price on markdowns, brand, barcode, units in stock and promotions. Costs 2 credits per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringrequiredKeywords to search for, 1-200 characters.
Example: whole milk
store_idstring | integerHEB store number (up to 5 digits), from the store_number field of /api/v1/heb/stores. Prices, in_stock, product_location and the result set come from that store, and data.store echoes the store used. US only. Without it, results are for HEB's default store.
Example: 441
pageintegerdefault:1Results page, 1-based (1-100).
Example: 2
page_sizeintegerdefault:60Results per page, 1-60. US only; Mexico pages are always 20 rows.
Example: 10
countrystringdefault:us"us" for heb.com, "mx" for heb.com.mx (Mexico, prices in MXN cents, with stock and promotions per row). store_id and page_size are not supported with "mx".
Example: mx
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# Prices and stock for one HEB store (store numbers come from client.heb.stores)
results = client.heb.search("whole milk", store_id="441", page_size=10)
print(results["data"]["store"]["name"])
for item in results["data"]["products"]:
print(item["name"], item["price"], item["in_stock"], item["product_location"])Response