H-E-B product search

GET https://api.api.sh/heb/v1/search
1 credit / call e-commerce try it in the playground →

Search H-E-B products for one store with the shop's filters and sorts. Each product: id, SKU, name, brand, own-brand flag, link, image, price and the online and curbside prices, size, stock, aisle, category, ad and coupon flags, new-item, SNAP and priced-by-weight flags, description, plus raw. Also returns the filter options with counts and the matching categories. 60 products a page; pass next_page back as page; null on the last page.

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

nametypedescription
qrequired string Keywords. Example: eggs
filters string Filters as id:value pairs from a search's filters, comma-separated, e.g. brand:H-E-B or savings:coupon.
sort relevance | price_asc | price_desc | name_asc | name_desc Order.
store_id string H-E-B store number the prices and stock are for (default 92; see /heb/v1/stores). Example: 92
page integer Page number. Example: 2

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/heb/v1/search?q=eggs" \
  -H "x-api-key: $APISH_KEY"

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)

{"query": "eggs","store_id": 92,"sort": "relevance","applied_filters": [],"total": 79,"items": [{"product_id": "325141","sku": "4122097159","name": "Hill Country Fare Grade A Extra Large White Eggs, 18 ct","brand": "Hill Country Fare","own_brand": true,"url": "https://www.heb.com/product-detail/hill-country-fare-grade-a-extra-large-white-eggs-18-ct/325141","image": "https://images.heb.com/is/image/HEBGrocery/prd-large/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": "Dairy & eggs/Eggs & egg substitutes","on_ad": false,"coupon": false,"new": false,"snap": true,"priced_by_weight": false,"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…"},{"product_id": "313762","sku": "4122091168","name": "Hill Country Fare Grade A Large White Eggs, 12 ct","brand": "Hill Country Fare","own_brand": true,"url": "https://www.heb.com/product-detail/hill-country-fare-grade-a-large-white-eggs-12-ct/313762","image": "https://images.heb.com/is/image/HEBGrocery/prd-large/000313762.jpg","price": 1.67,"prices": {"online": {"price": 1.67,"list_price": 1.67,"unit_price": 0.14,"unit": "ct","on_sale": false,"price_cut": false,"priced_by": "EACH"},"curbside": {"price": 1.75,"list_price": 1.75,"unit_price": 0.15,"unit": "ct","on_sale": false,"price_cut": false,"priced_by": "EACH"}},"size": "12 ct","store_id": 92,"stock": "IN_STOCK","aisle": "In Dairy on the Back Wall","category": "Dairy & eggs/Eggs & egg substitutes","on_ad": false,"coupon": false,"new": false,"snap": true,"priced_by_weight": false,"description": "Pick up a dozen Hill Country Fare Grade A Large White Eggs. They’re useful for so many recipes or tasty on their own, scrambled, sunny-side-…"},"… 58 more"],"filters": [{"id": "savings","label": "Savings","multiple": true,"options": [{"value": "allsave","label": "All savings","count": 8,"selected": false,"filter": "savings:allsave"},{"value": "coupon","label": "Has coupon","count": 7,"selected": false,"filter": "savings:coupon"},"… 1 more"]},{"id": "brand","label": "Brand","multiple": true,"options": [{"value": "HEBOB","label": "All H-E-B brands","count": 46,"selected": false,"filter": "brand:HEBOB"},{"value": "H-E-B","label": "H-E-B","count": 11,"selected": false,"filter": "brand:H-E-B"},"… 26 more"]},"… 2 more"],"categories": [{"id": null,"name": "Dairy & eggs","count": 56,"url": null},{"id": null,"name": "Deli & prepared food","count": 28,"url": null}],"suggested": {"text": null,"highlighted": null,"reason": null,"__typename": "SuggestedText"},"count": 60,"page": 1,"next_page": 2,"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.