For developers
The drug data API. And an MCP server for agents.
694,197 products from the official registers of 19 countries — over REST and GraphQL, as FHIR R4 Medication and as MCP tools, with the source register and sync date on every record.
694,197
products
19
countries
51
live sources
Quickstart
Your first call. In a minute.
Create a free account, copy your dd_ key from the console and send it as a Bearer token. The response is the record itself, with each source's last successful sync under _meta.
- One dd_ key for the API and the MCP server — same scopes, same quota
- Every response carries its source register and last-synced date
- REST on every plan; GraphQL from Pro
https://drug-database.com/v1https://drug-database.com/v1/mcp{ "drug": { "id": "2db08592-445e-4883-91e2-f5f6a732a2cb", "swissmedic_no": "051685028", "product_name": "SIXATOR", "atc_code": "C10AA05", "manufacturer": "PIAM FARMACEUTICI S.P.A.", "dispensing_cat": null, "is_reimbursed": true, "country_code": "IT", "last_synced_at": "2026-11-24T11:13:24.321+00:00", … }, "identifiers": [ … 1 ], "atc_parents": [ … 5 ], "_meta": { "sources": { … } } }
Where it comes from
From the registers to your response. Normalised once.
We read 51 public sources — national medicine registers, price lists and safety feeds — into staging, check every run against its schema and promote only what passes. The same substance then means the same thing in every country.
- Staging first: a run that fails its checks never reaches production
- Matched across countries by substance, ATC class and daily dose
- Every record keeps its source register and the date it was last checked
- USFDA drug shortages
- ESAEMPS medicines register
- ITAIFA medicines register
- CZSÚKL medicines register
- CHSwissmedic product information
- IEHPRA medicines register
Change feed & webhooks
Stay in sync. Only what changed.
GET /v1/changes returns every change since a timestamp, with a cursor for the next page. It keeps 90 days and records only real value changes. From Starter, register a signed webhook and each batch is pushed to you instead.
- Poll with since and next_cursor — changes:read is on every plan
- HMAC-SHA256 signed webhooks from Starter
- A product its register stops listing gets delisted_at — it is never silently deleted
{ "changes": [ { "id": "cea5e70d-db61-48d7-bb7c-4fed0bed2205", "table_name": "drugs", "change_type": "recall", "source": "fda_shortages", "occurred_at": "2026-11-24T19:06:20.043896+00:00", "natural_key": { "product_ndc": null, "generic_name": "Clonazepam Tablet" }, … }, { "id": "214a6aa7-a257-43c9-92fd-092cdfad60b4", "table_name": "drugs", "change_type": "recall", "source": "swissmedic_recall", "occurred_at": "2026-11-24T16:23:00.183248+00:00", "natural_key": { "guid": "b06080d6f0c47c7f722d67cb8dff69a1", "country_code": "CH" }, … } ], "next_cursor": … }
FHIR R4
Any product as a Medication. No mapping layer on your side.
Add ?format=fhir to a drug fetch and get a FHIR R4 Medication resource: the ATC code and pack codes as codings, the register's own number as an identifier, and the dispensing category and reimbursement as extensions where the register publishes them.
- Standard code systems: ATC, GTIN, NDC, CIP13, PZN, dm+d
- Codes without a public system stay round-trippable as urn:drug-database identifiers
{ "resourceType": "Medication", "id": "2db08592-445e-4883-91e2-f5f6a732a2cb", "meta": { … }, "code": { "coding": [{ "system": "http://www.whocc.no/atc", "code": "C10AA05" }], "text": "SIXATOR" }, "status": "active", "identifier": [ { "system": "urn:drug-database:register:it", "value": "051685028", "use": "official" }, { "system": "urn:drug-database:aic", "value": "051685028", "use": "official" } ], "manufacturer": { "display": "PIAM FARMACEUTICI S.P.A." }, "extension": [ { "url": "https://drug-database.com/fhir/StructureDefinition/national-reimbursement-it_aifa_a", "valueBoolean": true } ] }
ATC classification
The WHO tree, by code or by name. With the daily dose.
GET /v1/atc/{code} returns a node with its labels and defined daily dose; /children walks down and /drugs lists the products under it. It is the tree every price-per-dose comparison is normalised to.
- Five levels, from anatomical group to chemical substance
- Labels in English, German, French and Italian where published
- CCardiovascular systemAnatomical
- C10Lipid modifying agentsTherapeutic
- C10ALipid modifying agents, plainPharmacological
- C10AAHMG CoA reductase inhibitorsChemical
- C10AA05AtorvastatinDDD 20 mg O
Switzerland
The Swiss market, in one API. Swissmedic, BAG and Pharmacode, joined.
Reimbursement on the BAG specialty list, the dispensing category, Pharmacode and GTIN per pack, and the AIPS monographs in German, French and Italian — stitched from the authoritative Swiss registers onto one record.
- Resolve a Pharmacode or GTIN with GET /v1/drugs/lookup
- Structured monographs at /v1/drugs/{id}/monograph (lang=de|fr|it)
{ "results": [ { "id": "3f8a1c2d-1b4e-4c7a-9d2f-0a1b2c3d4e5f", "swissmedic_no": "65187", "product_name": "Aspirin Cardio 100 mg", "atc_code": "B01AC06", "manufacturer": "Bayer (Schweiz) AG", "dispensing_cat": "B", "is_reimbursed": true, "country_code": "CH", "last_synced_at": "2026-06-27T02:14:00Z" } ], "_meta": { "sources": { "bag_sl": { "last_synced_at": "2026-06-27T02:10:00Z", "schema_state": "ok" }, "aips": { "last_synced_at": "2026-06-27T01:55:00Z", "schema_state": "ok" } } } }
For AI agents
An MCP server, and an llms.txt. Agents read the registers, not a guess.
17 MCP tools over the same catalogue — attach by URL or run the npm package — and a plain-text summary at /llms.txt that is generated from the same numbers as these pages.
- Hosted at /v1/mcp (Streamable HTTP) or npx @drug-database/mcp-server
- Each tool call is one request on the same key and quota
- /llms.txt names every page, endpoint and plan, with live counts
## For developers - [For developers](drug-database.com/developers): The REST/GraphQL API, the MCP server and the change feed. - [MCP server](drug-database.com/mcp): Model Context Protocol tools over the catalogue for Claude, Cursor and other MCP clients. - [Documentation](drug-database.com/docs): Console guides and the API reference. - [API quickstart](drug-database.com/docs/quickstart) - [Endpoint reference](drug-database.com/docs/api) - [Authentication](drug-database.com/docs/authentication) - [Webhooks](drug-database.com/docs/webhooks) - [Errors](drug-database.com/docs/errors) - [MCP setup](drug-database.com/docs/mcp) - Base URL: https://drug-database.com/v1 (REST; /api/v1 reaches the same handlers). GraphQL at POST https://drug-database.com/v1/graphql. MCP server: npm @drug-database/mcp-server. - Auth: Authorization: Bearer dd_live_… on every request — keys are created in the console after sign-up. Scopes gate endpoints (drugs:read, interactions:write, atc:read, changes:read, webhooks:write). - Keep a local copy fresh with the change feed: GET /v1/changes?since=<timestamp> returns created/updated/removed entries; store next_cursor and pass it as the next since. Or register a signed webhook (POST /v1/webhooks).
Surfaces
Everything you can build on. Each with its own page.
The request, the response and what it is good for — one page per surface.
API reference
REST and GraphQL endpoints, auth, errors and code samples.
Open API referenceMCP server
The catalogue as tools inside Claude, Cursor or any MCP client.
Open MCP serverFHIR Medication
Any product as a FHIR R4 Medication resource.
Open FHIR MedicationChange feed & webhooks
Diff since a timestamp, or get each change pushed to you.
Open Change feed & webhooksATC tree
The WHO classification by code or name, with parents and children.
Open ATC treeCode lookup
Pharmacode, GTIN or NDC to the product record.
Open Code lookup
By use case
The API, by the job you are doing. Request, fields and sources.
Intent-matched pages — each with a representative request, the fields that matter and the sources behind them.
Switzerland drug API
A single REST surface over the Swiss drug market: reimbursement, dispensing category, Pharmacode and ATC, stitched from the authoritative registers.
GET /v1/drugs?country=CH
Drug interaction API
POST a medication list by ATC, ID or identifier and get back every interacting pair with a graded severity — and, where the licensed source gives them, the mechanism and a recommendation.
POST /v1/interactions/check
ATC code API
The ATC classification as a clean REST tree — node, parent chain, labels, defined daily dose, plus /children and /drugs to walk it.
GET /v1/atc/{code}
FHIR Medication API
Add ?format=fhir to a drug fetch and receive a standards-valid FHIR R4 Medication — no mapping layer on your side.
GET /v1/drugs/{id}?format=fhir
Pharmacode lookup
Resolve a Swiss Pharmacode to the canonical drug product in one indexed read — with ATC, dispensing, reimbursement, and the GTIN / Swissmedic-No bridge.
GET /v1/drugs/lookup?system=pharmacode
NDC & barcode lookup
Scan a barcode, get a drug. Resolve a GTIN/EAN or a US NDC to the canonical product in one indexed read, across every identifier system.
GET /v1/drugs/lookup?system=gtin
Keys & plans
Start with a free key. Scale by quota.
Every plan gets a real key against the production catalogue. Plans differ in monthly requests and in what the key may do.
- Drug, ATC and change-feed reads and AI answers on every plan
- Signed change webhooks from Starter
- Prescription validation (interactions:write) from Growth
| Plan | Price | Quota |
|---|---|---|
| Free | $0 | 10 requests in total |
| Pro | $29/month | 1,500 requests |
| Starter | $99/month | 20,000 requests |
| Growth | $490/month | 150,000 requests |
Questions
Building on Drug Database. Plainly.
Start building
Your first call. In a minute.
Create a free account, copy your key from the console and run the quickstart.
Free to try · 10 lookups in total · No card required