Skip to content
Scrappa Get API key
H-E-B API 1 credit / request

H-E-B Product API Documentation

GET https://scrappa.co/api/heb/product

H-E-B Product API returns one grocery product from heb.com by its id, the numeric productId from search. It adds the description, ingredients, nutrition panel, safety warning, preparation instructions, coupons and similar product ids to the search fields.

Send an id exactly as search returns it, for example 314124. An optional public storeId (default 590) and shoppingContext set the price context. An unknown id answers 404 and is free. Prices are in US dollars. Fields H-E-B does not publish for a product are left out.

Costs 1 credit per successful request. Not found and failed requests are free.

H-E-B Product API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/heb/product
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "product": {
            "id": "314124",
            "name": "H-E-B Whole Milk Gallon",
            "size": "1 gal",
            "brand": "H-E-B",
            "price": 3.29,
            "currency": "USD",
            "nutrition": {
                "nutrients": [
                    {
                        "name": "Calories",
                        "unit": "kcal",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

2 optional filters available.

id string Required

Numeric product id from search, for example 314124.

Example value 1234567890
storeId integer Optional

Public H-E-B store id, default 590.

Example value 10
shoppingContext string Optional

CURBSIDE_PICKUP or CURBSIDE_DELIVERY.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "product": {
            "id": "314124",
            "name": "H-E-B Whole Milk Gallon",
            "size": "1 gal",
            "brand": "H-E-B",
            "price": 3.29,
            "currency": "USD",
            "nutrition": {
                "nutrients": [
                    {
                        "name": "Calories",
                        "unit": "kcal",
                        "amount": 150,
                        "daily_value_percent": 8
                    }
                ],
                "serving_size": "1 cup (240mL)"
            },
            "unit_price": 0.03,
            "ingredients": "Whole Milk, Vitamin D3."
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

The id is missing or invalid, or an unknown parameter was sent. This response is not billable.

{
    "errors": {
        "id": [
            "A product id from search is required, e.g. id=314124."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

No product with this id was found. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "product"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

H-E-B could not be reached after a fresh-exit retry. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "product"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "H-E-B could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.