HEMA
HEMA Store API
One HEMA store by store id, in any of the six countries with HEMA stores: name, status, operator, visiting and delivery address, coordinates, phone, the regular week's hours, dated special hours, closed dates and services. Add an article number to get that article's sellable units, stock level and shelf locations in this store. Costs 1 credit; a store id HEMA does not know is a charged 404.
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/jsonstore_idstring | integerrequiredA HEMA store id, up to 4 digits (stores[].store_id, e.g. 0013; 13 works too). Works for stores in every country: no country param.
Example: 0013
skustring | integerAn article number: adds that article's stock in this store (one size and colour; leading zeros are dropped).
Example: 15300147
Notes
Store. HEMA, the Dutch variety store (hema.nl / hema.com), on its four webshops: country picks the market (default nl, www.hema.nl; be, fr and de on www.hema.com) and, in Belgium, language the webshop (nl-be or fr-be). Names, labels, promotion texts, category names and facet values come back in that webshop's language, as HEMA writes them (Dutch by default); field names are English. Prices are numbers in EUR on every market. An article number (sku) is the same in every market; HEMA sets the price per market. Luxembourg (lu) and Austria (at) have HEMA stores but no webshop: only stores, store and store-stock serve them. Every webshop answer echoes country, language, market (e.g. nl-nl) and currency. Not the HEMA monomer or Hema Pharmaceuticals. Stock is what HEMA's store service reports for each store at the moment of the call: sellable units and a stock level, not a promise that the shelf has the item. Units change through the day; store every reading with fetched_at. HEMA's own note: online prices can differ from store prices. Cost: 1 credit.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=210)
s = client.hema.store(store_id="0013", sku="15300147")["data"]
print(s["name"], s["address"]["street"], s["address"]["city"], s["status"])
print(s["stock"]["sellable_units"], s["stock"]["stock_level"], s["stock"]["shelf_locations"])
for h in s["hours"]:
print(h["day"], h["open"], h["close"])Response