H-E-B store finder
H-E-B stores near an address or ZIP code: store number, name, address, phone, coordinates, distance in miles, format, pharmacy flag, opening hours, fulfillment options and departments with their phones and hours, plus raw. Five stores 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
| name | type | description |
|---|---|---|
addressrequired | string | Address, city or ZIP code. Example: 78704 |
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/stores?address=78704" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/heb/v1/stores",
params={"address": "78704"},
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/stores");
url.searchParams.set("address", "78704");
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)
{"address": "78704","page": 1,"count": 5,"total": 10,"stores": [{"store_id": 754,"name": "SoCo H-E-B","address": "2400 S. CONGRESS AVE.","city": "AUSTIN","state": "TX","zip": "78704","phone": "+1 555 010 0000","latitude": 30.23861,"longitude": -97.75424,"distance_miles": 1,"format": "NP","pharmacy": true,"hours": [{"day": "MONDAY","opens": "06:00","closes": "23:00"},{"day": "TUESDAY","opens": "06:00","closes": "23:00"},"… 5 more"],"fulfillment": ["ALCOHOL_DELIVERY","CURBSIDE_DELIVERY","… 1 more"],"departments": [{"name": "Pharmacy","phone": "+1 555 010 0000","hours": [{"…": "3 fields"},{"…": "3 fields"},"… 5 more"]},{"name": "Grocery","phone": null,"hours": []},"… 12 more"]},{"store_id": 420,"name": "Central Market Westgate","address": "4477 S. LAMAR BLVD","city": "AUSTIN","state": "TX","zip": "78745-1409","phone": "+1 555 010 0000","latitude": 30.23111,"longitude": -97.79773,"distance_miles": 1.99,"format": "CM","pharmacy": false,"hours": [{"day": "MONDAY","opens": "08:00","closes": "22:00"},{"day": "TUESDAY","opens": "08:00","closes": "22:00"},"… 5 more"],"fulfillment": ["CURBSIDE_DELIVERY"],"departments": [{"name": "Meat Market","phone": null,"hours": []},{"name": "Produce","phone": null,"hours": []},"… 1 more"]},"… 3 more"],"next_page": 2,"cached": false,"credits_used": 1}