# dm Scraper — German & Austrian Drugstore Products & Prices (`studio-amba/dm-scraper`) Actor

Scrape products from dm.de and dm.at via their internal API. Europe's largest drugstore chain — beauty, health, baby, and household products from 2,000+ stores.

- **URL**: https://apify.com/studio-amba/dm-scraper.md
- **Developed by:** [Jelle Desramaults](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## dm Scraper

Scrape products, prices, ratings, and availability from dm.de — Germany's largest drugstore chain with 15,000+ beauty, health, and household products.

### What is dm Scraper?

dm-drogerie markt is Germany's biggest drugstore retailer, with over 4,000 stores across Europe and a massive online catalog covering beauty, skincare, baby care, health supplements, household cleaning, and personal hygiene. This scraper taps directly into dm's product search API for blazing-fast data extraction without browser overhead.

If you need reliable drugstore product data at scale — whether for competitive pricing analysis, beauty trend research, or building a product comparison tool — this actor delivers clean, structured results in seconds.

**Common use cases:**

- **Beauty & skincare market research** — Track product launches, pricing trends, and category growth across dm's extensive beauty range
- **Price benchmarking** — Compare dm's private-label products (Balea, alverde, Denkmit) against branded competitors
- **Competitor monitoring** — Keep tabs on dm's pricing and promotions relative to Rossmann, Muller, or online pharmacies
- **Product catalog enrichment** — Feed dm product data (EAN codes, images, ratings) into your own e-commerce or comparison platform
- **FMCG analytics** — Study fast-moving consumer goods trends in the DACH region (Germany and Austria)

### What data does dm Scraper extract?

- 🧴 **Product name & brand** — Including dm's popular private labels (Balea, alverde, Denkmit, babylove)
- 💰 **Price & price-per-unit** — Current selling price plus per-unit cost for easy comparison across pack sizes
- ⭐ **Customer ratings** — Average rating score and total review count
- 📦 **Product identifiers** — EAN/GTIN barcode and dm article number (DAN)
- 🗂️ **Category hierarchy** — Full category path (e.g., Haar > Shampoo > Trockenes Haar)
- 🖼️ **Product images** — Direct image URLs ready for download
- 🌍 **Country support** — Scrape from dm Germany (de) or dm Austria (at)

### How to scrape dm.de

The scraper offers two approaches:

#### Search by keyword
Enter any search term in German — "shampoo", "zahnpasta" (toothpaste), "windeln" (diapers), "sonnenschutz" (sunscreen). The actor searches dm's product API just like the website's search bar.

#### Browse by category URL
Paste a dm.de category URL like `https://www.dm.de/haar/shampoo` to scrape all products in that category.

#### Input parameters

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQuery` | String | `shampoo` | Search keyword (e.g., "zahnpasta") |
| `categoryUrl` | String | — | dm.de category URL to scrape |
| `maxResults` | Integer | 100 | Maximum products to return (up to 50,000) |
| `country` | String | `de` | `de` for Germany, `at` for Austria |
| `proxyConfiguration` | Object | — | Proxy settings (usually not needed) |

**Tip:** dm's API is generous with data. You can pull thousands of products per minute without proxies.

### Output

```json
{
    "name": "Balea MED Ultra Sensitive Duschgel",
    "brand": "Balea MED",
    "price": 1.75,
    "currency": "EUR",
    "ean": "4066447489736",
    "productId": "595048",
    "pricePerUnit": "0,58 EUR / 100 ml",
    "rating": 4.8,
    "reviewCount": 412,
    "url": "https://www.dm.de/balea-med-ultra-sensitive-duschgel-p4066447489736.html",
    "imageUrl": "https://media.dm-static.com/images/f_auto,q_auto/v1/products/balea-med-duschgel-300ml",
    "categories": ["Koerperpflege", "Duschgel"],
    "category": "Koerperpflege > Duschgel",
    "scrapedAt": "2026-04-03T10:15:00.000Z"
}
````

### How much does it cost?

dm Scraper uses dm's internal product API, which means zero browser rendering and extremely low compute costs.

| Volume | Estimated CU | Estimated Cost |
|--------|-------------|----------------|
| 100 products | ~0.005 CU | < $0.01 |
| 1,000 products | ~0.03 CU | ~$0.02 |
| 10,000 products | ~0.3 CU | ~$0.15 |
| 50,000 products | ~1.5 CU | ~$0.75 |

These are estimates. Actual costs depend on your Apify subscription plan.

### Can I integrate?

Absolutely. Export your data as JSON, CSV, Excel, or XML, or pipe it directly into your existing tools:

- **Google Sheets** — Automatically push product data to a shared spreadsheet
- **Webhooks** — Trigger a custom URL when the scrape completes
- **Zapier / Make / n8n** — Connect to thousands of apps without writing code
- **Amazon S3 / Google Cloud** — Dump large datasets straight to cloud storage
- **Slack / Email** — Get alerts when products drop in price or go out of stock

### Can I use it as an API?

Yes. Integrate dm product data directly into your applications.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("studio-amba/dm-scraper").call(run_input={
    "searchQuery": "sonnenschutz",
    "maxResults": 200,
    "country": "de",
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{item['brand']} — {item['name']}: EUR {item['price']} ({item.get('pricePerUnit', '')})")
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('studio-amba/dm-scraper').call({
    searchQuery: 'sonnenschutz',
    maxResults: 200,
    country: 'de',
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(item => {
    console.log(`${item.brand} — ${item.name}: EUR ${item.price}`);
});
```

### FAQ

**What is the difference between dm Germany and dm Austria?**
dm operates separate online stores for Germany (dm.de) and Austria (dm.at). Product ranges overlap significantly, but prices differ. Set the `country` field to `de` or `at` to choose which store to scrape.

**Does dm sell prescription medicines?**
No. dm is a drugstore (Drogerie), not a pharmacy (Apotheke). They sell OTC health products, vitamins, supplements, and personal care items — but nothing requiring a prescription. For prescription drug data, try our Shop Apotheke or Farmaline scrapers.

**How do I identify dm's private-label products?**
Look for these brand names in the output: **Balea** (skincare/hair), **alverde** (organic cosmetics), **Denkmit** (household), **babylove** (baby care), **Mivolis** (health supplements), **Sundance** (sun care). These are dm exclusives.

**Can I get price-per-unit data?**
Yes. The `pricePerUnit` field shows the normalized price (e.g., "0,58 EUR / 100 ml" or "1,25 EUR / St"), which is required by German law for consumer transparency and perfect for cross-product comparison.

**How frequently can I run the scraper?**
As often as you need. dm's API does not require authentication and handles high request volumes well. Daily runs are common for price monitoring use cases.

**What product categories does dm cover?**
dm's catalog spans a wide range: beauty and skincare (Balea, alverde), haircare, oral care (toothpaste, mouthwash), baby and child care (diapers, baby food), household cleaning (Denkmit), health supplements (Mivolis vitamins, minerals), sun care (Sundance), men's grooming, and pet care. The `categories` field in the output shows the exact category path for each product.

**Can I filter by brand in the input?**
The scraper does not have a dedicated brand filter input, but you can search for brand names directly. Enter "Balea" as the search query to get all Balea products, or "Nivea" for Nivea products. Brand filtering works well because dm's search API matches against brand names.

### Tips for effective dm data extraction

Here are some strategies to get the most from the dm scraper:

1. **Use wildcard search for full catalog** — Leave `searchQuery` empty or set it to `*` to browse dm's entire product catalog. Combine with `maxResults` to control how much you pull.
2. **Leverage price-per-unit for comparisons** — dm is legally required to show unit pricing in Germany. The `pricePerUnit` field (e.g., "0,58 EUR / 100 ml") lets you compare products across different sizes fairly.
3. **Identify private-label opportunities** — Filter results by brand names like Balea, alverde, or Mivolis to analyze dm's private-label strategy. These products typically have the highest margins and most aggressive pricing.
4. **Compare DE vs AT pricing** — Run the scraper twice with `country: "de"` and `country: "at"` and join on EAN to find cross-border pricing differences.
5. **Schedule regular runs** — dm updates their pricing and product range regularly. Weekly or daily scraping gives you trend data for seasonal promotions and new product launches.

### Limitations

- dm's product API returns basic product data; detailed ingredient lists and full product descriptions require individual product page scraping
- The actor supports Germany (de) and Austria (at) only — other dm countries (Czech Republic, Hungary, etc.) use different platforms
- Product images are served from dm's CDN and may have query parameters for sizing
- No purchase history, store-specific stock, or loyalty pricing data is available through the public API

### Other pharmacy scrapers

Need drugstore and pharmacy data from more sources? Explore our full collection:

- [Farmaline Scraper](https://apify.com/studio-amba/farmaline-scraper) — Belgium's largest online pharmacy (70,000+ products)
- [Shop Apotheke Scraper](https://apify.com/studio-amba/shopapotheke-scraper) — Europe's leading online pharmacy (DE/AT/CH/BE/FR/IT)
- [Viata Scraper](https://apify.com/studio-amba/viata-scraper) — Belgian online pharmacy with health and wellness products
- [Apotheek.be Scraper](https://apify.com/studio-amba/apotheek-scraper) — Belgian pharmacy directory with locations and opening hours
- [Matas Scraper](https://apify.com/studio-amba/matas-scraper) — Denmark's leading beauty and pharmacy retailer
- [Multipharma Scraper](https://apify.com/studio-amba/multipharma-scraper) — One of Belgium's largest pharmacy chains

### Your feedback

Found a bug? Need a new feature? Want help building a pipeline on top of dm data? [Open an issue](https://console.apify.com/actors/studio-amba/dm-scraper/issues) or contact us on Apify. We read every message and ship fixes fast.

# Actor input Schema

## `searchQuery` (type: `string`):

Search for products by keyword (e.g., 'shampoo', 'zahnpasta', 'windeln'). Leave empty to browse all products.

## `categoryUrl` (type: `string`):

A dm.de category URL to scrape. Example: https://www.dm.de/haar/shampoo

## `maxResults` (type: `integer`):

Maximum number of products to return.

## `country` (type: `string`):

Country store to scrape from.

## `proxyConfiguration` (type: `object`):

Proxy settings. Usually not needed.

## Actor input object example

```json
{
  "searchQuery": "shampoo",
  "maxResults": 100,
  "country": "de"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": "shampoo"
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/dm-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchQuery": "shampoo" }

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/dm-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": "shampoo"
}' |
apify call studio-amba/dm-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=studio-amba/dm-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "dm Scraper — German & Austrian Drugstore Products & Prices",
        "description": "Scrape products from dm.de and dm.at via their internal API. Europe's largest drugstore chain — beauty, health, baby, and household products from 2,000+ stores.",
        "version": "0.1",
        "x-build-id": "zuuBvrub4o68AcpBM"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~dm-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-dm-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/studio-amba~dm-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-dm-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/studio-amba~dm-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-dm-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search for products by keyword (e.g., 'shampoo', 'zahnpasta', 'windeln'). Leave empty to browse all products."
                    },
                    "categoryUrl": {
                        "title": "Category URL",
                        "type": "string",
                        "description": "A dm.de category URL to scrape. Example: https://www.dm.de/haar/shampoo"
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum number of products to return.",
                        "default": 100
                    },
                    "country": {
                        "title": "Country",
                        "enum": [
                            "de",
                            "at"
                        ],
                        "type": "string",
                        "description": "Country store to scrape from.",
                        "default": "de"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Usually not needed."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
