healthcare.dev docs
API referenceDrugs

Look up an NDC

GET /v1/drugs/ndc/{ndc}

GET https://api.healthcare.dev/v1/drugs/ndc/{ndc}

Accepts a product NDC (0002-0152), a package NDC in any 10-digit layout (0002-0152-01) or an 11-digit NDC (00002015201). Returns the FDA product with its packages (each normalized to NDC-11) and the linked RxNorm concepts (rxcuis).

Requires an API key: Authorization: Bearer hdev_live_.... See Authentication.

Path parameters

NameTypeRequiredDescriptionExample
ndcstringyesProduct, package (any 10-digit layout) or 11-digit NDC, with or without hyphens0002-0152-01

Query parameters

NameTypeRequiredDescriptionExample
view"compact" | "full"nocompact returns only the fields an agent usually needs (fewer tokens); full (default) returns every fieldcompact
fieldsstringnoComma-separated record fields to return, e.g. code,display,billablecode,display,billable

Examples

curl

curl "https://api.healthcare.dev/v1/drugs/ndc/0002-0152-01" \
  -H "Authorization: Bearer $HDEV_API_KEY"

TypeScript

const res = await fetch("https://api.healthcare.dev/v1/drugs/ndc/0002-0152-01", {
  headers: { Authorization: `Bearer ${process.env.HDEV_API_KEY}` },
});
const { data, meta } = await res.json();

Python

import os
import requests

res = requests.get("https://api.healthcare.dev/v1/drugs/ndc/0002-0152-01", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"})
body = res.json()

Try it

GEThttps://api.healthcare.dev/v1/drugs/ndc/0002-0152-01?view=compact&fields=code%2Cdisplay%2Cbillable
Get a free key
Copy as curl
curl "https://api.healthcare.dev/v1/drugs/ndc/0002-0152-01?view=compact&fields=code%2Cdisplay%2Cbillable" \
  -H "Authorization: Bearer $HDEV_API_KEY"

Response

The product

{
  "data": {
    "product_ndc": "0093-1048",
    "spl_document_ids": [
      "b7b1c1f2-2a5e-4e3c-9b39-4c7c1d8f0a11"
    ],
    "brand_name": null,
    "generic_name": "Metformin Hydrochloride",
    "labeler": "Teva Pharmaceuticals USA, Inc.",
    "dosage_form": "TABLET, FILM COATED",
    "route": [
      "ORAL"
    ],
    "active_ingredients": [
      {
        "name": "METFORMIN HYDROCHLORIDE",
        "strength": "500 mg/1"
      }
    ],
    "product_type": "HUMAN PRESCRIPTION DRUG",
    "marketing_category": "ANDA",
    "application_number": "ANDA075977",
    "pharm_classes": [
      "Biguanide [EPC]"
    ],
    "dea_schedule": null,
    "listing_certified_through": "2026-12-31",
    "rxcuis": [
      "861007"
    ],
    "rxnorm": [
      {
        "rxcui": "861007",
        "name": "metformin hydrochloride 500 MG Oral Tablet",
        "tty": "SCD"
      }
    ],
    "packages": [
      {
        "ndc": "0093-1048-01",
        "ndc11": "00093104801",
        "description": "100 TABLET, FILM COATED in 1 BOTTLE (0093-1048-01)",
        "marketing_start": "2002-01-24",
        "marketing_end": null
      }
    ],
    "status": "active",
    "effective_start": "2026-10-01",
    "effective_end": null,
    "replaced_by": []
  },
  "meta": {
    "source": "cms-icd10",
    "data_version": "2026.1",
    "retrieved_at": "2026-10-24T12:00:00Z",
    "license": "Public domain (CMS). Reference data, not medical advice."
  },
  "links": {
    "self": "/v1/drugs/ndc/0002-0152-01",
    "next": null
  }
}

Fields

FieldTypeAlways presentDescription
product_ndcstringyes
spl_document_idsstring[]yesSPL documents listing this product (FDA PRODUCTID suffixes)
brand_namestring | nullyes
generic_namestring | nullyes
labelerstringyes
dosage_formstring | nullyes
routestring[]yes
active_ingredientsobject[]yes
product_typestringyes
marketing_categorystring | nullyes
application_numberstring | nullyes
pharm_classesstring[]yes
dea_schedulestring | nullyes
listing_certified_throughstring | null (date)yes
rxcuisstring[]noLinked RxNorm concepts (filled at query time)
rxnormobject[]noLinked RxNorm concepts with names and term types (filled at query time)
packagesNdcPackage[]yes
status"active" | "retired" | "replaced"yes
effective_startstring (date)yes
effective_endstring | null (date)yes
replaced_bystring[]no

Errors

Errors are application/problem+json (RFC 9457). Branch on type, not on title. See Errors.

StatustypeWhen
400invalid-requestA parameter or the body failed validation; errors lists each field.
401unauthorizedMissing, malformed or revoked API key.
404not-foundNo record with that id (retired records are still returned).
429rate-limited / quota-exceededToo many requests per second (retry after Retry-After), or the monthly quota is used up.
503dataset-unavailable / unavailableThe dataset has no published version yet, or the service is degraded.

On this page