Whole Foods
Whole Foods Product API
One Whole Foods Market product by ASIN, URL or slug: name, brand, description, ingredients, nutrition facts, diets, SNAP EBT eligibility, category and images. With store_id it adds two separately labelled price blocks: in_store (that store's shelf regular, sale and Prime price) and online (that store's delivery and pickup price, unit price and availability). The two often differ. Costs 1 credit per request.
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/jsonasinstringProduct ASIN, the asin field of a search result. Pass this, url or slug.
Example: B078WVT2BC
urlstringA wholefoodsmarket.com product URL.
Example: https://www.wholefoodsmarket.com/grocery/product/elmhurst-unsweetened-hazelnut-milked-32-fz-b078wvt2bc
slugstringA product slug, the slug field of a search result.
Example: elmhurst-unsweetened-hazelnut-milked-32-fz-b078wvt2bc
store_idstring5-digit Whole Foods store id. When set, the response adds that store's in-store (shelf) prices and its online (delivery/pickup) price. Without it, in_store and online are null.
Example: 10160
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
p = client.whole_foods.product(asin="B078WVT2BC", store_id="10160")["data"]
print(p["name"], p["brand"], p["ingredients"])
print("shelf:", p["in_store"]["regular_price"], "online:", p["online"]["price"])Response