# Med24.dk Scraper - Danish Pharmacy Prices and Stock (`studio-amba/med24-dk-scraper`) Actor

Scrape product data from med24.dk, the Danish online pharmacy. Get current prices in DKK, stock status, brands, categories, ratings and review counts for health, personal care, baby and medical device products.

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

## Pricing

from $1.20 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Med24.dk Scraper

Pull product data from med24.dk, a Danish online pharmacy. The actor returns one row per product with the current price in DKK, stock status, brand, category path, customer rating and review count.

Med24.dk sells health, personal care, baby, sun care and medical device products. If you track Danish pharmacy prices or compare Danish shops against Norwegian and Swedish ones, this actor gives you a repeatable feed.

### How to scrape Med24.dk data

There are two ways to tell the actor which products to read.

1. Paste product pages into `productUrls`, for example `https://www.med24.dk/medicin-og-medicare/anvendelsesomraader/produkter-mod-snorken/breathe-right-naesestrips-10-stk`.
2. Leave `productUrls` empty and fill `urlKeywords`. The actor reads the public sitemap and keeps products whose address contains one of your words, for example `nivea` or `solcreme`.

The actor stops at `maxResults`. If you leave everything empty, it reads the first 50 products in the sitemap.

Search result pages are not read. The actor only requests product pages and the sitemap, and it stays away from the paths the site excludes in robots.txt.

### Input

| Field | Type | Description |
|---|---|---|
| `productUrls` | list of text | Product pages from med24.dk. Up to 100. |
| `urlKeywords` | list of text | Words that must appear in the product address. Used when `productUrls` is empty. |
| `maxResults` | number | Maximum number of rows. Default 50. |
| `proxyConfiguration` | object | Proxy for the requests. Default is Apify Proxy. |

Example input:

```json
{
    "urlKeywords": ["nivea"],
    "maxResults": 100
}
```

### Output

Each row is one product. Example:

```json
{
    "sku": "43163",
    "name": "Nivea Gentle Eye Makeup Remover - 125 ml.",
    "brand": "Nivea",
    "price": 60,
    "currency": "DKK",
    "inStock": true,
    "availability": "InStock",
    "category": "Personlig pleje > Hudpleje > Ansigtsrens > Øjenmakeupfjerner",
    "rating": null,
    "reviewCount": null,
    "imageUrl": "https://www.med24.dk/imgsrv/...",
    "url": "https://www.med24.dk/personlig-pleje/hudpleje/...",
    "country": "dk",
    "language": "da"
}
```

| Field | Description |
|---|---|
| `sku` | Med24 product number (Varenummer). |
| `name` | Product name including size. |
| `brand` | Brand name. |
| `price` | Current selling price in DKK, VAT included. |
| `inStock`, `availability` | Stock status as published. |
| `category` | Category path on the site, levels separated by `>`. |
| `rating`, `reviewCount` | Customer rating (1 to 5) and number of reviews. Empty when a product has no reviews. |
| `description` | Short product description. |
| `imageUrl`, `url` | Main image and product page. |

### What the data does not contain

Med24.dk does not publish EAN barcodes or list prices before discount on the product page, so these fields are not in the output.

### Pricing

The actor is billed per result. You pay for each product row that is returned, and a run that returns nothing costs only the Apify platform usage.

### Tips

- Use `urlKeywords` with a brand name to read one brand. The address of each product contains the brand and product name.
- Schedule the actor daily or weekly to build a price history.
- Pages that are not product pages (articles, category pages) are skipped without a row.
- Some product pages do not carry structured product data. These are skipped and counted in the run log.

### Is it legal to scrape Med24.dk?

The actor reads public product pages that anyone can open without logging in. It collects product information only, no personal data. Check your own use of the data against the site terms and the laws that apply to you.

### FAQ

**Does it need a login?** No.

**How many products does the site have?** The sitemap lists about 36,800 addresses, of which roughly half are product pages.

**Does it return prices in euro?** No. Prices are in Danish kroner (DKK).

**Which fields are always filled?** Name, price, currency, URL and SKU. Brand and category are filled on nearly every product.

**Can I get the full catalogue?** Yes. Set `urlKeywords` empty and `maxResults` to a high number. Reading the whole shop takes several hours.

### Support

Open an issue on the actor page if a field is missing or a product is read wrong.

# Actor input Schema

## `productUrls` (type: `array`):

Product pages from med24.dk, e.g. https://www.med24.dk/medicin-og-medicare/anvendelsesomraader/produkter-mod-snorken/breathe-right-naesestrips-10-stk. Each product becomes one row.

## `urlKeywords` (type: `array`):

Used when no product URLs are given. The actor reads the shop sitemap and keeps products whose address contains one of these words, e.g. nivea or solcreme. Leave empty to read the first products in the sitemap.

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

Maximum number of rows (one row per product).

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

Proxy used for the requests. Default is Apify Proxy.

## Actor input object example

```json
{
  "urlKeywords": [
    "nivea"
  ],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urlKeywords": [
        "nivea"
    ],
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/med24-dk-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 = {
    "urlKeywords": ["nivea"],
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/med24-dk-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 '{
  "urlKeywords": [
    "nivea"
  ],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/med24-dk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/med24-dk-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/gUwYIR5DLJrMe0z0T/builds/VdOFjqxSAa4qes0Nx/openapi.json
