Skip to content

NDC and barcode lookup

Scan a pack. Get the drug.

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

# Barcode scan → GTIN
curl 'https://drug-database.com/v1/drugs/lookup\
?system=gtin&code=7680651870019' \
  -H 'Authorization: Bearer dd_live_…'

# US National Drug Code
curl 'https://drug-database.com/v1/drugs/lookup\
?system=ndc11&code=00071015523' \
  -H 'Authorization: Bearer dd_live_…'
Pass a scanned GTIN or a US NDC to the same lookup endpoint and get back the canonical drug plus the matched pack.Make your first call

Live data

Any pack code. One product record.

Resolve the identifier on a medication pack to a drug in one call. The barcode your scanner reads is a GTIN (or EAN); a US pack carries an NDC. Pass it to GET /v1/drugs/lookup?system=gtin&code=… (or system=ndc11) and get back the canonical drug row plus the exact pack that matched.

  • Barcode → product. GTIN/EAN from a scanner resolves to the canonical drug row in one indexed read.
  • NDC in the same shape. system=ndc11 resolves a US National Drug Code with an identical response — only the system changes.
  • Cross-system identity. One product, many identifiers: resolve any one, then read the full record to map to the rest.
  • 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ód0289630SORTISCzechia · SÚKL medicines register · 30
  • 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.

Identifier resolution is unified: GTIN, NDC, EAN, Pharmacode, PZN, CIP13, dm+d AMPP-ID and Swissmedic-No all hit the same endpoint and return the same shape. Resolve once, then read the full record to cross-walk between systems for the same product.

  • 694,197 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": {
    "system": "gtin",
    "code": "7680651870019",
    "pack_size": 30,
    "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.

  • Identifier systems: gtin, ndc11, pharmacode, cip13, pzn, swissmedic_no, ean, dmd_amppid.
  • Alias data is data sourced from oddb, BAG-SL, FDA NDC and the national registers.
  • Unknown identifiers return a clean 404 identifier_not_found — no fuzzy guesses.
  • We are not affiliated with or endorsed by GS1, the FDA or the national registers.
  • Lookups need the drugs:read scope.
  • Unknown identifiers return a clean 404 identifier_not_found — see the docs.
  • FDA drug shortages
  • FDA National Drug Codes
  • FDA product labels
  • DailyMed labels (NLM)
  • NIH LiverTox
  • Medicaid acquisition cost (NADAC)
  • FDA drug recalls
Sources passing their checks, as of 24 Nov, 19:30 UTC.Every source and its status

Questions

Before you build. Answered plainly.

My scanner reads a GTIN/EAN barcode — what do I pass?
A linear barcode on a medication pack encodes a GTIN (or EAN). Pass system=gtin and the digits in code. The endpoint resolves it to the canonical drug row, with the matched pack returned alongside.
Can I resolve a US NDC?
Yes. Pass system=ndc11 with an 11-digit National Drug Code. The same endpoint and the same response shape — only the identifier system changes.
Which identifier systems are supported?
gtin, ndc11, pharmacode, cip13, pzn, swissmedic_no, ean and dmd_amppid. Resolve any one to a single canonical product, then read the full record to cross-walk to the others.

Start building with the NDC & barcode 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.