Skip to content

Pharmacode lookup

A Swiss Pharmacode in. The product record out.

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

curl 'https://drug-database.com/v1/drugs/lookup\
?system=pharmacode&code=1234567' \
  -H 'Authorization: Bearer dd_live_…'
One indexed lookup on system=pharmacode returns the canonical drug plus the exact pack that matched.Make your first call

Live data

Any pack code. One product record.

Turn a Swiss Pharmacode into a full drug product in one call. GET /v1/drugs/lookup?system=pharmacode&code=… does a single indexed read and returns the canonical drug row — ATC code, manufacturer, Swissmedic dispensing category, BAG-SL reimbursement flag — plus the matched alias with its pack size and public price.

  • One indexed read. Single lookup on (system, code) — the hot path of every Swiss dispense flow.
  • GTIN / Swissmedic-No bridge. Resolved product carries swissmedic_no and all aliases, so you can cross-walk identifier systems.
  • Pack-level detail. The matched alias returns pack_size, public_price and currency for the exact Pharmacode.
  • NDC7260340302Atorvastatin calciumUnited States · FDA National Drug Codes · 10 blister pack in 1 carton (72603-403-02) / 100 tablet, film coated in 1 blister pack (72603-403-01)
  • CIP133400930124451ATORVASTATINE ZENTIVA 40 mg, comprimé pelliculéFrance · ANSM public medicines database · plaquette(s) opa : polyamide orienté aluminium pvc-aluminium de 30 comprimé(s)
  • APB (BE)2583961Lipitor 40 mgBelgium · FAMHP medicines register · 84 comprimés pelliculés, 40 mg
  • Varenr (NO)420082Atorvastatin AccordNorway · Norwegian prescribing catalogue · 100
  • SÚKL kód0289612SORTISCzechia · SÚKL medicines register · 100
  • GTIN7680693140011Atorvastatin-MephaSwitzerland · Swissmedic packs · blist 30 stk
One real pack identifier per coding system, each resolved to its product record.Open the Atorvastatin calcium record

The response

The shape you get back. Every row with its source.

Because every product carries a Swissmedic-No and a set of aliases, a Pharmacode lookup is also your bridge to GTIN and Swissmedic-No: resolve once, then read the full record to cross-walk to any other identifier system for the same pack.

  • 666,680 products from 19 countries’ registers
  • Every row carries its source and last-checked date
{
  "drug": {
    "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"
  },
  "matched_alias": {
    "drug_id": "3f8a1c2d-…",
    "system": "pharmacode",
    "code": "1234567",
    "pack_size": 30,
    "public_price": 14.35,
    "currency": "CHF",
    "is_primary": true
  },
  "_meta": { "sources": { "bag_sl": { "last_synced_at": "…" }, "oddb": { "last_synced_at": "…" } } }
}
Trimmed, with illustrative values — the live example above is a real row.Every field in the reference

Where it comes from

Coverage & sourcing. Each with its last sync.

  • The same endpoint resolves gtin, pharmacode, cip13, pzn, swissmedic_no, ean, ndc11 and dmd_amppid.
  • Pharmacode and pack data are data sourced from oddb and BAG-SL.
  • Each resolved row carries last_synced_at for pack-level freshness.
  • We are not affiliated with or endorsed by Refdata, oddb or BAG.
  • Lookups need the drugs:read scope.
  • The same endpoint resolves GTIN, NDC, PZN, CIP13, EAN and Swissmedic-No — see the docs.
  • Swissmedic product information
  • Swissmedic recalls
  • EPha interaction checks
  • Swissmedic authorised medicines
  • BAG Specialty List
  • Swissmedic packs
  • Refdata Swiss article index
Sources passing their checks, as of 24 Nov, 08:32 UTC.Every source and its status

Questions

Before you build. Answered plainly.

What is a Pharmacode?
Pharmacode is the Swiss pharmaceutical article number maintained in the Refdata register. It identifies a specific pack on the Swiss market. The lookup endpoint maps it to the canonical drug row in one indexed read.
Can I bridge from Pharmacode to GTIN or Swissmedic-No?
Yes. The resolved drug carries its swissmedic_no, and the full record (GET /v1/drugs/{id}) lists every alias — GTIN, Swissmedic-No and others — for the same product, so you can cross-walk between identifier systems.
Which other identifier systems does the same endpoint accept?
The same /v1/drugs/lookup endpoint resolves gtin, pharmacode, cip13, pzn, swissmedic_no, ean, ndc11 and dmd_amppid — just change the system parameter.

Start building with the Pharmacode lookup.

A free key includes 10 lookups in total — enough to judge the data. Pro is $29/month when you build on it.

No card required.