APIs / Marketplaces / Sprouts Farmers Market

1 credit per call2 endpoints20 datapoints

Sprouts Farmers Market API

Sprouts Farmers Market API for grocery search and product details by store or ZIP: prices, sales, unit prices and stock as JSON. 1 credit per call.

Sprouts Farmers Market
GET/v1/sprouts/search?query=milk
{
  "success": true,
  "data": {
    "query": "milk",
    "store_id": "393864",
    "page": 1,
    "per_page": 20,
    "total_results": 249,
    "has_next_page": true,
    "items": [
      {
        "position": 1,
        "id": "items_17650-120137222",
        "product_id": "120137222",
        "name": "Grazeful Dairy Whole Grassfed A2/A2 Milk",
        "brand": "grazeful dairy",
        "size": "64 oz",
        "category": "Plain Milk",
        "upc": "00850221001627",
        "url": "https://shop.sprouts.com/store/sprouts/products/120137222-grazeful-dairy-grassfed-whole-a2-a2-milk-2-gal",
        "images": [
          "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_927e0d28-b193-4e41-9592-765d3a2d6625.png"
        ],
        "price": 3.79,
        "regular_price": 4.99,
        "sale_price": 3.79,
        "on_sale": true,
        "currency": "USD",
        "unit_price": {
          "amount": 0.06,
          "unit": "oz",
          "text": "$0.06/oz"
        },
        "availability": {
          "in_stock": true,
          "stock_level": "inStock"
        },
        "rating": {
          "value": 4.9,
          "count": 12
        },
        "badges": [
          "New",
          "Non-GMO"
        ],
        "nutrition_highlights": [
          {
            "name": "Protein",
            "value": 8,
            "unit": "g"
          },
          {
            "name": "Sat Fat",
            "value": 5,
            "unit": "g"
          },
          {
            "name": "Sugar",
            "value": 12,
            "unit": "g"
          }
        ]
      },
      {
        "position": 2,
        "id": "items_17650-120136748",
        "product_id": "120136748",
        "name": "Grazeful Dairy Reduced Fat Grassfed A2/A2 Milk",
        "brand": "grazeful dairy",
        "size": "64 oz",
        "category": "Plain Milk",
        "upc": "00850221001610",
        "url": "https://shop.sprouts.com/store/sprouts/products/120136748-grazeful-dairy-reduced-fat-grass-fed-a2-a2-milk-2-gal",
        "images": [
          "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_5800a9df-672c-4bd2-8d40-0002c719eae2.png"
        ],
        "price": 3.79,
        "regular_price": 4.99,
        "sale_price": 3.79,
        "on_sale": true,
        "currency": "USD",
        "unit_price": {
          "amount": 0.06,
          "unit": "oz",
          "text": "$0.06/oz"
        },
        "availability": {
          "in_stock": true,
          "stock_level": "inStock"
        },
        "rating": {
          "value": 4.7,
          "count": 6
        },
        "badges": [
          "New",
          "Non-GMO"
        ],
        "nutrition_highlights": [
          {
            "name": "Protein",
            "value": 9,
            "unit": "g"
          },
          {
            "name": "Sat Fat",
            "value": 3,
            "unit": "g"
          },
          {
            "name": "Sugar",
            "value": 13,
            "unit": "g"
          }
        ]
      },
      {
        "position": 3,
        "id": "items_17650-44732949",
        "product_id": "44732949",
        "name": "Little Oak Press Natural Goat Milk Toddler Drink",
        "brand": "little oak press",
        "size": "28 oz",
        "category": "Baby Formula",
        "upc": "00850021933005",
        "url": "https://shop.sprouts.com/store/sprouts/products/44732949-littleoak-goat-s-milk-formula-28-oz",
        "images": [
          "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_db8f459f-6d0f-4fbd-9051-08e0934d8c83.png"
        ],
        "price": 49.99,
        "regular_price": 49.99,
        "on_sale": false,
        "currency": "USD",
        "unit_price": {
          "amount": 1.79,
          "unit": "oz",
          "text": "$1.79/oz"
        },
        "availability": {
          "in_stock": true,
          "stock_level": "inStock"
        },
        "rating": {
          "value": 5,
          "count": 4
        },
        "badges": [
          "Gluten-Free",
          "Non-GMO"
        ]
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_fdb07b2018fa42dcaccc6a6d2eda8656",
    "credits_charged": 1,
    "credits_remaining": 1909
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#positionintegeridstringproduct_idstringnamestringbrandstringsizestringcategorystringupcstringurlurlimagesstring[]pricenumberregular_pricenumbersale_pricenumberon_salebooleancurrencystringunit_priceobjectavailabilityobjectratingobjectbadgesstring[]nutrition_highlightsobject[]
11items_17650-120137222120137222Grazeful Dairy Whole Grassfed A2/A2 Milkgrazeful dairy64 ozPlain Milk00850221001627https://shop.sprouts.com/store/sprouts/products/120137222-grazeful-dairy-grassfed-whole-a2-a2-milk-2-gal[1 item]3.794.993.79trueUSD{3 fields}{2 fields}{2 fields}[2 items][3 items]
22items_17650-120136748120136748Grazeful Dairy Reduced Fat Grassfed A2/A2 Milkgrazeful dairy64 ozPlain Milk00850221001610https://shop.sprouts.com/store/sprouts/products/120136748-grazeful-dairy-reduced-fat-grass-fed-a2-a2-milk-2-gal[1 item]3.794.993.79trueUSD{3 fields}{2 fields}{2 fields}[2 items][3 items]
33items_17650-4473294944732949Little Oak Press Natural Goat Milk Toddler Drinklittle oak press28 ozBaby Formula00850021933005https://shop.sprouts.com/store/sprouts/products/44732949-littleoak-goat-s-milk-formula-28-oz[1 item]49.9949.99—falseUSD{3 fields}{2 fields}{2 fields}[2 items]—

Recorded from our API · 3 items shown · 20 datapoints per itemGET /v1/sprouts/search?query=milk

20 datapoints

Identity

  • idstring
  • product_idstring
  • namestring
  • brandstring
  • categorystring

Contact

  • urlurl

Reputation

  • imagesstring[]
  • ratingobject
  • badgesstring[]

Price

  • pricenumber
  • regular_pricenumber
  • sale_pricenumber
  • currencystring
  • unit_priceobject

Other

  • positioninteger
  • sizestring
  • upcstring
  • on_saleboolean
  • availabilityobject
  • nutrition_highlightsobject[]

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/sprouts/search?query=milk" \
  -H "X-API-Key: $API_KEY"

Sprouts Farmers Market · 2 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters and an example request.

EndpointRequired parametersCost
GET/v1/sprouts/product
none+4 optional
1 credit
GET/v1/sprouts/search
query+4 optional
1 credit

Overview

About the Sprouts Farmers Market API

What you can get

The Sprouts Farmers Market API returns Sprouts grocery data as JSON through 2 endpoints. Both take a store_id or a zip (85260, 90210, 77002, 30301 or 80202).

  • Search: search takes a query, with page and per_page.
  • Products: product takes an id or a product url.

The recorded search for "milk" returns query, store_id, page, per_page, total_results (249 in that recording), has_next_page and items. Each item has position, id, product_id, name, brand, size, category, upc, price, regular_price, sale_price, on_sale, unit_price, availability, rating, badges and nutrition_highlights.

How a call works

Search, then look up: GET /v1/sprouts/search?query=milk with your key in the X-API-Key header returns each product's id, such as items_17650-120137222; product takes that id. Pass the same store_id or zip to both to keep prices local. Check has_next_page before asking for the next page. Every successful call costs 1 credit; failed calls cost nothing.

MarketplacesJSONRESTMCP

More marketplaces APIs

Use cases

Track grocery prices and sales at a given store

Use the Sprouts Farmers Market API to track grocery prices and sales at a given store

Compare prices for the same product across ZIP codes

Use the Sprouts Farmers Market API to compare prices for the same product across ZIP codes

Compare unit prices across brands for one product type

Use the Sprouts Farmers Market API to compare unit prices across brands for one product type

Check stock at a store before an order

Use the Sprouts Farmers Market API to check stock at a store before an order

FAQ

Questions

How much does the Sprouts Farmers Market API cost?

Each successful call costs one credit, and each search page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

Can I get prices for a specific store?

Yes. Pass a `store_id`, or a `zip` of 85260, 90210, 77002, 30301 or 80202, to `search` or `product`.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Should I build a Sprouts Farmers Market scraper instead?

You can, but a Sprouts Farmers Market scraper is code you maintain: page changes break it, requests get blocked, and Sprouts Farmers Market's terms govern how you collect data. The Sprouts Farmers Market API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Sprouts Farmers Market API with 100 free credits

No credit card. Failed calls are never billed.