Mercato
Mercato Store Products API
One Mercato store's products at its own prices: keywords, a category, a sort (featured, popularity, price or name, ascending or descending) and paging, 20 products a page, each with price, price per lb, pricing type, weight, stock and flags. Without a query, the store's whole catalogue or the category's. 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/jsonstorestringrequiredA Mercato store slug as the site writes it (stores[].slug, e.g. sahadis) or a mercato.com/shop/... store link.
Example: sahadis
querystringKeywords within the store, 1 to 200 characters. Without it: the store's catalogue (or the category's).
Example: salmon
category_idstring | integerA Mercato category id (categories[].category_id, e.g. 120 Pantry, 111 Meat). The ids are the same at every store.
sortstringfeatured, popularity, price or name. Without it: the site's own order (relevance for a query).
featured— The store's featured order (default direction desc).popularity— Most popular first (default direction desc).price— By price (default direction asc).name— By name (default direction asc).
orderstringasc or desc, with sort only (default desc for featured and popularity, asc for price and name).
pageintegerdefault:11 to 250. 20 products a page.
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. total counts every product that matches (14 for salmon at Captain Marden's Seafoods in this capture). Sorted by price, items sold each and items sold by the pound sort on their price as stated: a salmon fillet at 24.00 USD per lb sits after a 19.00 USD pack sold each. store_used names the store the products belong to and store_matches says whether it is the one asked for.
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.store_products(store="captain-mardens-seafoods", query="salmon", sort="price", order="asc")["data"]
print(d["store_used"]["name"], d["total"])
for p in d["products"]:
print(p["name"], p["price_text"], p["pricing_type"], p["estimated"])Response