H-E-B: Search
Search from H-E-B as JSON. 1 credit per successful call.
GET /v1/heb/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 120 characters |
storeId | integer | Optional | Any |
shoppingContext | string | Optional | CURBSIDE_PICKUP, CURBSIDE_DELIVERY |
category | string | Optional | Any |
sortBy | string | Optional | SCORE, PRICE, PRODUCT_NAME |
sortDirection | string | Optional | ASC, DESC |
cursor | string | Optional | Up to 512 characters |
page | integer | Optional | Any |
Example request
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.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 5 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
store_id | integer |
shopping_context | string |
sort_options | object[] |
categories | object[] |
items | object[] |