HEB
HEB Product API
Full H-E-B product details as JSON: description, nutrition facts with serving size, calories and a full nutrient breakdown, ingredients, images, similar products, coupons, breadcrumbs, SNAP eligibility and aisle location. 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 heb.com product URL. Preferred over slug + product_id.
Example: https://www.heb.com/product-detail/h-e-b-select-ingredients-salsa-verde-medium-16-oz/2257183
slugstringURL slug from the product page. Use with product_id when product_url is not available.
Example: h-e-b-select-ingredients-salsa-verde-medium-16-oz
product_idstringHEB product identifier. Use with slug.
Example: 2257183
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
product = client.heb.product(
product_url="https://www.heb.com/product-detail/h-e-b-select-ingredients-salsa-verde-medium-16-oz/2257183"
)
p = product["data"]
nf = p["nutrition_facts"]
print(p["name"], p["price"], "cents")
print(f" {nf['calories']} cal per {nf['serving_size']}")
for n in nf["nutrients"]:
print(f" {n['name']}: {n['amount']}")Response