Reef AI: ask for any data. Try it
Looking for the overview — what this API returns, what it costs, and a call you can run without a key? See the Dia Spain API page →
E-commerce & Marketplaces

Dia Spain API & Scraper

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.

6 actionsLive JSON1,000 free credits$0.67–$1.50 / 1,000 creditsMCP-ready
Get a free keyOpen in playground

🤖 Using an AI assistant? Copy this link into ChatGPT / Claude / Cursor — it reads every endpoint and parameter instantly and tells you if this API fits your use case.

Every call takes a Spanish postal code and answers for the Dia store that serves it, named in area.store_id: on 3 December 2026 28001 Madrid was store 13835, 08001 Barcelona 959, 46001 Valencia 1029, 41001 Sevilla 2354 and 48001 Bilbao 10277. Each product comes with the shelf price, the Club Dia price when Dia prints one, the struck-through price of a promotion, the price per kg, litre, dozen, unit or wash exactly as Dia prints it (for example 0,83 €/LITRO), the pack size from the product name (pack 6 x 1 L, 450 g, 24 unidades), the units in stock at the serving store, brand, category and image. search returns up to 1,000 products per call with Dia's own filters and its three sort orders, billed 1 credit per 100 products returned; product/detail adds ingredients, the nutrition table, storage instructions and the manufacturer. Dia does not deliver online to the Canary Islands or Melilla, so those postal codes return INVALID_PARAM. In a live run on 3 December 2026, 156 of 157 data calls succeeded (the one failure was a category address we had mistyped), 37 of 37 search rows matched the product sheet on price and unit price, and 12 of 12 products matched the price printed on dia.es. Dia publishes no barcode (EAN). No Dia account and one ReefAPI key.

Reference

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:

Product28001 Madrid08001 Barcelona46001 Valencia41001 Sevilla48001 Bilbao
Leche semidesnatada Dia Láctea pack 6 x 1 L4,98 €4,98 €4,98 €4,98 €4,98 €
Leche entera Dia Láctea 1 L0,96 €0,96 €0,96 €0,96 €0,96 €
Batido de cacao Dia Láctea 6 x 200 ml1,75 €1,95 €1,75 €1,75 €1,75 €
Batido de chocolate Dia Láctea 6 x 200 ml1,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 stock3,7299556921,373455

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.

Live example

Real request and response JSON

Captured from the indexed primary action, search, on .

