HEB
HEB Product API
Full H-E-B product details as JSON: price in cents, sale flag, unit price, stock, fulfillment channels, SNAP/EBT eligibility, description, ingredients, nutrition, images, similar products, digital coupons and aisle location. Pass store_id for the price, stock and aisle location at one specific HEB store. Also covers HEB Mexico (heb.com.mx) with country "mx": MXN price, brand, barcode, units in stock, promotions, images, ingredients and nutrition. 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/jsonproduct_urlstringFull or relative heb.com or heb.com.mx product URL, e.g. the url from search results.
Example: https://www.heb.com/product-detail/h-e-b-whole-milk-1-gal/314130
product_idstringHEB product id (the numeric id at the end of a product URL). Send with slug, or with store_id alone.
Example: 314130
slugstringProduct slug (the readable part of the product URL). Required with product_id unless store_id is set.
Example: h-e-b-whole-milk-1-gal
store_idstring | integerHEB store number (up to 5 digits), from the store_number field of /api/v1/heb/stores. price, in_stock and product_location come from that store, and data.store echoes the store used. US only. Without it, the product is priced at HEB's default store.
Example: 441
countrystringdefault:us"us" for heb.com, "mx" for heb.com.mx (Mexico, MXN cents, with stock and promotions). store_id is not supported with "mx".
Example: mx
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# With store_id, product_id alone is enough (no slug needed)
product = client.heb.product(product_id="314130", store_id="441")
p = product["data"]
print(p["name"], p["price"], "cents at", p["store"]["name"])
print("in stock:", p["in_stock"], "-", p["product_location"])
for c in p["coupons"]:
print("coupon:", c["description"], "until", c["expiration"])Response