# Apotekeren.dk Scraper - Danish Pharmacy Prices, EAN and Stock (`studio-amba/apotekeren-dk-scraper`) Actor

Scrape product data from apotekeren.dk, the Danish online pharmacy. Get prices in DKK, regular price, discount, EAN, stock status, delivery time and brands for health, personal care, baby and medical device products.

- **URL**: https://apify.com/studio-amba/apotekeren-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

## Apotekeren.dk Scraper

Pull product data from apotekeren.dk, a Danish online pharmacy. The actor returns one row per product with the EAN barcode, the selling price in DKK, the regular price before discount, stock status, delivery time and brand.

Apotekeren.dk sells health, personal care, baby and medical device products, including the pharmacy's own Apotekets range. If you track Danish pharmacy prices or match Danish products against shops in other countries by EAN, this actor gives you a repeatable feed.

### How to scrape Apotekeren.dk data

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

1. Paste product pages into `productUrls`, for example `https://www.apotekeren.dk/produkter/apotekets-stoettebind-elastisk/p-39194`.
2. Leave `productUrls` empty and fill `urlKeywords`. The actor reads the public product sitemap and keeps products whose address contains one of your words, for example `omron` or `stoettebind`.

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 folders the site excludes in robots.txt.

### Input

| Field | Type | Description |
|---|---|---|
| `productUrls` | list of text | Product pages from apotekeren.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": ["omron"],
    "maxResults": 100
}
```

### Output

Each row is one product. Example:

```json
{
    "sku": "224313",
    "ean": "4004221004027",
    "name": "Apotekets Støttebind Elastisk 8 cm x 5 m",
    "brand": "Apotekets",
    "price": 60.8,
    "originalPrice": 76,
    "discountPercent": 20,
    "currency": "DKK",
    "inStock": true,
    "availability": "InStock",
    "deliveryTime": "2-3 hverdage",
    "imageUrl": "https://imagecache.nomeco.dk/image/224313/medium",
    "url": "https://www.apotekeren.dk/produkter/apotekets-stoettebind-elastisk/p-39194",
    "country": "dk",
    "language": "da"
}
```

| Field | Description |
|---|---|
| `sku` | Apotekeren product number (Varenummer). |
| `ean` | EAN or GTIN barcode as published by the shop. Filled on nearly every product. |
| `name` | Product name including size. |
| `brand` | Brand name. |
| `price` | Selling price in DKK, VAT included. This is the price the shop lists as the club price. |
| `originalPrice`, `discountPercent` | Regular price (førpris) and the percentage between the two. Empty when the product has no regular price above the selling price. |
| `inStock`, `availability` | Stock status as published. |
| `deliveryTime` | Delivery time as published, for example 2-3 hverdage. |
| `description` | Short product description. |
| `imageUrl`, `url` | Main image and product page. |

### What the data does not contain

Apotekeren.dk does not publish category paths, ratings or review counts 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.
- Use the `ean` field to match products against other shops, in Denmark or in other countries.
- Schedule the actor daily or weekly to build a price history.
- Pages that carry no structured product data are skipped without a row and counted in the run log.
- The cost of a run settles after the run SUCCEEDED, so the usage figure on a running job is not final.
- A keyword that matches no product address ends the run with a message saying no products matched.

### Is it legal to scrape Apotekeren.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 product sitemap lists about 5,500 addresses.

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

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

**What is the difference between price and originalPrice?** `price` is the selling price. `originalPrice` is the regular price the site shows crossed out. Some products have no crossed-out price.

**Can I get the full catalogue?** Yes. Set `urlKeywords` empty and `maxResults` to a high number. The run reads one page per product.

### 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 apotekeren.dk, e.g. https://www.apotekeren.dk/produkter/apotekets-stoettebind-elastisk/p-39194. 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. omron or stoettebind. 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": [
    "apotekets"
  ],
  "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": [
        "apotekets"
    ],
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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