Captured request
{
  "method": "POST",
  "url": "https://api.reefapi.com/dia-es/v1/search",
  "headers": {
    "x-api-key": "$REEF_KEY",
    "content-type": "application/json"
  },
  "body": {
    "query": "leche"
  }
}
Captured response
{
  "ok": true,
  "meta": {
    "api": "dia-es",
    "endpoint": "search",
    "mode": "live",
    "latency_ms": 1479.5,
    "record_count": 30,
    "cache_hit": false
  },
  "data": {
    "results": [
      {
        "product_id": "504P6",
        "title": "Leche semidesnatada Dia Láctea pack 6 x 1 L",
        "brand": "Dia Láctea",
        "own_brand": true,
        "brand_type": "D",
        "ean": null,
        "category": {
          "id": null,
          "name": "Leche",
          "level": 1
        },
        "department": "Huevos, leche y mantequilla",
        "category_slug": "leche",
        "url": "https://www.dia.es/huevos-leche-y-mantequilla/leche/p/504P6",
        "image": "https://www.dia.es/product_images/504P6/504P6_ISO_0_ES.jpg",
        "price": 4.98,
        "price_display": "4,98 €",
        "currency": "EUR",
        "original_price": null,
        "original_price_display": null,
        "discount_percent": null,
        "save_amount": null,
        "on_offer": false,
        "member_price": null,
        "member_price_display": null,
        "member_discount_percent": null,
        "member_program": null,
        "member_unit_price": null,
        "source_discount_percent": null,
        "displayed_price": 4.98,
        "displayed_price_label": null,
        "strikethrough_price": 4.98,
        "unit_price": 0.83,
        "unit_price_unit": "LITRO",
        "unit_price_measure": "litre",
        "unit_price_display": "0,83 €/LITRO",
        "unit_price_applies_to": "price",
        "size": "pack 6 x 1 L",
        "size_value": 1,
        "size_unit": "L",
        "pack_units": 6,
        "size_is_approximate": false,
        "stock_units": 672,
        "in_stock": true,
        "availability": "in_stock",
        "badge": "Mejor valorado",
        "badge_code": "4",
        "headband": null,
        "labels": [],
        "promotions": [],
        "expiration_days": null,
        "rating": null,
        "review_count": null,
        "sponsored": false
      },
      {
        "product_id": "608P6",
        "title": "Leche entera Dia Láctea pack 6 x 1 L",
        "brand": "Dia Láctea",
        "own_brand": true,
        "brand_type": "D",
        "ean": null,
        "category": {
          "id": null,
          "name": "Leche",
          "level": 1
        },
        "department": "Huevos, leche y mantequilla",
        "category_slug": "leche",
        "url": "https://www.dia.es/huevos-leche-y-mantequilla/leche/p/608P6",
        "image": "https://www.dia.es/product_images/608P6/608P6_ISO_0_ES.jpg",
        "price": 5.76,
        "price_display": "5,76 €",
        "currency": "EUR",
        "original_price": null,
        "original_price_display": null,
        "discount_percent": null,
        "save_amount": null,
        "on_offer": false,
        "member_price": null,
        "member_price_display": null,
        "member_discount_percent": null,
        "member_program": null,
        "member_unit_price": null,
        "source_discount_percent": null,
        "displayed_price": 5.76,
        "displayed_price_label": null,
        "strikethrough_price": 5.76,
        "unit_price": 0.96,
        "unit_price_unit": "LITRO",
        "unit_price_measure": "litre",
        "unit_price_display": "0,96 €/LITRO",
        "unit_price_applies_to": "price",
        "size": "pack 6 x 1 L",
        "size_value": 1,
        "size_unit": "L",
        "pack_units": 6,
        "size_is_approximate": false,
        "stock_units": 620,
        "in_stock": true,
        "availability": "in_stock",
        "badge": "Mejor valorado",
        "badge_code": "4",
        "headband": null,
        "labels": [],
        "promotions": [],
        "expiration_days": null,
        "rating": null,
        "review_count": null,
        "sponsored": false
      },
      {
        "product_id": "130063P6",
        "title": "Leche semidesnatada sin lactosa Dia Láctea pack 6 x 1 L",
        "brand": "Dia Láctea",
        "own_brand": true,
        "brand_type": "D",
        "ean": null,
        "category": {
          "id": null,
          "name": "Leche sin lactosa y enriquecidas",
          "level": 1
        },
        "department": "Huevos, leche y mantequilla",
        "category_slug": "leche-sin-lactosa-y-enriquecidas",
        "url": "https://www.dia.es/huevos-leche-y-mantequilla/leche-sin-lactosa-y-enriquecidas/p/130063P6",
        "image": "https://www.dia.es/product_images/130063P6/130063P6_ISO_0_ES.jpg",
        "price": 5.64,
        "price_display": "5,64 €",
        "currency": "EUR",
        "original_price": null,
        "original_price_display": null,
        "discount_percent": null,
        "save_amount": null,
        "on_offer": false,
        "member_price": null,
        "member_price_display": null,
        "member_discount_percent": null,
        "member_program": null,
        "member_unit_price": null,
        "source_discount_percent": null,
        "displayed_price": 5.64,
        "displayed_price_label": null,
        "strikethrough_price": 5.64,
        "unit_price": 0.94,
        "unit_price_unit": "LITRO",
        "unit_price_measure": "litre",
        "unit_price_display": "0,94 €/LITRO",
        "unit_price_applies_to": "price",
        "size": "pack 6 x 1 L",
        "size_value": 1,
        "size_unit": "L",
        "pack_units": 6,
        "size_is_approximate": false,
        "stock_units": 216,
        "in_stock": true,
        "availability": "in_stock",
        "badge": "Mejor valorado",
        "badge_code": "4",
        "headband": null,
        "labels": [
          "Sin lactosa"
        ],
        "promotions": [],
        "expiration_days": null,
        "rating": null,
        "review_count": null,
        "sponsored": false
      }
    ],
    "count": 30,
    "total_results": 400,
    "page": 1,
    "page_size": 30,
    "page_count": 14,
    "sort_applied": "relevance",
    "query": "leche",
    "filters_applied": [],
    "filters_available": [
      {
        "field": "bio",
        "name": "BIO",
        "values": [
          {
            "value": "[trimmed-depth]",
            "count": "[trimmed-depth]",
            "filter": "[trimmed-depth]",
            "url": "[trimmed-depth]"
          }
        ]
      },
      {
        "field": "brand_description",
        "name": "Marca",
        "values": [
          {
            "value": "[trimmed-depth]",
            "count": "[trimmed-depth]",
            "filter": "[trimmed-depth]",
            "url": "[trimmed-depth]"
          },
          {
            "value": "[trimmed-depth]",
            "count": "[trimmed-depth]",
            "filter": "[trimmed-depth]",
            "url": "[trimmed-depth]"
          },
          {
            "value": "[trimmed-depth]",
            "count": "[trimmed-depth]",
            "filter": "[trimmed-depth]",
            "url": "[trimmed-depth]"
          }
        ]
      },
      {
        "field": "caffeine_free",
        "name": "Sin cafeina",
        "values": [
          {
            "value": "[trimmed-depth]",
            "count": "[trimmed-depth]",
            "filter": "[trimmed-depth]",
            "url": "[trimmed-depth]"
          }
        ]
      }
    ],
    "suggestions": [
      "leche entera",
      "leche sin lactosa",
      "leche en polvo"
    ],
    "area": {
      "postal_code": "28041",
      "store_id": "13835",
      "source": "default"
    }
  }
}
Actions

