Dia ES - Product prices
Pricing
from $2.00 / 1,000 results
Dia ES - Product prices
Scrapes products and prices from the Dia online supermarket (dia.es) by search term or category.
Pricing
from $2.00 / 1,000 results
Rating
0.0
(0)
Developer
Giacomo Pigani
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Dia Scraper
Scrapes products and prices from Dia's online supermarket. You can search the same way as on the website, or download every product in a category.
Input
Set a search term or a category, not both: like on the website, Dia's search can't be limited to a category.
| Parameter | Options | Description |
|---|---|---|
searchTerm | (optional) Text to search for | One search, like the search box on the website. Returns the same products, in the same order, as the website. |
category | (optional) Category code, e.g. L105, or a category page URL | Every product in this category or subcategory. In a URL only the code after /c/ matters, so https://www.dia.es/frutas/c/L105 and https://www.dia.es/anything/c/L105 are the same category. |
Example using a search query:
{"searchTerm": "leche condensada"}
Example using a category (a pasted category URL works too):
{"category": "https://www.dia.es/cervezas-vinos-y-licores/vino-tinto/c/L2120"}
Categories
The top-level categories and their codes. A subcategory's code is the one after /c/ in its URL
on the website, e.g. L2120 in /cervezas-vinos-y-licores/vino-tinto/c/L2120.
| Code | Category |
|---|---|
| L124 | Navidad (seasonal) |
| L128 | Novedades y recomendados |
| L105 | Frutas |
| L104 | Verduras |
| L102 | Carnes |
| L103 | Pescados y mariscos |
| L134 | Charcutería |
| L101 | Quesos |
| L108 | Huevos, leche y mantequilla |
| L112 | Panadería |
| L113 | Yogures y postres |
| L119 | Congelados y helados |
| L106 | Arroz, pastas y legumbres |
| L107 | Aceites, salsas y especias |
| L114 | Conservas, caldos y cremas |
| L109 | Café, cacao e infusiones |
| L132 | Bollería, repostería y azúcar |
| L111 | Galletas, cereales y mermeladas |
| L110 | Chocolates y golosinas |
| L116 | Platos preparados y pizzas |
| L115 | Aperitivos y frutos secos |
| L117 | Agua y refrescos |
| L127 | Zumos y smoothies |
| L118 | Cervezas, vinos y licores |
| L122 | Limpieza y hogar |
| L129 | Higiene y cuidado del cuerpo |
| L130 | Cabello y perfumería |
| L131 | Salud y parafarmacia |
| L120 | Infantil |
| L123 | Mascotas |
Output
- Dataset: one item per product, as Dia returns it, with the page and image links made
absolute. Search results also carry
search_term. A product appears only once per run, even when it is in more than one subcategory. FAILED_REQUESTS(key-value store, only when some requests failed): the URL and error of each failed page. If any page failed, the run fails rather than returning an incomplete dataset as a success.
Prices are the ones the website shows before you choose a delivery address.
Product fields
Values come as Dia sends them. Fields inside an object are written with a dot, e.g.
prices.price. Dia sends a few fields only in search results or only in category listings.
| Field | Description |
|---|---|
sku_id | Product code, as in the product page URL. |
display_name | Name with size, e.g. Leche condensada Dia Láctea 1 Kg. |
brand | Brand. Missing for loose produce. |
url, image | Product page and main image. |
prices.price | Price in EUR. |
prices.price_per_unit, prices.measure_unit | Unit price in EUR, and its unit, e.g. KILO, LITRO, UNIDAD. |
prices.strikethrough_price, prices.discount_percentage | Price before the discount (the same as price when there is none) and the discount in percent. |
prices.is_promo_price, prices.is_club_price | The price is a promotion; the price is for Club Dia members only. |
promotions, headband_promotion | Active promotions, and the promotion banner on the product card. |
stamp_description | Badge on the product card, e.g. Mejor valorado, Novedad. |
units_in_stock | Units in stock. |
weight_in_grams, average_weight | Category rows, products sold by weight: grams per unit and average weight of one piece. |
l1_category_description, l2_category_description | Search rows only: category and subcategory names. |
dia_brand, brand_type | Search rows only: Dia's own brand, and the brand type code (D = Dia). |
allergens, product_info | Search rows only: dietary labels, e.g. Sin lactosa. |
search_term | Search rows only: the search that returned the product. |