H-E-B product
One H-E-B product at one store: the search fields plus ingredients, nutrition labels, warnings, preparation, lifestyles, coupons, availability, images, breadcrumbs and similar products, plus raw.
Every response includes credits_used: the credits this call cost.
Part of the H-E-B API: 4 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
product_idrequired | string | The number at the end of a product link, e.g. 325141, or the link. Example: 325141 |
store_id | string | H-E-B store number the prices and stock are for (default 92; see /heb/v1/stores). Example: 92 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/heb/v1/product?product_id=325141" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/heb/v1/product",
params={"product_id": "325141"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/heb/v1/product");
url.searchParams.set("product_id", "325141");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"product_id": "325141","sku": "4122097159","name": "Hill Country Fare Grade A Extra Large White Eggs","brand": "Hill Country Fare","own_brand": true,"url": "https://www.heb.com/product-detail/hill-country-fare-grade-a-extra-large-white-eggs/325141","image": "https://images.heb.com/is/image/HEBGrocery/prd-small/000325141.jpg","price": 2.76,"prices": {"online": {"price": 2.76,"list_price": 2.76,"unit_price": 0.15,"unit": "ct","on_sale": false,"price_cut": false,"priced_by": "EACH"},"curbside": {"price": 2.9,"list_price": 2.9,"unit_price": 0.16,"unit": "ct","on_sale": false,"price_cut": false,"priced_by": "EACH"}},"size": "18 ct","store_id": 92,"stock": "IN_STOCK","aisle": "In Dairy on the Back Wall","category": null,"on_ad": false,"coupon": false,"new": false,"snap": true,"priced_by_weight": null,"description": "When you need a dozen and a half, pick up some Hill Country Fare Grade A Extra Large White Eggs. Handy to always have on hand in your fridge…","upc": "041220971596","ingredients": "Eggs.","nutrition": [{"servingsPerContainer": "18","servingSize": "1 egg (56g)","calories": "80","caloriesFromFat": null,"nutrients": [{"title": "Total Fat","fontModifier": "BOLD","unit": "5g","percentage": "6%","subItems": [{"…": "6 fields"},{"…": "6 fields"}],"__typename": "DailyValueItemType"},{"title": "Cholesterol","fontModifier": "BOLD","unit": "210mg","percentage": "70%","subItems": null,"__typename": "DailyValueItemType"},"… 3 more"],"vitaminsAndMinerals": [{"title": "Vitamin D","fontModifier": "PLAIN","unit": "1mcg","percentage": "6%","subItems": null,"__typename": "DailyValueItemType"},{"title": "Calcium","fontModifier": "PLAIN","unit": "30mg","percentage": "2%","subItems": null,"__typename": "DailyValueItemType"},"… 11 more"],"labelModifier": null,"__typename": "NutritionLabelType"}],"warnings": "Contains egg.","preparation": "Keep refrigerated at or below 45°F. Safe Handling Instructions: To prevent illness from bacteria, keep eggs refrigerated, cook eggs until yo…","lifestyles": [{"formattedName": "Low carb lifestyle","description": "This product has a limited amount of net carbs, measured in grams. Single items have up to 5g of net carbs per serving. Fruits and vegetable…","imageUrl": null,"__typename": "Lifestyle"},{"formattedName": "SNAP EBT eligible","description": "SNAP EBT eligible","imageUrl": "https://images.heb.com/is/image/HEBGrocery/snp-large/snipe-snap-ebt.jpg","__typename": "Lifestyle"},"… 1 more"],"coupons": [],"availability": {"schedule": null,"unavailabilityReasons": [],"__typename": "Availability"},"images": ["https://images.heb.com/is/image/HEBGrocery/000325141-1","https://images.heb.com/is/image/HEBGrocery/prd-small/000325141.jpg","… 1 more"],"breadcrumbs": [{"urlPath": "/","categoryId": null,"title": "H-E-B","__typename": "CategoryBreadCrumb"},{"urlPath": "/browse/shop","categoryId": "2864","title": "Shop","__typename": "CategoryBreadCrumb"},"… 2 more"],"similar": [{"product_id": "325140","name": "Hill Country Fare Grade A Large White Eggs","url": "https://www.heb.com/product-detail/hill-country-fare-grade-a-large-white-eggs/325140"},{"product_id": "313762","name": "Hill Country Fare Grade A Large White Eggs","url": "https://www.heb.com/product-detail/hill-country-fare-grade-a-large-white-eggs/313762"},"… 4 more"],"cached": false,"credits_used": 1}