What the Dia Spain API does

ActionDescriptionConcrete use caseKey params
searchSearch Dia Spain's online supermarket (www.dia.es) by keyword for a Spanish postal code. Each product comes with its shelf price, the Club Dia price and promotion when there is one, the unit price per kg / litre / dozen as Dia prints it, the pack size, units in stock at the serving store, brand and category. Up to 1 000 products per call; filter by brand, Dia's own brands or any of the shop's filters; sort by price or unit price.Pricing teams call search to search Dia Spain's online supermarket (www.dia.es) by keyword for a Spanish postal code.query, postal_code, page, page_size, sort, ...
product/detailThe full Dia product sheet by `product_id` (or product URL) for a Spanish postal code: title, brand, every image, shelf price, Club Dia price, promotions, unit price, pack size and net content, units in stock, breadcrumb, description, ingredients, allergen labels, nutrition table per 100 g/ml, storage and preparation instructions and the manufacturer.Marketplace operators call product/detail to get the full Dia product sheet by `product_id` (or product URL) for a Spanish postal code.product_id, postal_code, max_rotations
categoryProducts of one Dia category (ids from `categories`, 20 per page as on www.dia.es) for a Spanish postal code, sorted like the shop (relevance, price, unit price). Same rows as search, plus the category's filters with ready-made filtered category URLs.Catalog enrichment teams call category to get products of one Dia category (ids from `categories`, 20 per page as on www.dia.es) for a Span….category_id, postal_code, page, sort, max_rotations
categoriesDia's full online category tree — every department and its categories, with the ids `category` and `deals` take.Retail analysts call categories to get dia's full online category tree.max_rotations
dealsThe products on offer ('Ofertas') in one Dia department for a Spanish postal code, 24 per page as on www.dia.es: shelf price, Club Dia price, struck-through price, discount and the promotion text. Offers differ by area.Pricing teams call deals to get the products on offer ('Ofertas') in one Dia department for a Spanish postal code, 24 per pag….category_id, postal_code, page, max_rotations
store/lookupCheck whether Dia's online shop delivers to a Spanish postal code and which Dia store serves it.Marketplace operators call store/lookup to check whether Dia's online shop delivers to a Spanish postal code and which Dia store serves it..postal_code, max_rotations
Code samples

Call search from your stack

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"}'
MCP one-liner
Ask your MCP-connected assistant: call reefapi.dia-es.search with {"query":"leche"}.
Use cases

Who uses this API and why

  • 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.
  • Delivery and stock checkers see the units in stock at the Dia store that serves an address.
FAQ

Questions developers ask before integrating

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.

docs / dia-es

Dia Spain

Dia supermarket prices for any Spanish postal code: shelf price, Club Dia price, price per kg or litre, pack size and stock.

base /dia-es/v16 endpoints
post/dia-es/v1/product/detail1 credit

