# France Medicines Database: Prices, Reimbursement & Generics (`datacraft-studio/france-medicines-database`) Actor

Official French medicines database (BDPM): CIP13/CIS lookup, public prices, reimbursement rates, generic groups, HAS SMR/ASMR ratings, shortages. Pay per record.

- **URL**: https://apify.com/datacraft-studio/france-medicines-database.md
- **Developed by:** [Yahya Nouali](https://apify.com/datacraft-studio) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 medicine record delivereds

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

## France Medicines Database: Prices, Reimbursement & Generics

Search and look up every medicine in the **official French public medicines database (BDPM, base de données publique des médicaments)**, published by the Ministry of Health with ANSM, HAS and the national health insurance (UNCAM), under the **Licence Ouverte** (Etalab).

One clean JSON row per medicine (CIS code) or per box (CIP13 barcode), joining the ten official BDPM files: authorisation, holders, composition, boxes and prices, reimbursement rates, generic groups, prescription conditions, HAS SMR / ASMR ratings, ANSM shortage notices and the list of medicines of major therapeutic interest.

### Use cases

- **Barcode / CIP13 lookup** for pharmacy, e-health, insurance and logistics apps: name, public price, reimbursement rate, marketing status.
- **Generic substitution**: princeps and generics of the same official group.
- **Price and reimbursement monitoring**: alert mode returns only medicines whose price, reimbursement, status, shortage or HAS opinion changed.
- **Market studies**: all medicines of a laboratory, a substance, an ATC class, a route, a price range or authorised since a date.
- **Shortage watch**: medicines with an ANSM stock-out, supply tension or discontinuation notice.

### Input examples

- Look up boxes: `{"codes": ["3400949497294", "3400933332518"], "outputLevel": "presentation"}`
- Reimbursed paracetamol, cheapest first: `{"substances": ["paracetamol"], "onlyReimbursed": true, "sortBy": "price_asc"}`
- Current shortages: `{"onlyAvailabilityIssues": true}`
- Weekly price/status changes of a laboratory: `{"holders": ["BIOGARAN"], "onlyNew": true, "stateStoreName": "biogaran-watch"}`

### What you get

| Field | Description |
|---|---|
| `cis`, `name`, `pharmaceuticalForm`, `routes` | Medicine |
| `authorisationStatus`, `authorisationProcedure`, `authorisationDate`, `euAuthorisationNumber` | Marketing authorisation |
| `marketingStatus`, `marketed`, `holders`, `enhancedMonitoring` | Status and laboratories |
| `activeSubstances[]` | Substance, dosage, reference |
| `genericGroupId`, `genericGroupLabel`, `genericType` | Official generic group (princeps / generic) |
| `reimbursed`, `reimbursementRates`, `minPublicPriceEur`, `maxPublicPriceEur` | Reimbursement and price range |
| `presentations[]` (or one row per box) | `cip13`, `cip7`, box label, status, `priceEur`, `publicPriceEur`, `dispensingFeeEur`, rates, hospital approval |
| `latestSmr`, `latestAsmr` (+ history) | HAS Transparency Committee ratings with link to the opinion |
| `availabilityIssue`, `availability[]` | ANSM shortage notices |
| `atcCode`, `majorTherapeuticInterest` | ANSM list of medicines of major therapeutic interest (MITM) |
| `prescriptionConditions[]` | Prescription and dispensing conditions |
| `bdpmUrl`, `sourceDataDate` | Official page and BDPM update date |

A final `run_summary` row gives counts, codes not found and the BDPM update date.

### Pricing

**$0.002 per row delivered** (`medicine-record` event). Filtered rows, codes not found, unchanged rows in alert mode and the summary are free. The full marketed database (~13,500 medicines) costs about $27.

### Source & licence

- Source: [Base de données publique des médicaments](https://base-donnees-publique.medicaments.gouv.fr/telechargement) (Ministry of Health, ANSM, HAS, UNCAM). Each run downloads the current files; the update date is returned in every row (`sourceDataDate`).
- Licence: [Licence Ouverte / Open Licence](https://www.etalab.gouv.fr/licence-ouverte-open-licence/). Values are returned as published (prices are only converted to numbers). Cite "Base de données publique des médicaments" and the update date when you reuse the data.
- No personal data: the database lists medicines and pharmaceutical companies only.

This actor is not affiliated with the Ministry of Health, ANSM, HAS or UNCAM, and its use does not imply any endorsement by them. **Reference data only, not medical advice**: always check the official BDPM page before any clinical or dispensing decision.

### Memory

Default **512 MB** (about 10 seconds per run).

# Changelog

This Actor's version history is a separate document: https://apify.com/datacraft-studio/france-medicines-database/changelog.md

# Actor input Schema

## `codes` (type: `array`):

Look up these codes (13-digit CIP13 barcode starting with 34, 7-digit CIP7 or 8-digit CIS). Withdrawn or not-marketed medicines still in the database are returned too. Leave empty to search.

## `nameContains` (type: `array`):

Medicine name contains any of these words (accents and case ignored), e.g. DOLIPRANE.

## `substances` (type: `array`):

Active substance contains any of these (e.g. paracetamol, amoxicilline). Also matches the generic group label.

## `holders` (type: `array`):

Holder (laboratory) name contains any of these, e.g. SANOFI, BIOGARAN.

## `routes` (type: `array`):

e.g. orale, cutanée, intraveineuse.

## `atcPrefixes` (type: `array`):

e.g. N02 (analgesics). ATC codes are only published for medicines of major therapeutic interest (MITM, about half of the database).

## `onlyMarketed` (type: `boolean`):

Skip medicines not marketed any more (ignored for code lookups).

## `onlyActiveAuthorisation` (type: `boolean`):

Skip withdrawn, suspended or archived authorisations (ignored for code lookups).

## `onlyReimbursed` (type: `boolean`):

Only medicines with a Social Security reimbursement rate.

## `reimbursementRates` (type: `array`):

Keep only these rates, in % (15, 30, 65, 100).

## `genericFilter` (type: `string`):

Filter on the official generic groups.

## `minSmr` (type: `string`):

Latest Medical Service Rendered (SMR) rating from the HAS Transparency Committee.

## `onlyAvailabilityIssues` (type: `boolean`):

Only medicines with an ANSM stock-out, supply tension or discontinuation notice.

## `onlyMajorTherapeuticInterest` (type: `boolean`):

Medicines whose shortage would put patients at risk (ANSM MITM list).

## `onlyEnhancedMonitoring` (type: `boolean`):

Medicines under additional EU monitoring.

## `authorisedSince` (type: `string`):

Marketing authorisation on or after this date (YYYY-MM-DD).

## `minPublicPrice` (type: `string`):

At least one marketed box at or above this price.

## `maxPublicPrice` (type: `string`):

At least one marketed box at or below this price.

## `outputLevel` (type: `string`):

Medicine (CIS, with all its boxes nested) or presentation (one row per CIP13 box).

## `includeComposition` (type: `boolean`):

Active substances and dosages.

## `includeHasOpinions` (type: `boolean`):

All SMR / ASMR opinions (the latest one is always included).

## `includeOpinionTexts` (type: `boolean`):

Full wording of SMR / ASMR opinions (longer rows).

## `sortBy` (type: `string`):

Order of the rows.

## `onlyNew` (type: `boolean`):

Return only rows that are new or changed (price, reimbursement, status, shortage, generic group, HAS opinion) since the previous run with the same state store.

## `stateStoreName` (type: `string`):

Use one store name per saved search.

## `maxItems` (type: `integer`):

Maximum rows delivered (and charged).

## Actor input object example

```json
{
  "codes": [
    "3400949497294",
    "61673890"
  ],
  "onlyMarketed": true,
  "onlyActiveAuthorisation": true,
  "onlyReimbursed": false,
  "genericFilter": "any",
  "minSmr": "any",
  "onlyAvailabilityIssues": false,
  "onlyMajorTherapeuticInterest": false,
  "onlyEnhancedMonitoring": false,
  "outputLevel": "medicine",
  "includeComposition": true,
  "includeHasOpinions": true,
  "includeOpinionTexts": false,
  "sortBy": "name",
  "onlyNew": false,
  "stateStoreName": "france-medicines-database-state",
  "maxItems": 1000
}
```

# Actor output Schema

## `medicines` (type: `string`):

One row per medicine (CIS) or per box (CIP13).

## `summary` (type: `string`):

Counts, codes not found and source date.

# 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 = {
    "codes": [
        "3400949497294",
        "61673890"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacraft-studio/france-medicines-database").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 = { "codes": [
        "3400949497294",
        "61673890",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datacraft-studio/france-medicines-database").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 '{
  "codes": [
    "3400949497294",
    "61673890"
  ]
}' |
apify call datacraft-studio/france-medicines-database --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacraft-studio/france-medicines-database"
        }
    }
}
```

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/RtXtClmVPdU6Ukp6V/builds/AnH68bolLPgM5ziry/openapi.json
