Discover/dia.es API
live

dia.es APIdia.es

Access Dia.es supermarket catalog via API: search products, browse categories, retrieve nutritional info, and fetch current discounts. 6 endpoints.

Endpoints
6
Updated
14d ago
Try it

No input parameters required.

api.parse.bot/scraper/a1d71c17-a0c7-43ac-8b5e-ed231981ce90/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/a1d71c17-a0c7-43ac-8b5e-ed231981ce90/get_categories' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

Get all top-level product categories from the Dia supermarket navigation menu. Returns approximately 30 categories with their IDs and URL slugs.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "categories": "array of category objects each containing id, name, slug, and link"
  },
  "sample": {
    "data": {
      "categories": [
        {
          "id": "L128",
          "link": "/novedades-y-recomendados/c/L128",
          "name": "Novedades y recomendados",
          "slug": "novedades-y-recomendados"
        },
        {
          "id": "L105",
          "link": "/frutas/c/L105",
          "name": "Frutas",
          "slug": "frutas"
        }
      ]
    },
    "status": "success"
  }
}

About the dia.es API

The Dia.es API provides 6 endpoints covering the full product catalog of the Día supermarket chain in Spain, from category navigation to individual product nutritional data. The get_product_detail endpoint returns ingredients, nutritional information, storage instructions, and pricing for any product SKU. You can combine search_products with pagination and facets to build keyword-driven product searches, or walk the category tree with get_categories and get_subcategories.

Category and Product Browsing

The get_categories endpoint returns approximately 30 top-level categories from the Día navigation menu, each with an id, name, slug, and link. Pass any returned id (e.g. L108) to get_subcategories to retrieve child categories, which include a Todo entry representing the full parent scope. Both category and subcategory IDs can then be passed to get_products_by_category, which returns paginated product listings. Each product in the plp_items array carries sku_id, display_name, brand, prices, units_in_stock, image, and url. The pagination object provides page_number, page_size, and total_pages.

Product Search and Detail

search_products accepts a query string — single words like leche or multi-word phrases like aceite oliva — and returns the same product shape as category browsing, plus a facets array you can inspect to understand available filter dimensions. For full product data, get_product_detail takes a product_id (SKU such as 504P6 or 203958) and returns a product object with nested fields: primary_info, prices, ingredients, nutritional_info, images, instructions, product_info, and sku_id. This is the only endpoint that exposes ingredient lists and nutritional panels.

Offers and Discounts

get_offers returns currently discounted products grouped by category. Each entry in plp_items contains a category_id, category_name, link, and an items array of discounted products with discount percentages and club pricing. The pagination model for this endpoint uses token-based cursors exposed as current_page and next_page fields, even when an integer page parameter is supplied — consecutive integer pages may return overlapping results. The total_items field gives the count of all discounted products currently available.

Common use cases
  • Build a grocery price tracker monitoring prices fields across product SKUs over time.
  • Aggregate nutritional information from get_product_detail to compare products within a category.
  • Scrape current promotions via get_offers to surface discount percentages and club pricing in a deals app.
  • Construct a category-tree navigation by chaining get_categories and get_subcategories calls.
  • Power a recipe ingredient cost estimator by searching search_products with ingredient names.
  • Monitor units_in_stock from get_products_by_category to detect low-stock items in a specific category.
  • Index the Día catalog for a comparison shopping tool by iterating categories and collecting sku_id and brand fields.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Día have an official public developer API?+
Día does not publish a public developer API for dia.es. There is no documented REST or GraphQL API available to third-party developers on their website.
What does get_product_detail return beyond what category browsing shows?+
get_product_detail is the only endpoint that returns ingredients, nutritional_info, and instructions. Category and search endpoints return a shorter product shape — sku_id, display_name, brand, prices, units_in_stock, image, and url — without ingredient lists or nutrition panels. You need the SKU from one of those endpoints to call get_product_detail.
Are there known quirks with the get_offers pagination?+
Yes. The get_offers endpoint uses token-based cursors internally, exposed as current_page and next_page fields in the pagination object. Passing sequential integer values to the page parameter may return overlapping sets of results. Use the next_page cursor token rather than incrementing integers to page through offers reliably.
Does the API cover product reviews or customer ratings?+
Not currently. The API covers product listings, category navigation, search results, nutritional details, and active discounts, but does not expose user reviews or ratings. You can fork this API on Parse and revise it to add an endpoint targeting product review data.
Can I filter search results by facets returned in search_products?+
The search_products endpoint returns a facets array alongside results, which describes the filter dimensions available for a given query. The current endpoint does not accept facet filter parameters as inputs. You can fork the API on Parse and revise it to add facet-based filtering parameters to the search endpoint.
Page content last updated . Spec covers 6 endpoints from dia.es.
Related APIs in Food DiningSee all →
kroger.com API
Find Kroger grocery store locations across the US organized by state, city, and search parameters. Get detailed store information including directories and specifics for any Kroger location in your area.
coupons.com API
Search and discover coupons, printable offers, and store-specific deals from Coupons.com. Browse top featured offers, find deals across thousands of retailers, and access aggregated coupon data including discount amounts, usage conditions, and expiration details.
vivino.com API
Search and discover wines across thousands of options while accessing detailed information like user reviews, pricing, winery profiles, and food pairing recommendations. Explore grape varieties, compare wines side-by-side, and find the perfect bottle based on ratings and availability.
winecompanion.com.au API
Browse and explore Australian wineries from Wine Companion's comprehensive directory, including contact details, ratings, and regional locations. Search and filter by state, region, or facilities to find wineries across Australia.
liquor.com API
Find and browse thousands of cocktail recipes with ratings and user reviews, search drinks by ingredient or category, and read curated articles about spirits and mixology. Get detailed recipe instructions, comments from other users, and expert content all in one place.
bigbasket.com API
Browse and search BigBasket's online grocery catalog. Retrieve product details, pricing, stock availability, category trees, search suggestions, homepage promotions, and delivery coverage — all in one API.
opentable.com API
Search for restaurants across the US with ratings, reviews, photos, and pricing information, plus get real-time availability and autocomplete suggestions as you type. Check reservation openings and explore detailed restaurant features to find and book your perfect dining experience.
sevenrooms.com API
Search for available restaurant tables across any SevenRooms venue, view venue details and open dates, and complete reservations all in one place. Whether you're planning ahead or booking last-minute, you can check real-time availability and secure your table at thousands of restaurants on the SevenRooms platform.