The full Dia product sheet by `product_id` (or product URL) for a Spanish postal code: title, brand, every image, shelf price, Club Dia price, promotions, unit price, pack size and net content, units in stock, breadcrumb, description, ingredients, allergen labels, nutrition table per 100 g/ml, storage and preparation instructions and the manufacturer.

ParameterAllowed / rangeDescription
product_idrequired—Dia product id (`product_id` of any search row, e.g. '608' or '504P6' for a pack), or a www.dia.es product URL (…/p/504P6).
postal_codeoptional—Spanish postal code of the delivery address. Stock, assortment, offers and some prices follow the Dia store that serves it. A postal code Dia does not deliver to (e.g. the Canary Islands, Melilla) is rejected with INVALID_PARAM. Default: the shop's own default area, 28041 Madrid.
max_rotations = 3optional1–5Advanced: how many times to retry a difficult request (1-5, default 3).
Try in playground →
post/dia-es/v1/category1 credit

Products of one Dia category (ids from `categories`, 20 per page as on www.dia.es) for a Spanish postal code, sorted like the shop (relevance, price, unit price). Same rows as search, plus the category's filters with ready-made filtered category URLs.

ParameterAllowed / rangeDescription
category_idrequired—A category id from `categories` (second level, e.g. L2051 = Leche), a www.dia.es category URL, or a filtered category URL from `filters_available[].values[].url` (e.g. only one brand inside the category).
postal_codeoptional—Spanish postal code of the delivery address. Stock, assortment, offers and some prices follow the Dia store that serves it. A postal code Dia does not deliver to (e.g. the Canary Islands, Melilla) is rejected with INVALID_PARAM. Default: the shop's own default area, 28041 Madrid.
page = 1optional1–1000Result page, 1-based. A page past the last one is NOT_FOUND.
sort = relevanceoptionalrelevance · price_asc · unit_price_ascOrder of the rows — the three orders www.dia.es offers. Note: Dia's price orders return a narrower, stricter match than relevance (measured: 'leche' 400 → 326 → 275 rows).
max_rotations = 3optional1–5Advanced: how many times to retry a difficult request (1-5, default 3).
Try in playground →
post/dia-es/v1/categories1 credit

Dia's full online category tree — every department and its categories, with the ids `category` and `deals` take.

ParameterAllowed / rangeDescription
max_rotations = 3optional1–5Advanced: how many times to retry a difficult request (1-5, default 3).
Try in playground →
post/dia-es/v1/deals1 credit

The products on offer ('Ofertas') in one Dia department for a Spanish postal code, 24 per page as on www.dia.es: shelf price, Club Dia price, struck-through price, discount and the promotion text. Offers differ by area.

ParameterAllowed / rangeDescription
category_idrequired—A department id from `categories` (first level, e.g. L108 = Huevos, leche y mantequilla). Returns that department's offers, 24 per page.
postal_codeoptional—Spanish postal code of the delivery address. Stock, assortment, offers and some prices follow the Dia store that serves it. A postal code Dia does not deliver to (e.g. the Canary Islands, Melilla) is rejected with INVALID_PARAM. Default: the shop's own default area, 28041 Madrid.
page = 1optional1–1000Result page, 1-based. A page past the last one is NOT_FOUND.
max_rotations = 3optional1–5Advanced: how many times to retry a difficult request (1-5, default 3).
Try in playground →
post/dia-es/v1/store/lookupfree

Check whether Dia's online shop delivers to a Spanish postal code and which Dia store serves it.

ParameterAllowed / rangeDescription
postal_coderequired—Spanish 5-digit postal code.
max_rotations = 3optional1–5Advanced: how many times to retry a difficult request (1-5, default 3).
Try in playground →
Built for volume
5M+ requests a day

Measured at 60 requests a second across the fleet, with no central bottleneck. Volume pricing is on request, and per-key limits are raised for high-volume accounts.

Missing a source?
We build it

Tell us a site we do not cover yet and it becomes an engine. A customer asked for bestprice.gr on a Sunday and it was in the catalog the next day.

Support
2 minute median reply

Median time from a question in the live chat to the first answer, measured across every answered conversation. Setup help included, no support tier to buy.

One key, one balance
Every API included

No per-site plans and no separate subscriptions. One key and one credit pool across the whole catalog, so adding a source costs nothing up front.

Planning something large? Tell us the volume and the sources and we will come back with what it costs and what we would have to build.