Skip to content

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.

One production record — SIXATOR, from AIFA medicines register — as the REST API, the FHIR adapter and the MCP server return it. Read 24 Nov 2026.

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
REST API base URL
https://drug-database.com/v1
Authorization: Bearer dd_live_…
MCP endpoint
https://drug-database.com/v1/mcp
Streamable HTTP · the same key
GET/v1/drugs/2db08592-445e-4883-91e2-f5f6a732a2cb200
{
  "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": { … } }
}
A real record from the production catalogue, as the endpoint returns it; long fields folded.Endpoint reference

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
GET/v1/changes?since=…200
{
  "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": …
}
The newest change from 2 of the most recently synced sources, as the feed serves them; before / after bodies folded.GET /v1/changes reference

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
GET/v1/drugs/2db08592-445e-4883-91e2-f5f6a732a2cb?format=fhir200
{
  "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
    }
  ]
}
The same record through the FHIR adapter; meta, display names folded.Endpoint reference

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
  1. CCardiovascular systemAnatomical
  2. C10Lipid modifying agentsTherapeutic
  3. C10ALipid modifying agents, plainPharmacological
  4. C10AAHMG CoA reductase inhibitorsChemical
  5. 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)
GET/v1/drugs?country=CH&q=aspirin&limit=2200
{
  "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" }
    }
  }
}
A sample response from the Switzerland drug API page. Illustrative values.The Switzerland drug API

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).
The developer block of the live file.Open /llms.txt

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.

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.

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
Self-serve plansper month
Self-serve plans: price and monthly request quota
PlanPriceQuota
Free$010 requests in total
Pro$29/month1,500 requests
Starter$99/month20,000 requests
Growth$490/month150,000 requests
Quotas are counted per account, across its keys and its console use.

Questions

Building on Drug Database. Plainly.

Is there a free drug API key?
Yes. The free plan includes 10 requests in total with a real dd_ key, no card — enough to see real responses. Starter $99/mo for 20,000 requests and Growth $490/mo for 150,000 requests are the plans to build on.
REST, GraphQL or MCP — which should I use?
REST for an application, the MCP server for an AI agent. Both use the same key, scopes and monthly quota, and each MCP tool call counts as one request. GraphQL is available from the Pro plan.
Where does the data come from?
From public regulator feeds — the official medicine registers of 19 countries, price lists and safety feeds. 51 of 67 tracked sources are currently in sync; every record carries its source and last-synced date, and /data/sources lists each source.
Can I get notified when a record changes?
Poll the change feed for everything since a timestamp on any plan, or register signed webhooks from the Starter plan to have each change pushed to you.
Is it suitable for clinical software?
It is an informational service, not a medical device. It can feed software used by qualified professionals; it does not replace their judgement or the source of record, which every response names.

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