Mercadona API — Real-Time Product & Price Data
The Mercadona API for developers: search products, look up barcodes, track price drops for any Spanish postal code. Clean JSON, 274 warehouses. Start free.
What Is the FlyByAPIs Mercadona API?
FlyByAPIs Mercadona API is a REST service that returns product and price data from Spain’s largest supermarket as clean, structured JSON. Search the catalog, look up any product by barcode (EAN), walk the category tree, and pull price drops, new arrivals and best sellers, all scoped to the exact warehouse that serves any Spanish postal code. Available on RapidAPI starting at $0/month with 100 free requests.
Mercadona Product & Price Data for Any Postal Code
Mercadona has no public API. We built one: FlyByAPIs Mercadona API offers 14 endpoints covering the full online catalog, with real prices for the shopper’s real store, barcode lookup on every product, and discovery feeds like price drops and best sellers. One GET request, clean JSON back.
274
Warehouses covered
14
Endpoints
3
Languages (es, en, ca)
Free
100 req/month
Here’s the part most people miss: Mercadona’s prices and assortment depend on the warehouse that serves each address. Scrape without resolving that and you get Valencia prices labelled as Madrid. Pass a postal code to any endpoint and we resolve it to the right warehouse for you, the same way mercadona.es does it, and every response says which warehouse answered.
100 requests/month free · Hard limit, no surprise overage
Endpoints
| Endpoint | Description |
|---|---|
/search | Free-text, typo-tolerant product search with EAN barcodes, brand and category facets on every result. |
/product-details | Full product sheet by product id or barcode: price, unit price, ingredients, allergens, origin, supplier, photos, VAT. |
/product-related-products | The products Mercadona suggests alongside a given one (cross-selling). |
/categories | The complete category tree: 26 top-level categories, 152 subcategories, optional level-2 groups. |
/category-products | Every product in a category, paginated. The exhaustive alternative to search. |
/brands | Every brand with product counts, globally or per warehouse. |
/brand-products | Every product of one brand, with price filters and sorting. |
/price-drops | Products currently discounted, with the saving in euros and percent. |
/new-products | New arrivals from the Novedades grid or every “Nuevo en…” section. |
/best-sellers | Products ranked by Mercadona’s own internal popularity score. |
/campaigns + /campaign-products | Home-page sections (banners, carousels) and the products inside each one. |
/warehouses + /resolve-warehouse | All 274 warehouses, and which one serves a given postal code. |
Full reference with response schemas and examples in the Mercadona API docs .
Code Examples (Python, JavaScript, cURL)
| |
| |
| |
Example JSON Response
| |
Features
- Postal-code resolution — Pass any Spanish 5-digit postal code and get the catalog of the warehouse that actually delivers there, across 7 online hubs and 267 stores. Every response echoes the warehouse that answered.
- Barcode (EAN) on every result — Search results carry the product’s barcode, and
/product-detailsaccepts an EAN directly. No second call, no extra charge. - Full product sheets — Ingredients, allergens, origin, supplier, storage instructions, alcohol %, VAT and photos in one request.
- Numbers you can sort — Prices come as real floats (
price_value,unit_price_value) next to the display strings. No parsing “4,98 €” ever again. - Price drops, computed honestly — We calculate discounts from the previous price we observed, not from Mercadona’s own flags, and return the saving in euros and percent.
- Discovery feeds — New arrivals, home-page campaigns and best sellers ranked by Mercadona’s internal popularity score.
- Three languages — Product and category names in Spanish, English or Catalan with one parameter.
- Structured JSON, always — Every endpoint returns the same clean envelope, with the filters it actually applied echoed back.
Use Cases
Supermarket Price Tracking
Track Mercadona prices, unit prices and price drops per region, every day. Build a price history, alert users when a wishlist product goes on sale, or feed a dashboard that shows how grocery prices move across Spain.
Barcode Scanner & Allergen Apps
Turn a scanned EAN into the full Mercadona product: price, ingredients, allergens and photos in one call. Build nutrition checkers, diet apps or shopping assistants that answer "can I eat this?" at the shelf.
Price Comparison Across Supermarkets
Match products across retailers by EAN and compare unit prices per litre or kilo. The numeric price fields make a price comparison engine a sort, not a parsing project. A solid data source for any "comparador de precios" product.
Market & Assortment Research
Walk the whole catalog by category or brand, see what launches each week and what sells best in each region. A live base de datos of Mercadona products for FMCG brands, analysts and agencies, without writing a scraper.
Free tier · No credit card · Cancel anytime
Why Developers Switch
Everyone who needs Mercadona data starts the same way: they find the undocumented endpoints behind tienda.mercadona.es and think the job is done. Then the gaps show up: no barcode lookup, no price-drop feed. And every answer is scoped to a warehouse you have to figure out yourself, so your “Madrid prices” are quietly Valencia prices until someone notices.
The alternatives have the same shape: a GitHub catalog dump that’s a static snapshot of one warehouse, or a no-code scraping tool that fights a JavaScript store page by rendering it. We took the other route: we did the warehouse-resolution, barcode-indexing and monitoring work once, and sell the result per request.
Why other approaches fail
Calling Mercadona's private endpoints directly
Undocumented and unsupported: no barcode lookup, no price-drop or best-seller feeds, and you must resolve postal codes to warehouses yourself. When something changes on Mercadona's side, your pipeline breaks silently and nobody tells you.
GitHub catalog dumps
Open datasets of the Mercadona catalog are great for a one-off analysis, but they're static snapshots of a single warehouse. No live prices, no per-postal-code assortment, no product lookups on demand.
No-code scraping tools
Point-and-click scrapers fight the store's JavaScript rendering page by page. Slow at catalog scale, fragile when the layout changes, and you still end up massaging CSV exports instead of consuming JSON.
Building and babysitting your own scraper
The code is the cheap part. The expensive part is the months of upkeep: warehouse mapping, schema changes, EAN indexing, monitoring. Engineering hours that cost more than any plan on this page.
To be fair: if all you need is a one-time snapshot of the catalog for an analysis, a free GitHub dump will do, and we’d tell you to use one. The moment you need live prices, barcodes, or more than one region, the free options stop being free. You pay in engineering time instead.
Free tier available · No credit card required
Get Started in Minutes
- Sign up on RapidAPI — it’s free.
- Subscribe to the Basic plan (no credit card required).
- Copy your API key from the RapidAPI dashboard.
- Make your first request using the code examples above.
Every week spent maintaining a homemade Mercadona scraper is a week of warehouse-mapping bugs and silent schema breaks instead of shipping your product. Start the FlyByAPIs Mercadona API on the free tier: 100 requests a month, hard limit, no surprise bill. Most developers have their first product search back in under 5 minutes.
Start Free, Scale as You Grow
All plans include full API access to every endpoint. No feature gating.
Need the Data Without the Hassle?
Custom extractions, enterprise plans, or just a quick question. We reply within 24 hours.
Message sent!
We'll get back to you within 24 hours. Check your inbox.
Frequently Asked Questions
Q Does Mercadona have a public API?
Q How do I get Mercadona prices for a specific postal code?
Q Can I look up a Mercadona product by barcode (EAN)?
Q How do I track Mercadona price drops with an API?
Q Can I get Mercadona product data in English or Catalan?
Q How much does the Mercadona API cost?
Q How fresh is the Mercadona data?
Q Can I build a supermarket price comparison app with this API?
Try It Free
Sign up, grab your API key, and make your first call in under 5 minutes.
Explore Our Other APIs
One RapidAPI account works across the whole FlyByAPIs suite. Every API starts free.