Dia supermarket prices for any Spanish postal code, one API
- endpoints
- 6
- credits per call
- 0–1
The Dia Spain API returns the Dia supermarket online shop (dia.es) as JSON in six actions: search, product/detail, category, categories, deals and store/lookup.
| title | price | brand | brand_type |
|---|---|---|---|
| Leche semidesnatada Dia Láctea pack 6 x 1 L | 4.98 EUR | Dia Láctea | D |
| Leche entera Dia Láctea pack 6 x 1 L | 5.76 EUR | Dia Láctea | D |
| Leche semidesnatada sin lactosa Dia Láctea pack 6 x 1 L | 5.64 EUR | Dia Láctea | D |
≈ 1 credit per call≈ $1/1,000 calls1,000 free credits, no card
Get a free API keyRun the call yourself, on the real endpoint
Change a parameter and press Try it. The response on the right is what your code will receive.
Dia Spain API
5 of 6 endpoints, ready to run
Milk at the Dia store that serves Madrid 28001
// Press "Try it" and this pane shows exactly what the // live site returned this second — including an empty // result, if that is the truth. No key, no account.
What Dia Spain endpoints does ReefAPI ship?
6 live read endpoints. Read-only data API: no writes, no account actions, no dashboard access on the target site.
search
1 crSearch Dia Spain's online supermarket (www.dia.es) by keyword for a Spanish postal code.
- required
- query
- optional
- postal_code, page, page_size, sort, brand, own_brand, filters, max_rotations
product/detail
1 crThe full Dia product sheet by product_id (or product URL) for a Spanish postal code.
- required
- product_id
- optional
- postal_code, max_rotations
category
1 crProducts of one Dia category (ids from categories, 20 per page as on www.dia.es) for a Spanis…
- required
- category_id
- optional
- postal_code, page, sort, max_rotations
categories
1 crDia's full online category tree.
- required
- —
- optional
- max_rotations
deals
1 crThe products on offer ('Ofertas') in one Dia department for a Spanish postal code, 24 per pag…
- required
- category_id
- optional
- postal_code, page, max_rotations
store/lookup
0 crCheck whether Dia's online shop delivers to a Spanish postal code and which Dia store serves it.
- required
- postal_code
- optional
- max_rotations
Every parameter, every allowed value →
Missing a Dia Spain endpoint, or need a source we don't have yet?Contact us real people · same-day reply.How the Dia Spain API works
Dia Spain is a normal ReefAPI surface — the same four rules that hold for every other engine on the key.
No OAuth app, no request signing, no per-site account. One key covers all 799 engines.
Every route is a POST with a JSON body. Parameters are validated against the published schema before anything is charged.
Credits, not seats. Failed and blocked calls are never charged, and nothing is cached: every call reads the source live.
One envelope everywhere. meta carries latency_ms, record_count and the endpoint that answered.
From a search to the price in another city
Search Dia for one postal code, then open the same product for another one. Every answer names the Dia store that served it in area.store_id.
400 products in Madrid on 3 December 2026, 30 per page, each with product_id, price and price per litre.
The same Batido de cacao Dia Láctea in Barcelona: 1,95 € against 1,75 € in Madrid.
The Dia price, Club Dia price, price per litre and stock of each product for the postal code you choose.
curl -X POST https://api.reefapi.com/dia-es/v1/search \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"query":"leche"}'{
"ok": true,
"data": { … },
"meta": {
"api": "dia-es",
"endpoint": "search",
"mode": "live",
"latency_ms": …,
"record_count": …
},
"error": null
}The same Dia products in five Spanish cities
Most Dia prices are national, some are not, and stock is per store. product/detail for the same products and five postal codes on 3 December 2026:
| Product | 28001 Madrid | 08001 Barcelona | 46001 Valencia | 41001 Sevilla | 48001 Bilbao |
|---|---|---|---|---|---|
| Leche semidesnatada Dia Láctea pack 6 x 1 L | 4,98 € | 4,98 € | 4,98 € | 4,98 € | 4,98 € |
| Leche entera Dia Láctea 1 L | 0,96 € | 0,96 € | 0,96 € | 0,96 € | 0,96 € |
| Batido de cacao Dia Láctea 6 x 200 ml | 1,75 € | 1,95 € | 1,75 € | 1,75 € | 1,75 € |
| Batido de chocolate Dia Láctea 6 x 200 ml | 1,55 € | 1,75 € | 1,55 € | 1,55 € | 1,55 € |
| Leche condensada La Lechera 450 g (price / Club Dia) | 3,59 / 3,05 € | 3,59 / 3,05 € | 3,59 / 3,05 € | 3,59 / 3,05 € | 3,59 / 3,05 € |
| Leche entera Dia Láctea 1 L, units in stock | 3,729 | 955 | 692 | 1,373 | 455 |
Values from 3 December 2026. 11 of 13 products had one price in all five cities; two shakes cost 0,20 € more in Barcelona. Stock differed for all 13. Dia does not deliver online to the Canary Islands or Melilla; those postal codes return INVALID_PARAM.
Dia Spain coverage, measured
Every number below was read from live Dia answers on 2026-12-03.
Every postal code Dia delivers to online, answered by the Dia store that serves it (28001 Madrid: store 13835, 08001 Barcelona: 959, 46001 Valencia: 1029). Not served on 3 December 2026: the Canary Islands and Melilla; those postal codes return INVALID_PARAM. Ceuta and the Balearic Islands were served.
Stock always: units in stock differed for 13 of 13 products across five cities. Prices rarely: 2 of about 280 products cost more in Barcelona (Batido de cacao Dia Láctea 6 x 200 ml: 1,95 € against 1,75 € in Madrid). Range and offers too: 'leche' found 296 products in A Coruña and 405 in Barcelona; dairy offers were 15 in Madrid, 12 in Barcelona and 5 in A Coruña.
The shelf price, the Club Dia price for card holders when Dia prints one (La Lechera 450 g: 3,59 € or 3,05 € with Club Dia), the struck-through price of a promotion, and the price per kg, litre, dozen, unit or wash as Dia prints it ('0,83 €/LITRO').
12 of 12 products matched the price printed on dia.es; 37 of 37 search rows matched the product sheet on price, Club price and price per unit.
156 of 157 data calls succeeded on 3 December 2026 (the one failure was a category address we had mistyped). Median times: product/detail 1.8 s, search 2.0 s, category 2.1 s.
search returns 30 to 1,000 products in one call and is billed 1 credit per 100 rows returned (the default 30-row call costs 1). category: 20 per page. deals: 24 per page.
Dia publishes no EAN or barcode, so ean is always null; no ratings or reviews. Product names are in Spanish.
What people build with Dia Spain
The jobs this data is most often used for.
Grocery price-comparison apps put Dia next to Mercadona and Alcampo for the same postal code.
Shoppers' tools show the Club Dia price and the shelf price side by side.
Retail analysts track Dia's price per litre or kilo across private label and brands.
Category managers follow Dia's weekly offers per department and city.
endpoints
credits per call
What Dia Spain data costs
The cheapest call here is 0 credits, so $15/mo (Pro) buys 10,000 of them — $1.50 per 1,000 credits. Credits roll over and never expire, and failed or blocked calls are not charged.
- 1,000 free credits on signup, no card
- One key, all 799 APIs, one credit pool
- Failed and blocked calls are never charged
- Credits roll over and never expire
Call it in two lines
Sign up, get 1,000 credits and one key that works on every engine. Then this is the whole protocol.
curl -X POST https://api.reefapi.com/dia-es/v1/search \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"query":"leche"}'import os
import requests
REEF_KEY = os.environ["REEF_KEY"]
r = requests.post(
"https://api.reefapi.com/dia-es/v1/search",
headers={"x-api-key": REEF_KEY},
json={
"query": "leche"
},
timeout=90,
)
print(r.json()["data"])Have a question? We got answers.
The questions people actually ask before wiring up Dia Spain.
Do Dia prices change with the postal code?▾
Mostly not, but some do, and stock and range always do. On 3 December 2026, 2 of about 280 products cost more in Barcelona than in Madrid (Batido de cacao Dia Láctea 6 x 200 ml: 1,95 € against 1,75 €). The number of products found for 'leche' ran from 296 in A Coruña to 405 in Barcelona, and the dairy offers list had 15 products in Madrid, 12 in Barcelona and 5 in A Coruña. Pass postal_code on every call; area.store_id names the Dia store that answered.
What is the Club Dia price?▾
Dia prints a 'Precio CLUB Dia' for card holders on some products. The API returns the shelf price a shopper without the card pays in price, the Club price in member_price with member_program 'Club Dia', and the big number Dia prints in displayed_price. On 3 December 2026 13 of 15 dairy offers in Madrid had a Club price, for example La Lechera 450 g: 3,59 € or 3,05 € with Club Dia.
Is the price per kg or per litre included?▾
Yes, as Dia prints it: unit_price (0.83), unit_price_unit in Dia's own word (LITRO, KILO, DOCENA, UNIDAD, LAVADO) and unit_price_display ('0,83 €/LITRO'). When the product has a Club price, Dia's printed unit price belongs to the Club price, and unit_price_applies_to says so.
Does the API return stock?▾
Yes. stock_units is the number of units in stock at the Dia store that serves the postal code, with in_stock and availability. On 3 December 2026 Leche entera Dia Láctea 1 L had 3,729 units in Madrid, 955 in Barcelona, 692 in Valencia, 1,373 in Sevilla and 455 in Bilbao.
Does the API return the EAN barcode?▾
No. Dia publishes no EAN or barcode on its online shop: not in search, the product sheet, category pages or the offers list. ean is always null. To match Dia with other supermarkets, use the product name, brand and pack size.
How is the pack size returned?▾
Dia writes the pack size at the end of the product name. The API returns it in size ('pack 6 x 1 L', '450 g', '24 unidades', '1 kg aprox'), with size_value, size_unit and pack_units. It was found in 539 of 540 search rows on 3 December 2026. product/detail also returns the label's own net content ('6L').
How many products can one search return, and what does it cost?▾
30 by default, up to 1,000 in one call with page_size, and every further page with page. search is billed 1 credit per 100 products returned, so the default 30-row call costs 1 credit and a 400-row call 4. 'leche' had 400 products in Madrid on 3 December 2026; one call with page_size 1000 returned all 400. Dia's price sorts return a stricter match: 326 products for 'leche' sorted by price and 275 by price per unit.
Which filters work?▾
The ones Dia's search offers: one brand, Dia's own brands, and every filter listed in filters_available (lactose free, gluten free, organic, milk type and more). On 3 December 2026 'leche' had 400 products; Asturiana 35, Dia's own brands 137, lactose free 46. category returns 20 products a page, as on dia.es, and its filters come back as ready-made category addresses.
Which postal codes work?▾
Every Spanish postal code Dia delivers to online. Dia does not deliver online to the Canary Islands or Melilla, so those postal codes return INVALID_PARAM. store/lookup tells you before you search: 35001 Las Palmas returned delivers false, 46001 Valencia returned store 1029. Ceuta and the Balearic Islands were served on 3 December 2026.
What is the Dia Spain API?▾
Dia Spain API is a ReefAPI endpoint group for dia supermarket prices for any spanish postal code: shelf price, club dia price, price per kg or litre, pack size and stock. It returns live JSON through POST requests under /dia-es/v1.
Is the Dia Spain API free to try?▾
Yes. ReefAPI starts with 1,000 free credits, no card required. Dia Spain calls use the same shared credit balance as every other ReefAPI engine.
Do I need a Dia Spain login or account?▾
No login to Dia Spain is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.
How fresh is the Dia Spain data?▾
The page example is captured from a live search call, and production requests fetch live data through ReefAPI rather than a static sample.
How many credits does the Dia Spain API use?▾
Dia Spain actions currently cost 1 credit per successful call. Failed or blocked calls are free. All APIs draw from one credit pool.
391 E-commerce & Marketplaces APIs on the same key
One key, one credit pool, one response envelope. If you are pulling Dia Spain, you are one call away from the rest of the category — no second contract, no second integration.
Need something this API does not do?
Name the endpoint, the field, or a source we do not carry yet. We ship new APIs every week and you would be first to get the key. Real people read every message and reply the same day.
Try it on your own data before you pay anything
The call above is the real endpoint, not a recording. A free key gives you 1,000 credits, the other 798 APIs, and the same envelope everywhere.
Endpoints, parameters and credit costs on this page are read from the live catalog and cannot drift from what the API accepts. Field notes were captured on 2026-12-03.