METRO / Makro
METRO / Makro Categories API
The category tree of one METRO / Makro national shop for one store: each category with its id, name in the market's language, path (the input of category and of the category filter on search and deals) and children, 1 to 6 levels deep. 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/jsoncountrystringrequiredThe national shop: nl, es, bg, hu, kz, md, pl, ro, rs, ua (prices shown), fr (non-food prices only), de, at, hr, cz, it, pt, sk, tr (catalog only: every price null).
Example: nl
store_idstring | integerA store number of the market (stores[].store_id, e.g. 00001). Prices and stock status are that store's. Default: the shop's own default store. One store per request.
Example: 00001
depthintegerdefault:3Levels to return, 1 to 6 (6 is the whole tree).
Example: 2
Notes
METRO / Makro. METRO / Makro is METRO AG's cash-and-carry wholesaler for restaurants, hotels, caterers and independent retailers. Its national online shops (METRO in most countries, Makro in the Netherlands, Spain, Poland, Czechia and Portugal) list food, drinks, kitchen equipment and non-food articles in packs, with net and gross prices per store. Scavio reads the public shop data on request. METRO publishes no public developer API for this data; 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. depth sets how many levels come back: 1 to 6, default 3 (6 is the whole tree, about 200 KB in nl). count is the number of top-level categories, node_count the number of categories returned at every level.
country is required: one of 19 national shops. Prices are shown to visitors in nl, es, bg, hu, kz, md, pl, ro, rs and ua, each in its own currency (EUR in nl, es and bg; HUF, KZT, MDL, PLN, RON, RSD, UAH); fr shows prices for non-food articles only (food prices are for logged-in customers, price_hidden_reason login_required_food). de, at, hr, cz, it, pt, sk and tr show prices to logged-in business customers only: their answers carry the full catalog (names, brands, EANs, specs, categories, stock status, stores) with every price null, price_visible false and price_hidden_reason login_required. Names come in the market's language as the shop writes them.
| Endpoint | What it returns | Credits per call |
|---|---|---|
search | Keyword search in one national shop at the store you choose: 24 products a page with every pack's net and gross price, VAT, promotions and stock status, plus brand, diet and certificate counts | 1 |
product | One article in full by article id or link: every variant and pack with its EAN, price, quantity tiers, deposit and stock status, plus specs, ingredients, allergens and documents | 1 |
category | One category's products by path or link, priced at the store you choose, with brand, promotion and own-brand filters, price sort and paging | 1 |
categories | The shop's category tree for one market and store, with the path category takes, 1 to 6 levels deep | 1 |
deals | The articles on promotion at one store, with each pack's promotion, dates, strike-through price and quantity tiers | 1 |
stores | Every store of one market's shop with store number, city, business phone and email, opening hours and store page | 1 |
store | One store by number: name, street address, time zone, business contacts and opening hours | 1 |
recommendations | The shop's frequently bought together articles for one article at one store (up to 6), each with its packs and prices | 1 |
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=120)
d = client.metro.categories(country="nl", depth=2)["data"]
for top in d["categories"]:
print(top["name"], top["path"])
for c in top["children"]:
print(" ", c["name"], c["path"])Response