OpenAny
Get API keyAPI Key
APIScrapers

whole-foods logo
Whole Foods Search API

Search Whole Foods via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by LiteScrape, pass parameters such as query, store_id, and retrieve structured data including source product identifier, product title, brand name, product image URL, and source product URL for grocery catalogue discovery, and record matching, ready for production pipelines and AI agent automation.

Selected price
$0.00015 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Whole Foods Search API

Prepare your request, then continue with your agent.

Selected price

$0.00015 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Whole Foods Search API

Whole Foods Search API

The JSON body accepts query, optional page and optional store_id. products groups source identity, title, brand, image and URL; store metadata and pagination retain the context of the requested catalogue page.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs JSON body requires query; optional body fields: page, store_id. Optional query parameter: timeout (greater than 0, at most 90 seconds).
Selected implementation litescrape · Whole Foods Search
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Grocery catalogue discovery: Find product identities and source links from keyword queries.
  • Record matching: Connect brand and product IDs to grocery catalogue entries.

Returned Data

Field Meaning
products[].product_id Source product identifier.
products[].title Product title.
products[].brand Brand name.
products[].image Product image URL.
products[].url Source product URL.
pagination.current Returned page.
pagination.next_page Next page number when present.
search_metadata.store_id Store context associated with the response.

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request POST \
  https://api.openany.si/v1/agent-apis/litescrape/api/wholefoods/search \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{"query":"coffee","store_id":"10233"}'

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published Whole Foods Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Search Whole Foods products with prices and availability.
Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
litescrapeCurrent
Whole Foods Search · POST · View API reference
$0.00015 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · litescrapeUSD / call
Unit price
$0.00015

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.015

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/wholefoods/search
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
queryJSON request bodybodystringYes

Product keywords to search for.

minLength: 1 · maxLength: 500

timeoutURL query parametersquerynumberNo

Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

maximum: 90

pageJSON request bodybodyintegerNo

One-based result page.

minimum: 1 · maximum: 100

store_idJSON request bodybodystring | nullNo

