# Newpharma Scraper — Belgian Pharmacy Products & Prices (`studio-amba/newpharma-scraper`) Actor

Scrape pharmacy products, OTC medicines, supplements, and health items from Newpharma.be — Belgium's largest online pharmacy. Browse categories with full product details. No login required.

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

## Pricing

from $8.00 / 1,000 per results

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

## Newpharma Scraper

Scrape pharmacy products, OTC medicines, supplements, beauty items, and health products from [Newpharma.be](https://www.newpharma.be) — Belgium's largest online pharmacy with 45,000+ products from 1,700+ brands.

### How to scrape Newpharma data

1. Go to the [Newpharma Scraper](https://apify.com/studio-amba/newpharma-scraper) page on the Apify Store.
2. Click **Try for free** to open the actor in Apify Console.
3. Choose a category URL or use the default (OTC medicines — Pain & Fever).
4. Optionally add a search keyword to filter results (e.g., "paracetamol").
5. Set the maximum number of results you want.
6. Click **Start** and wait for the run to finish.
7. Download your data as JSON, CSV, or Excel from the Dataset tab.

### What data can you extract?

For each product, the scraper extracts:

| Field | Description | Example |
|-------|-------------|---------|
| name | Full product name with dosage/format | Sofrasolone Spray Nasal Microdoseur 10ml |
| brand | Manufacturer or brand name | MELISANA |
| price | Current selling price (EUR) | 4.29 |
| currency | Currency code | EUR |
| originalPrice | Price before discount (if applicable) | 5.99 |
| url | Full product page URL | https://www.newpharma.be/pharmacie/melisana/18941/... |
| imageUrl | Product image URL | https://img.newpharma.net/images/products/... |
| category | Category breadcrumb | Medicaments > Rhume > Sprays |
| productId | Newpharma internal product ID | 18941 |
| inStock | Availability status | true |
| productType | Product classification (PH = pharmacy) | PH |
| rating | Customer rating (0-5) | 4.2 |
| description | Product description (with detail mode) | En cas d'un nez bouche... |
| scrapedAt | Timestamp of data collection | 2026-06-07T10:30:00.000Z |

### Input options

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| startUrls | array | OTC Pain & Fever category | Category or product URLs to scrape |
| searchQuery | string | (empty) | Filter products by keyword within categories |
| maxResults | integer | 50 | Maximum number of products to return |
| language | select | fr | Site language: French (/pharmacie/) or Dutch (/apotheek/) |
| includeProductDetails | boolean | false | Fetch individual product pages for extra details |
| brightDataApiKey | string | (required) | Bright Data Web Unlocker API key |

### Example output

```json
{
    "name": "Dafalgan 1g Comprimés 40",
    "brand": "DAFALGAN",
    "price": 8.49,
    "currency": "EUR",
    "url": "https://www.newpharma.be/pharmacie/dafalgan/106248/dafalgan-1g-comprimes-40.html",
    "imageUrl": "https://img.newpharma.net/images/products/fr/500/dafalgan-1g-comprimes-40.v3.jpg",
    "category": "Medicaments (sans prescription) > Douleur - Fièvre",
    "productId": "106248",
    "inStock": true,
    "productType": "PH",
    "scrapedAt": "2026-06-07T10:30:00.000Z"
}
````

### How it works

Newpharma.be is protected by Cloudflare Turnstile — one of the most aggressive anti-bot systems. This actor bypasses it using Bright Data's Web Unlocker service:

1. You provide a Bright Data API key (get one at [brightdata.com](https://brightdata.com)).
2. The actor sends requests through Bright Data's infrastructure which handles the Cloudflare challenge.
3. Product data is extracted from the server-rendered HTML using Cheerio (no browser needed).

This approach is fast, reliable, and cost-effective compared to running headless browsers.

### Category URLs

You can scrape any Newpharma category by providing the category URL. Popular categories:

- **OTC Medicines:** `https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/190.html`
- **Pain & Fever:** `https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/douleur-fievre/189-193.html`
- **Vitamins:** `https://www.newpharma.be/pharmacie/cat/vitamines-nutritherapie/20.html`
- **Beauty & Cosmetics:** `https://www.newpharma.be/pharmacie/cat/beaute-cosmetiques/12.html`
- **Baby & Children:** `https://www.newpharma.be/pharmacie/cat/grossesse-bebes-enfants/1228.html`
- **First Aid:** `https://www.newpharma.be/pharmacie/cat/premiers-soins-soins-a-domicile/1265.html`

For Dutch language, replace `/pharmacie/` with `/apotheek/` and use Dutch category slugs.

### Cost estimate

Each category page fetched costs approximately $0.01 in Bright Data credits. A typical category page contains 20-25 products, so:

- **50 products** = ~2-3 page fetches = ~$0.03 in Bright Data costs + Apify compute
- **500 products** = ~20-25 page fetches = ~$0.25 in Bright Data costs + Apify compute
- With `includeProductDetails` enabled, add ~$0.01 per product for individual page fetches.

### Bilingual support

Newpharma operates in both French and Dutch for Belgian customers:

- **French:** URLs start with `/pharmacie/` (default)
- **Dutch:** URLs start with `/apotheek/`

Set the `language` input to switch between them. Product names, categories, and descriptions will be in the selected language.

### Limitations

- **Search is not supported** — Newpharma's search uses Algolia client-side JavaScript which is not available in server-rendered HTML. Use category URLs or keyword filtering instead.
- **CNK codes** — Belgian pharmacy codes are not consistently displayed in the HTML. The field is included for future compatibility.
- **Rate limiting** — The actor respects Bright Data's rate limits. Very large scrapes (1000+ products) may take several minutes.
- **Product details mode** — Enabling `includeProductDetails` makes the scraper significantly slower and more expensive as it fetches each product page individually.

### No login required

This scraper extracts publicly available product data without requiring any Newpharma account or login credentials. No cookies, no sessions, no authentication needed.

# Actor input Schema

## `startUrls` (type: `array`):

Newpharma category or product pages to scrape. Example: https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/190.html

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

Filter products by keyword (searches within category pages). If no Start URLs provided, scrapes the OTC medicines category by default.

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

Maximum number of products to return.

## `language` (type: `string`):

Site language — determines URL prefix (/pharmacie/ for French, /apotheek/ for Dutch).

## `includeProductDetails` (type: `boolean`):

Fetch individual product pages for extra details (description, full category breadcrumb). Slower but more complete data.

## `brightDataApiKey` (type: `string`):

Your Bright Data API key for the Web Unlocker zone. Required to bypass Newpharma's Cloudflare protection. Get one at https://brightdata.com

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

Apify proxy configuration (not used directly — Bright Data handles anti-bot bypass).

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/douleur-fievre/189-193.html"
    }
  ],
  "searchQuery": "paracetamol",
  "maxResults": 20,
  "language": "fr",
  "includeProductDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BE"
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/douleur-fievre/189-193.html"
        }
    ],
    "searchQuery": "paracetamol",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "BE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/newpharma-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 = {
    "startUrls": [{ "url": "https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/douleur-fievre/189-193.html" }],
    "searchQuery": "paracetamol",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "BE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/newpharma-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 '{
  "startUrls": [
    {
      "url": "https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/douleur-fievre/189-193.html"
    }
  ],
  "searchQuery": "paracetamol",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BE"
  }
}' |
apify call studio-amba/newpharma-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Newpharma Scraper — Belgian Pharmacy Products & Prices",
        "description": "Scrape pharmacy products, OTC medicines, supplements, and health items from Newpharma.be — Belgium's largest online pharmacy. Browse categories with full product details. No login required.",
        "version": "0.1",
        "x-build-id": "DCvDZRtN1Va9ERnI8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~newpharma-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-newpharma-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~newpharma-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-newpharma-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~newpharma-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-newpharma-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": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Newpharma category or product pages to scrape. Example: https://www.newpharma.be/pharmacie/cat/medicaments-sans-prescription/190.html",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Filter products by keyword (searches within category pages). If no Start URLs provided, scrapes the OTC medicines category by default."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of products to return.",
                        "default": 50
                    },
                    "language": {
                        "title": "Language",
                        "enum": [
                            "fr",
                            "nl"
                        ],
                        "type": "string",
                        "description": "Site language — determines URL prefix (/pharmacie/ for French, /apotheek/ for Dutch).",
                        "default": "fr"
                    },
                    "includeProductDetails": {
                        "title": "Include Product Details",
                        "type": "boolean",
                        "description": "Fetch individual product pages for extra details (description, full category breadcrumb). Slower but more complete data.",
                        "default": false
                    },
                    "brightDataApiKey": {
                        "title": "Bright Data API Key",
                        "type": "string",
                        "description": "Your Bright Data API key for the Web Unlocker zone. Required to bypass Newpharma's Cloudflare protection. Get one at https://brightdata.com"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify proxy configuration (not used directly — Bright Data handles anti-bot bypass)."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
