# Canada Health Drug Products Database (DPD) Lookup (`plainkitbin/canada-health-drug-products`) Actor

Look up drug products in Health Canada's Drug Product Database by DIN, drug code, brand name or status. Returns regulatory product facts as structured JSON rows. Not affiliated with Health Canada.

- **URL**: https://apify.com/plainkitbin/canada-health-drug-products.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 dpd drug product records

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/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

## Canada Health Drug Products (DPD) Lookup

Look up drug products in the Health Canada Drug Product Database (DPD) by Drug Identification Number (DIN), drug code, brand name or product status. Each result is one JSON row with regulatory product facts. No API key and no login are needed.

Not affiliated with Health Canada.

### What you get

One row per drug product with these fields:

| Field | Meaning |
| --- | --- |
| `drug_code` | Code Health Canada assigns to the drug product |
| `din` | Drug Identification Number |
| `brand_name` | Brand name of the product |
| `class_name` | Product class, for example Human or Veterinary |
| `descriptor` | Descriptor text of the product |
| `company_name` | Company name on the product record |
| `ai_group_no` | Active ingredient group number |
| `number_of_ais` | Number of active ingredients |
| `last_update_date` | Date the record was last updated |
| `status` | Product status, for example Marketed or Cancelled Post Market (when status is included) |
| `status_date` | Date of that status (when status is included) |
| `active_ingredients` | List of ingredient name, strength, strength unit, dosage value and dosage unit (when ingredients are included) |
| `source_url` | Public DPD page of the product |
| `license` | Licence statement for the data |

Only regulatory product fields are returned. Contact details such as e-mail addresses or phone numbers are never part of the output.

### Input

Give at least one of `din`, `drug_code`, `brand_name` or `status_code`.

- `din`: eight-digit DIN, for example `00000019`. Shorter numbers are padded with zeros.
- `drug_code`: Health Canada drug code, for example `225`. It cannot be combined with the other filters.
- `brand_name`: text searched anywhere in the brand name.
- `status_code`: `1` Approved, `2` Marketed, `3` Cancelled Pre Market, `4` Cancelled Post Market, `6` Dormant, `9` Cancelled (Unreturned Annual), `10` Cancelled (Safety Issue), `11` Authorized By Interim Order, `12` Authorization By Interim Order Revoked, `13` Restricted Access, `14` Authorization By Interim Order Expired, `15` Cancelled (Transitioned to Biocides).
- `include_ingredients` (default `true`) and `include_status` (default `true`): each adds one extra request per product.
- `lang`: `en` (default) or `fr`.
- `max_items`: default 25, at most 200.

`din`, `brand_name` and `status_code` can be combined; a product must match all of them.

Example input:

```json
{
  "din": "00000019",
  "include_ingredients": true,
  "include_status": true,
  "max_items": 5
}
```

### Pricing

Pay per event, event `dpd-drug-product`, charged once per delivered drug product row. Price per row by Apify plan:

| Plan | Price per row |
| --- | --- |
| FREE | $0.004 |
| BRONZE | $0.0036 |
| SILVER | $0.0032 |
| GOLD | $0.0028 |
| PLATINUM | $0.0028 |
| DIAMOND | $0.0026 |

### Billing and limits

- Each row is pushed to the dataset first and charged right after the push succeeded.
- If a charge is refused, the run stops at once. That row stays in the dataset and is not charged.
- If your spending limit is reached, the run stops after the row that was just charged.
- If Health Canada cannot be reached after bounded retries, the run fails with a clear error. Rows that were not delivered are not charged, and an upstream failure is never reported as zero results.
- If the run restarts, products already in the dataset are not pushed or charged again.
- A drug code or DIN that does not exist gives zero rows and no charge.

### Use as an MCP Tool (AI Agents)

AI agents can call this Actor as a tool through the Apify MCP server:

`https://mcp.apify.com?tools=plainkitbin/canada-health-drug-products`

Pass the same input fields as above, for example a `din` or a `brand_name`.

### Data source and licence

Data comes from the Health Canada Drug Product Database API (`https://health-products.canada.ca/api/drug/`).

Contains information licensed under the Open Government Licence - Canada. Licence: https://open.canada.ca/en/open-government-licence-canada

Health Canada does not provide medical advice through this database. For treatment questions, contact a health care professional.

# Actor input Schema

## `din` (type: `string`):

Eight-digit Drug Identification Number, for example 00000019. Shorter numbers are padded with leading zeros. Can be combined with brand name and status.

## `drug_code` (type: `string`):

Health Canada drug product code (digits), for example 225. Cannot be combined with the other filters. Leave empty when searching by DIN, brand name or status.

## `brand_name` (type: `string`):

Text searched anywhere in the brand name (Health Canada parameter brandname), for example placidyl. Leave empty to skip.

## `status_code` (type: `string`):

Product status code: 1 Approved, 2 Marketed, 3 Cancelled Pre Market, 4 Cancelled Post Market, 6 Dormant, 9 Cancelled (Unreturned Annual), 10 Cancelled (Safety Issue), 11 Authorized By Interim Order, 12 Authorization By Interim Order Revoked, 13 Restricted Access, 14 Authorization By Interim Order Expired, 15 Cancelled (Transitioned to Biocides). Leave empty to skip.

## `include_ingredients` (type: `boolean`):

Add the active ingredient list of each product (one extra API request per product).

## `include_status` (type: `boolean`):

Add the current status and its date of each product (one extra API request per product).

## `lang` (type: `string`):

Language of class and status texts: en (English) or fr (French).

## `max_items` (type: `integer`):

Maximum number of drug product rows to output (default 25, at most 200).

## Actor input object example

```json
{
  "din": "00000019",
  "drug_code": "",
  "brand_name": "",
  "status_code": "",
  "include_ingredients": true,
  "include_status": true,
  "lang": "en",
  "max_items": 25
}
```

# Actor output Schema

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

Dataset items produced by this run.

# 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 = {
    "din": "00000019",
    "drug_code": "",
    "brand_name": "",
    "status_code": "",
    "include_ingredients": true,
    "include_status": true,
    "lang": "en",
    "max_items": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/canada-health-drug-products").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 = {
    "din": "00000019",
    "drug_code": "",
    "brand_name": "",
    "status_code": "",
    "include_ingredients": True,
    "include_status": True,
    "lang": "en",
    "max_items": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/canada-health-drug-products").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 '{
  "din": "00000019",
  "drug_code": "",
  "brand_name": "",
  "status_code": "",
  "include_ingredients": true,
  "include_status": true,
  "lang": "en",
  "max_items": 25
}' |
apify call plainkitbin/canada-health-drug-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainkitbin/canada-health-drug-products"
        }
    }
}
```

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/HSgsGwk6lHMrn9oCA/builds/84zreVzBiX9oiS4dg/openapi.json