Retailer's store ID. Selects the store catalog, pricing or availability where the retailer exposes it.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • paginationobject
    • currentinteger
    • next_pageinteger
    • total_resultsinteger
  • productsobject[]
    • brandstring
    • imagestring
    • product_idstring
    • titlestring
    • urlstring
  • search_metadataobject
    • postal_codestring
    • retailerstring
    • store_idstring
    • store_namestring
    • total_time_takennumber
  • search_parametersobject
    • pageinteger
    • querystring
    • store_idstring
  • submit_feedback_for_this_response_herestring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    timeout
    Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
    body
    Search Whole Foods products with prices and availability.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/litescrape/api/wholefoods/search' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "query": "coffee",
      "store_id": "10233"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "pagination": {
        "current": 1,
        "next_page": 2,
        "total_results": 325
      },
      "products": [
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41lwMBWCzoL.jpg",
          "product_id": "b07d7853dm",
          "title": "Cycledrome Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-cycledrome-coffee-12-oz-b07d7853dm"
        },
        {
          "brand": "George Howell Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/31ABCUFLZfL.jpg",
          "product_id": "b085z46snm",
          "title": "Montecarlos Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/george-howell-coffee-montecarlos-coffee-12-oz-b085z46snm"
        },
        {
          "brand": "JIMS ORGANIC COFFEE",
          "product_id": "b004amvdh8",
          "title": "Organic Wonder Brew Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/jims-organic-coffee-organic-wonder-brew-coffee-12-oz-b004amvdh8"
        },
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41mMXnFGDyL.jpg",
          "product_id": "b07d775m4r",
          "title": "Steamroller Blend Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-steamroller-blend-coffee-12-oz-b07d775m4r"
        },
        {
          "brand": "FAZENDA COFFEE ROASTERS",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41-GfGmurKL.jpg",
          "product_id": "b07d7fs86h",
          "title": "Fazenda Blend Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/fazenda-coffee-roasters-fazenda-blend-coffee-12-oz-b07d7fs86h"
        },
        {
          "brand": "Jims Organic Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41hJgpO15SL.jpg",
          "product_id": "b0046hcjr0",
          "title": "Organic Colombian Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/jims-organic-coffee-organic-colombian-coffee-12-oz-b0046hcjr0"
        },
        {
          "brand": "Jims Organic Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41zPJLuNS0L.jpg",
          "product_id": "b00a282zee",
          "title": "Organic Ground Hazelnut Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/jims-organic-coffee-organic-ground-hazelnut-coffee-12-oz-b00a282zee"
        },
        {
          "brand": "STUMPTOWN COFFEE ROASTERS",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41kcmiz--DL.jpg",
          "product_id": "b00nbkylba",
          "title": "Cold Brew Coffee, 10.5 FZ",
          "url": "https://www.wholefoodsmarket.com/product/stumptown-coffee-roasters-cold-brew-coffee-105-fz-b00nbkylba"
        },
        {
          "brand": "Equator Coffees",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/31kbxVwHFDL.jpg",
          "product_id": "b0dvm1q7j8",
          "title": "Organic Smooth Black Coffee, 42 FZ",
          "url": "https://www.wholefoodsmarket.com/product/equator-coffees-organic-smooth-black-coffee-42-fz-b0dvm1q7j8"
        },
        {
          "brand": "Throne Sport Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/31ComLc2qpL.jpg",
          "product_id": "b0djtfvf7l",
          "title": "Black Sport Coffee, 11 FZ",
          "url": "https://www.wholefoodsmarket.com/product/throne-sport-coffee-black-sport-coffee-11-fz-b0djtfvf7l"
        },
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/412GQ3kdfSL.jpg",
          "product_id": "b07d6vf5vg",
          "title": "Dark Roast Of The Decade Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-dark-roast-of-the-decade-coffee-12-oz-b07d6vf5vg"
        },
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41uA7XUgiML.jpg",
          "product_id": "b07d77vcg2",
          "title": "Cycledrome Blend Decaf Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-cycledrome-blend-decaf-coffee-12-oz-b07d77vcg2"
        },
        {
          "brand": "JIMS ORGANIC COFFEE",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41lCpn9jQIL.jpg",
          "product_id": "b004bdq99i",
          "title": "Organic Witches Brew Coffee, 11 OZ",
          "url": "https://www.wholefoodsmarket.com/product/jims-organic-coffee-organic-witches-brew-coffee-11-oz-b004bdq99i"
        },
        {
          "brand": "Fazenda Coffee Roasters",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41lV8xCvpvL.jpg",
          "product_id": "b00jdsnnc2",
          "title": "Costa Rica Tarrazu Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/fazenda-coffee-roasters-costa-rica-tarrazu-coffee-12-oz-b00jdsnnc2"
        },
        {
          "brand": "George Howell Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/31-YmRaQ-yL.jpg",
          "product_id": "b07fz7xstb",
          "title": "Guatemala Whole Bean Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/george-howell-coffee-guatemala-whole-bean-coffee-12-oz-b07fz7xstb"
        },
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41NPFNKccJL.jpg",
          "product_id": "b07d7h6l1n",
          "title": "Natural Misty Valley Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-natural-misty-valley-coffee-12-oz-b07d7h6l1n"
        },
        {
          "brand": "JIMS ORGANIC COFFEE",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41lRXFyKHoL.jpg",
          "product_id": "b07c2wy1x4",
          "title": "Organic Double Chocolate Ground Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/jims-organic-coffee-organic-double-chocolate-ground-coffee-12-oz-b07c2wy1x4"
        },
        {
          "brand": "FAZENDA COFFEE ROASTERS",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41o30U1K7SL.jpg",
          "product_id": "b00jdsug40",
          "title": "Ethiopia Light Roast Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/fazenda-coffee-roasters-ethiopia-light-roast-coffee-12-oz-b00jdsug40"
        },
        {
          "brand": "Fazenda Coffee Roasters",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41rtn60u9lL.jpg",
          "product_id": "b00jdsp2h6",
          "title": "Guatemala Finca Valparaiso Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/fazenda-coffee-roasters-guatemala-finca-valparaiso-coffee-12-oz-b00jdsp2h6"
        },
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41CgOwijLqL.jpg",
          "product_id": "b07dkkcp14",
          "title": "Organic Salonika Blend Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-organic-salonika-blend-coffee-12-oz-b07dkkcp14"
        },
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41OhgNz0xhL.jpg",
          "product_id": "b07d77l966",
          "title": "Organic Kilimanjaro Blend Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-organic-kilimanjaro-blend-coffee-12-oz-b07d77l966"
        },
        {
          "brand": "JIMS ORGANIC COFFEE",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/410nEpXOZkL.jpg",
          "product_id": "b07d7g65f5",
          "title": "Organic Ground French Vanilla Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/jims-organic-coffee-organic-ground-french-vanilla-coffee-12-oz-b07d7g65f5"
        },
        {
          "brand": "FAZENDA COFFEE ROASTERS",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/41CE-AIbSgL.jpg",
          "product_id": "b00jdsvnii",
          "title": "Dark French Roast Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/fazenda-coffee-roasters-dark-french-roast-coffee-12-oz-b00jdsvnii"
        },
        {
          "brand": "New Harvest Coffee",
          "image": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/411C2Ld3ufL.jpg",
          "product_id": "b07d77mgz6",
          "title": "Organic Cafe Marika Coffee, 12 OZ",
          "url": "https://www.wholefoodsmarket.com/product/new-harvest-coffee-organic-cafe-marika-coffee-12-oz-b07d77mgz6"
        }
      ],
      "search_metadata": {
        "postal_code": "01801-6043",
        "retailer": "Whole Foods",
        "store_id": "10233",
        "store_name": "Woburn",
        "total_time_taken": 0.362
      },
      "search_parameters": {
        "page": 1,
        "query": "coffee",
        "store_id": "10233"
      },
      "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
    }

Common questions

How do query and page work?

query must contain 1–500 characters. page accepts integers 1–100 and defaults to 1; use returned next_page where available.

Can I select a store?

Use optional store_id as a 1–8 digit string. This selects supported source store context rather than supplying a ZIP code.

Are prices or stock included in every result?

The documented result fields cover product identity, title, brand, image and URL. Treat price or stock as optional only when actually returned; do not fill missing values with zero or in-stock status.

How can I open the selected product?

Use its full source URL with the separate Whole Foods Product route. Keep product_id and store context attached when matching the detail record.

Where should I set the request timeout?

Set timeout in the query string, including for POST requests. It must be greater than 0 and at most 90 seconds; page_timeout cannot extend this total execution budget.

Can I add arbitrary parameters to the JSON body?

Use the body fields exposed by this implementation. Its JSON schema rejects additional properties; query parameters such as timeout belong outside the JSON body.

Use Whole Foods Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.