HEB
HEB Store Locator API
Find H-E-B stores near a zip code or city: store number, address, phone, coordinates, hours for each day, pharmacy availability, fulfillment channels and distance in miles. The store_number is what you pass as store_id to HEB Search and HEB Product for store-level prices. Costs 2 credits per request.
POST/api/v1/heb/stores
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonzipstringUS zip code. Wins over city when both are sent.
Example: 78204
citystringCity name, optionally with state (e.g. "Austin, TX"). Used when no zip is sent.
Example: Austin, TX
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
stores = client.heb.stores(zip="78204")
for s in stores["data"]["stores"]:
print(s["store_number"], s["name"], round(s["distance_miles"], 1), "mi")
print(f" {s['address']['street']}, {s['address']['city']}, {s['address']['state']}")
print(" ", [f["name"] for f in s["fulfillments"]])
# Pass a store_number as store_id for that store's prices
nearest = stores["data"]["stores"][0]["store_number"]
milk = client.heb.search("whole milk", store_id=nearest)Response
"count": 5,
"total_stores": 10,
"page": 1,
},
"response_time": 6945
}