Mercato
Mercato Search API
Search the Mercato stores near a US ZIP code for a product: the stores that list it, nearest first, 9 a page, each with up to 15 of its matching products priced at that store, plus the store's distance, order minimum, delivery fee to the ZIP and next delivery and pickup. 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/jsonzipstring | integerrequiredA 5-digit US ZIP code (a ZIP+4 is read as its 5 digits). The answer lists what Mercato shows a visitor who set that ZIP.
Example: 11201
querystringrequiredWhat to look for across the stores near the ZIP, 1 to 200 characters.
Example: olive oil
category_idstring | integerA Mercato category id (categories[].category_id, e.g. 120 Pantry, 111 Meat). The ids are the same at every store.
pageintegerdefault:11 to 40. 9 stores a page; has_more says whether more stores follow.
Notes
Mercato. Mercato (mercato.com) is the US online marketplace for independent grocers, butchers, bakeries and specialty food shops: each store lists its own products at its own prices, for delivery, pickup or, at some stores, national shipping. Scavio reads the public Mercato pages on request. Mercato publishes no public product API; this is a separate option on one Scavio key, with the same key and response envelope as every other Scavio platform. Every endpoint costs 1 credit. matching_products_total counts every match at a store; store-products with the store's slug and the same query pages through them. total_stores counts the stores with a match (166 for olive oil at 11201). The same product carries the same product_id at every store, so one search compares stores: Filippo Berio Extra Virgin Olive Oil, 16.9 fl oz (product 56587) read 9.89 USD at Concord Market and 15.11 at Foodtown of Brooklyn Heights in this capture.
Prices are set by each store. The store-level endpoints (store, store-products, deals, product, categories, store-reviews, store-info) need no ZIP. search, stores, product-global and delivery-slots answer for a US ZIP code (zip, 5 digits): the stores that deliver to it or offer pickup near it, as Mercato lists them for a visitor who set that ZIP. United States only, English, prices in US dollars.
Mercato shows no UPC, SKU or manufacturer part number. store_product_id is one store's listing of a product (the input of product) and product_id the product across stores (the input of product-global). A store has a slug (the input of store, store-products, deals and store-info) and a numeric store_id (the input of categories, store-reviews and delivery-slots); stores and search return both.
| Endpoint | What it returns | Credits per call |
|---|---|---|
search | The stores near a US ZIP that list a product, nearest first, 9 a page, each with up to 15 matching products priced at that store, plus its distance, order minimum, delivery fee and next delivery | 1 |
stores | The stores serving a US ZIP, nearest first, 9 a page: slug and store id, address, business phone, distance, order minimum, delivery fee, rating, item count and SNAP acceptance | 1 |
store | One store by slug: hours, order minimum, delivery fee line, rating, aisles, its first 20 products with prices, the site's groupings and the ZIP codes it delivers to | 1 |
store-products | One store's products at its prices: keywords, a category, a sort by featured, popularity, price or name, 20 a page | 1 |
deals | One store's discounted items, 20 a page: original and sale price as the page states them, the offer, its limit and its end time | 1 |
product | One store's listing of a product: price, price per lb, pricing type, weight, stock, organic and SNAP flags, claims, ingredients, nutrition and the store selling it | 1 |
product-global | One product as a visitor in a US ZIP sees it: the first store's listing and price, the other stores that list it with their store product ids, breadcrumbs and related products | 1 |
categories | One store's categories in three levels with the store's item count in each, plus its search filters with counts | 1 |
store-reviews | One store's reviews, newest first, 20 a page: rating, comment, date, likes and replies; no reviewer names | 1 |
store-info | One store's published business details by slug or id: address, phone, rating, description, the ZIP codes it delivers to and featured products | 1 |
delivery-slots | One store's delivery and pickup windows for the next 30 days for a US ZIP: open slots per hour, the delivery fee per window and the order minimum; nothing is booked | 1 |
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=120)
d = client.mercato.search(zip="11201", query="olive oil")["data"]
print(d["total_stores"], "stores list a match")
for s in d["stores"]:
print(s["name"], s["distance_text"], s["order_minimum_text"], s["delivery_fee_text"])
for p in s["products"]:
print(" ", p["product_id"], p["name"], p["price_text"])Response