Mercato
Mercato Product Across Stores API
One product on Mercato as a visitor in a US ZIP code sees it, by product id or link: the listing and price of the store the site shows first for that ZIP, the other stores that list the product with their store product ids, ratings and review counts, its category and breadcrumbs, and the related products shown alongside. 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/jsonproduct_idstring | integerA Mercato product id (products[].product_id, e.g. 55043): the product across stores. Send this or url.
Example: 55043
urlstringA mercato.com/item/<name>/<id> product link (products[].url), instead of product_id.
zipstring | 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
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. offer is the full listing of store_used, the store Mercato shows first for the ZIP, with that store's price. other_stores are listed, not priced: send an other_stores[].store_product_id to product for that store's price (1 credit each). For product 55043 at ZIP 11201 the site showed Key Food Fresh & Natural at 15.99 USD and listed 6 other stores in this capture. Send product_id or url, not both.
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=150)
d = client.mercato.product_global(product_id="55043", zip="11201")["data"]
print(d["name"], d["category"])
print(d["store_used"]["name"], d["offer"]["price_text"])
# Price it at each other store the page lists (1 credit a store).
for s in d["other_stores"]:
p = client.mercato.product(store_product_id=s["store_product_id"])["data"]
print(s["store_name"], p["price_text"], p["in_stock"])Response