# dm Scraper — German Drugstore Products, Beauty & Health (`studio-amba/dm-scraper`) Actor

Scrape products, prices, ratings, and details from dm.de — Germany's largest drugstore chain. Beauty, health, baby, household, and more.

- **URL**: https://apify.com/studio-amba/dm-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 10 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result scrapeds

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# 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 across Germany, Austria, Hungary, Poland, Slovakia, Croatia, Slovenia, Bulgaria, Serbia, and Bosnia

### 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), Austria (at), Hungary (hu), Poland (pl), Slovakia (sk, branded "moja dm"), Croatia (hr), Slovenia (si), Bulgaria (bg), Serbia (rs), or Bosnia (ba)

### 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` Germany, `at` Austria, `hu` Hungary, `pl` Poland, `sk` Slovakia, `hr` Croatia, `si` Slovenia, `bg` Bulgaria, `rs` Serbia, `ba` Bosnia |
| `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. It charges $0.02 per run (start fee, based on its 4 GB memory allocation) plus $0.002 per result. 100 products costs about $0.22; 1,000 about $2.02; 10,000 about $20.02; 50,000 about $100.02. A run's usage cost only settles after it reports SUCCEEDED.

### 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's country stores?**
dm operates separate online stores for Germany (dm.de), Austria (dm.at), Hungary (dm.hu), Poland (dm.pl), Slovakia (mojadm.sk — a different brand name, same dm group), Croatia (dm.hr), Slovenia (dm.si), Bulgaria (dm-drogeriemarkt.bg), Serbia (dm.rs), and Bosnia (dm-drogeriemarkt.ba). Product ranges overlap significantly, but prices and currencies differ (EUR for DE/AT/SK/HR/SI/BG, HUF for HU, PLN for PL, RSD for RS, BAM for BA). Set the `country` field 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 cross-border pricing** — Run the scraper across `country` values and join on EAN to find cross-border pricing differences (currencies vary: EUR for DE/AT/SK/HR/SI/BG, HUF for HU, PLN for PL, RSD for RS, BAM for BA).
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), Austria (at), Hungary (hu), Poland (pl), Slovakia (sk), Croatia (hr), Slovenia (si), Bulgaria (bg), Serbia (rs), and Bosnia (ba) on the shared dmtech product-search API — other dm countries are not yet covered
- 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",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "DE"
    }
};

// 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",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "DE",
    },
}

# 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(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}' |
apify call studio-amba/dm-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/dm-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/eGWhqGJJPrEbAzimi/builds/AtPjtATQB4vieJPz7/openapi.json
