APIs / Marketplaces / H-E-B

1 credit per call2 endpoints5 datapointsChecked working 6 Dec 2026

H-E-B API

H-E-B API for grocery search and product details by store, with prices, sale flags, unit prices and ingredients as JSON. 1 credit per successful call.

H-E-B
GET/v1/heb/search?query=milk
{
  "success": true,
  "data": {
    "query": "milk",
    "store_id": 590,
    "shopping_context": "CURBSIDE_PICKUP",
    "page": 1,
    "next_cursor": "94VCjK11Dhr",
    "has_next_page": true,
    "total": 327,
    "count": 50,
    "sort_options": [
      {
        "displayName": "Best match",
        "selected": true,
        "sortBy": "SCORE",
        "sortDirection": "DESC",
        "isDefault": true
      },
      {
        "displayName": "Price low to high",
        "selected": false,
        "sortBy": "PRICE",
        "sortDirection": "ASC",
        "isDefault": false
      },
      {
        "displayName": "Price high to low",
        "selected": false,
        "sortBy": "PRICE",
        "sortDirection": "DESC",
        "isDefault": false
      }
    ],
    "filters": [
      {
        "id": "savings",
        "displayTitle": "Savings",
        "selectionType": "MULTIPLE",
        "options": [
          {
            "displayTitle": "All savings",
            "selected": false,
            "id": "allsave"
          },
          {
            "displayTitle": "Has coupon",
            "selected": false,
            "id": "coupon"
          },
          {
            "displayTitle": "Price cut",
            "selected": false,
            "id": "cut"
          }
        ],
        "enableMoreLink": true,
        "maxInitialRefinementsMobile": 30,
        "maxMoreRefinements": 30
      },
      {
        "id": "brand",
        "displayTitle": "Brand",
        "selectionType": "MULTIPLE",
        "options": [
          {
            "displayTitle": "All H-E-B brands",
            "selected": false,
            "id": "HEBOB"
          },
          {
            "displayTitle": "A Taste of Thai",
            "selected": false,
            "id": "A%20Taste%20of%20Thai"
          },
          {
            "displayTitle": "A2 Milk",
            "selected": false,
            "id": "A2%20Milk"
          }
        ],
        "enableMoreLink": true,
        "maxInitialRefinementsMobile": 30,
        "maxMoreRefinements": 30
      },
      {
        "id": "lifestyle",
        "displayTitle": "Ways to shop",
        "selectionType": "MULTIPLE",
        "options": [
          {
            "displayTitle": "SNAP EBT eligible",
            "selected": false,
            "id": "SNAP"
          },
          {
            "displayTitle": "Gluten free verified",
            "selected": false,
            "id": "GFV"
          },
          {
            "displayTitle": "Low sodium",
            "selected": false,
            "id": "LS"
          }
        ],
        "enableMoreLink": true,
        "maxInitialRefinementsMobile": 30,
        "maxMoreRefinements": 30
      }
    ],
    "categories": [
      {
        "displayTitle": "Dairy & eggs",
        "count": 302,
        "selected": false,
        "parentCategoryId": "2864",
        "categoryId": "490016"
      },
      {
        "displayTitle": "Pantry",
        "count": 25,
        "selected": false,
        "parentCategoryId": "2864",
        "categoryId": "490024"
      }
    ],
    "items": [
      {
        "position": 1,
        "id": "671076",
        "upc": "041220033317",
        "name": "H-E-B Mootopia 13g Protein Lactose Free 2% Reduced Fat Milk, 1/2 gal",
        "brand": "H-E-B",
        "own_brand": true,
        "image": "https://images.heb.com/is/image/HEBGrocery/000671076-1",
        "images": [
          "https://images.heb.com/is/image/HEBGrocery/000671076-1",
          "https://images.heb.com/is/image/HEBGrocery/000671076-2",
          "https://images.heb.com/is/image/HEBGrocery/000671076-3"
        ],
        "size": "1/2 gal",
        "currency": "USD",
        "category": "Dairy & eggs",
        "on_ad": false,
        "coupon": false,
        "price": 5.75,
        "regular_price": 5.75,
        "price_context": "CURBSIDE",
        "is_on_sale": false,
        "is_price_cut": false,
        "unit_price": 0.09,
        "unit": "oz"
      },
      {
        "position": 2,
        "id": "16584562",
        "upc": "041271003604",
        "name": "Oak Farms Whole Milk, 1/2 gal",
        "brand": "Oak Farms",
        "own_brand": false,
        "image": "https://images.heb.com/is/image/HEBGrocery/016584562-1",
        "images": [
          "https://images.heb.com/is/image/HEBGrocery/016584562-1",
          "https://images.heb.com/is/image/HEBGrocery/016584562-2"
        ],
        "size": "1/2 gal",
        "currency": "USD",
        "category": "Dairy & eggs",
        "on_ad": false,
        "coupon": false,
        "price": 3.42,
        "regular_price": 3.42,
        "price_context": "CURBSIDE",
        "is_on_sale": false,
        "is_price_cut": false,
        "unit_price": 0.05,
        "unit": "oz"
      },
      {
        "position": 3,
        "id": "314124",
        "upc": "041220444892",
        "name": "Hill Country Fare Whole Milk, 1 gal",
        "brand": "Hill Country Fare",
        "own_brand": true,
        "image": "https://images.heb.com/is/image/HEBGrocery/000314124-1",
        "images": [
          "https://images.heb.com/is/image/HEBGrocery/000314124-1"
        ],
        "size": "1 gal",
        "currency": "USD",
        "category": "Dairy & eggs",
        "on_ad": false,
        "coupon": false,
        "price": 4.28,
        "regular_price": 4.28,
        "price_context": "CURBSIDE",
        "is_on_sale": false,
        "is_price_cut": false,
        "unit_price": 0.03,
        "unit": "oz"
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_612b5833ae4249c7b4b167511f11b3d8",
    "credits_charged": 1,
    "credits_remaining": 4908
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#displayNamestringselectedbooleansortBystringsortDirectionstringisDefaultboolean
1Best matchtrueSCOREDESCtrue
2Price low to highfalsePRICEASCfalse
3Price high to lowfalsePRICEDESCfalse

Recorded from our API · 3 items shown · 5 datapoints per itemGET /v1/heb/search?query=milk

5 datapoints

Identity

  • displayNamestring

Other

  • selectedboolean
  • sortBystring
  • sortDirectionstring
  • isDefaultboolean

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/heb/search?query=milk" \
  -H "X-API-Key: $API_KEY"

H-E-B · 2 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/heb/product
id+2 optional
product
1 credit
GET/v1/heb/search
query+7 optional
store_idshopping_contextsort_optionscategoriesitems
1 credit

Overview

About the H-E-B API

What you can get

The H-E-B API returns H-E-B grocery data as JSON through 2 endpoints.

  • Search: search takes a query, with storeId, shoppingContext (CURBSIDE_PICKUP or CURBSIDE_DELIVERY), category, sortBy (SCORE, PRICE or PRODUCT_NAME), sortDirection (ASC or DESC), cursor and page.
  • Products: product takes an id, with storeId and shoppingContext.

The recorded search for "milk" returns query, store_id (590 by default), shopping_context, page, next_cursor, has_next_page, total (327 in that recording), count (50 on the page), sort_options, filters, categories and items. Each item has position, id, upc, name, brand, own_brand, image, size, currency, category, on_ad, coupon, price, regular_price, price_context, is_on_sale, is_price_cut, unit_price and unit.

How a call works

Search, then look up: GET /v1/heb/search?query=milk with your key in the X-API-Key header returns each product's id; product takes it and adds description, ingredients, safety_warning, preparation_instructions, snap_eligible and similar_products ids. The recorded Hill Country Fare Whole Milk (1 gal) was $4.28. For the next page, pass next_cursor as cursor. Pass storeId to price against a specific store. Every successful call costs 1 credit; failed calls cost nothing.

MarketplacesJSONRESTMCP

More marketplaces APIs

Use cases

Track H-E-B prices, sale prices and price cuts for a basket

Use the H-E-B API to track H-E-B prices, sale prices and price cuts for a basket

Compare prices between two H-E-B stores with `storeId`

Use the H-E-B API to compare prices between two H-E-B stores with `storeId`

Compare unit prices across brands, including H-E-B own brands

Use the H-E-B API to compare unit prices across brands, including H-E-B own brands

Find items in the weekly ad or with a coupon with `on_ad` and `coupon`

Use the H-E-B API to find items in the weekly ad or with a coupon with `on_ad` and `coupon`

FAQ

Questions

How much does the H-E-B API cost?

Each successful call costs one credit, and each search page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

Can I get prices for my store?

Yes. Both endpoints take a `storeId`; without one, the recorded search used store 590. `shoppingContext` switches between curbside pickup and delivery prices.

Do I need an H-E-B account?

No. You call this H-E-B API with your Perceptlayer key in the `X-API-Key` header, with no H-E-B login.

Is this the official H-E-B API?

No. Perceptlayer is an independent service and is not affiliated with H-E-B. It returns H-E-B data as JSON with a Perceptlayer key, so there is no H-E-B developer account, app review or partner approval to get first. It only reads data: if H-E-B has an official API and you need to act on your own H-E-B account, such as posting, managing orders or reading private data, use that one.

Should I build a H-E-B scraper instead?

You can, but a H-E-B scraper is code you maintain: page changes break it, requests get blocked, and H-E-B's terms govern how you collect data. The H-E-B API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the H-E-B API with 100 free credits

No credit card. Failed calls are never billed.