Whole Foods Market APIwholefoodsmarket.com ↗
Search Whole Foods products, get pricing and ingredients, find nearby stores, and retrieve weekly sales flyers via a structured JSON API.
What is the Whole Foods Market API?
The Whole Foods Market API covers 4 endpoints that return grocery product data including pricing, ingredients, nutritional information, and availability. Use search_products to query the catalog by keyword with location-specific pricing via ZIP code, find_stores to locate nearby stores with hours and Prime eligibility, and get_weekly_sales to pull current sale items for a specific store.
curl -X GET 'https://api.parse.bot/scraper/51e4baf2-1a29-4eda-a2b1-d52afdac2133/search_products?limit=5&query=milk&zip_code=10001' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace wholefoodsmarket-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
from parse_apis.whole_foods_market_api import WholeFoods, Product, Store, Promotion, ProductNotFound
wf = WholeFoods()
# Search for organic milk products near a NYC ZIP code
for product in wf.products.search(query="organic milk", zip_code="10001"):
print(product.name, product.price_current, product.availability)
# Get detailed info for a specific product by ASIN
detail = wf.products.get(product_id="B074H5SR5S")
print(detail.name, detail.brand, detail.description)
# Find stores near a ZIP code
for store in wf.stores.find(query="10001"):
print(store.name, store.address.city, store.prime_eligible)
# Check weekly sales at this store
for promo in store.sales():
print(promo.product_name, promo.sale_price, promo.prime_price)
Search for grocery products by keyword. Returns products with pricing, availability, ingredients, and nutritional info. Uses ZIP code to determine store location for pricing. Pagination is not supported; use limit to control result count (max 30).
| Param | Type | Description |
|---|---|---|
| limit | integer | Maximum number of results to return (max 30) |
| queryrequired | string | Search keyword (e.g., 'milk', 'organic bread') |
| zip_code | string | 5-digit US ZIP code for location-specific pricing and availability |
{
"type": "object",
"fields": {
"meta": "object containing query and zip_code used",
"results": "array of product objects with product_id, name, brand, price_current, availability, description, ingredients, and more",
"total_count": "integer total number of matching products"
},
"sample": {
"data": {
"meta": {
"query": "milk",
"zip_code": "10001"
},
"results": [
{
"name": "Organic Whole Milk, 64 Oz (Half Gallon)",
"brand": "Organic Valley",
"category": {
"displayName": "Grocery",
"productType": "DAIRY_BASED_DRINK",
"glProductGroupSymbol": "gl_fresh_perishable"
},
"snap_ebt": "SNAP EBT eligible",
"image_url": "https://m.media-amazon.com/images/I/71V8yVZRLSL.jpg",
"diet_types": [
"kosher",
"halal"
],
"product_id": "B000O6K8TI",
"unit_price": "0.09 per fluid ounce",
"description": "Organic Valley milk comes from small family farms...",
"ingredients": "Organic Valley Whole Milk, Kosher, Halal, USDA Certified Organic, Non-GMO, 64 Fluid Ounce (Pack of 6)",
"product_url": "https://www.wholefoodsmarket.com/grocery/product/B000O6K8TI",
"availability": "in_stock",
"location_zip": "10001",
"size_display": "64 Oz",
"price_current": 5.99,
"price_original": null,
"size_normalized": {
"unit": "oz",
"value": 64
},
"last_checked_utc": "2026-06-10T06:36:40Z"
}
],
"total_count": 291
},
"status": "success"
}
}About the Whole Foods Market API
Product Search and Details
The search_products endpoint accepts a query string (e.g., 'organic bread' or 'oat milk') and an optional zip_code to return location-adjusted pricing and availability. Results include up to 30 products per request, each with product_id (ASIN), name, brand, price_current, availability status, and an ingredients string. The total_count field tells you how many total matches exist beyond the current page.
The get_product_details endpoint takes a single product_id (ASIN) and returns a fuller record for that item: description, ingredients, availability (one of in_stock, out_of_stock, or limited), and price_current where available. Price may return null for items that require in-store lookup.
Store Finder and Weekly Sales
find_stores accepts either a 5-digit ZIP code or a city/store name string. ZIP lookups return the nearest store; name queries search against store tokens. Each store record includes store_id, name, address, lat/lng coordinates, hours, and a prime_eligible flag indicating Amazon Prime discount eligibility.
get_weekly_sales takes an optional store_id (discoverable via find_stores) and returns the current weekly flyer for that location. Each sale item includes product_id, name, availability, price_current, and promotional_text describing the offer. Omitting store_id falls back to a default store.
The Whole Foods Market API is a managed, monitored endpoint for wholefoodsmarket.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when wholefoodsmarket.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official wholefoodsmarket.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a grocery price tracker that monitors
price_currentchanges across Whole Foods product categories - Compare ingredient lists from
search_productsresults to flag allergens or additives in product selections - Surface weekly sale items from
get_weekly_salesin a meal-planning or budget-shopping app - Determine the nearest Prime-eligible Whole Foods store using
find_storesand theprime_eligiblefield - Populate a product catalog with brand, description, and ingredients data via
get_product_details - Build a location-aware shopping assistant that adjusts prices by passing
zip_codetosearch_products
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Whole Foods Market have an official developer API?+
How does location affect the data returned by search_products?+
zip_code parameter to search_products causes the response to reflect pricing and availability for the Whole Foods store serving that ZIP code. Without a ZIP code, results may use a default or regional store, which can mean different prices or missing availability signals for location-specific items.Does get_weekly_sales return sale prices for all stores?+
store_id. You can retrieve store IDs using find_stores, then call get_weekly_sales once per store to compare offers across locations. There is no batch endpoint for multi-store sales in a single call.Are product reviews or ratings available through this API?+
Does the API cover nutritional facts beyond the ingredients string?+
search_products response includes an ingredients field and additional product fields, but structured nutritional data (calories, macros, vitamins) is not a guaranteed field in the current schema — price_current may also return null for some products. You can fork this API on Parse and revise it to surface additional nutritional detail where the source exposes it.