Get Drug By NDC

GEThttps://api-drugs.dataandapis.com/v1/drugs/{ndc}

Get Drug By NDC is an endpoint of the Drugs API. 135,000 FDA drug products by NDC, joined with 17,900 recall reports.

Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.

Request

Path parameters

ParameterExample
ndc58151-155Required

Example request

curl
curl "https://api-drugs.dataandapis.com/v1/drugs/58151-155" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
const res = await fetch("https://api-drugs.dataandapis.com/v1/drugs/58151-155", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python
import os, requests

r = requests.get(
    "https://api-drugs.dataandapis.com/v1/drugs/58151-155",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Example response

Example response
{
  "ok": true,
  "product_ndc": "58151-155",
  "brand_name": "Lipitor",
  "generic_name": "atorvastatin calcium",
  "labeler": "Viatris Specialty LLC",
  "product_type": "HUMAN PRESCRIPTION DRUG",
  "dosage_form": "TABLET, FILM COATED",
  "routes": [
    "ORAL"
  ],
  "dea_schedule": null,
  "active_ingredients": [
    {
      "name": "ATORVASTATIN CALCIUM TRIHYDRATE",
      "strength": "10 mg/1"
    }
  ],
  "brand_name_base": "Lipitor",
  "marketing_category": "NDA",
  "application_number": "NDA020702",
  "pharm_classes": {},
  "packaging": [
    {
      "package_ndc": "58151-155-77",
      "description": "90 TABLET, FILM COATED in 1 BOTTLE (58151-155-77)",
      "marketing_start_date": "20240501",
      "sample": false
…
Show full response
{
  "ok": true,
  "product_ndc": "58151-155",
  "brand_name": "Lipitor",
  "generic_name": "atorvastatin calcium",
  "labeler": "Viatris Specialty LLC",
  "product_type": "HUMAN PRESCRIPTION DRUG",
  "dosage_form": "TABLET, FILM COATED",
  "routes": [
    "ORAL"
  ],
  "dea_schedule": null,
  "active_ingredients": [
    {
      "name": "ATORVASTATIN CALCIUM TRIHYDRATE",
      "strength": "10 mg/1"
    }
  ],
  "brand_name_base": "Lipitor",
  "marketing_category": "NDA",
  "application_number": "NDA020702",
  "pharm_classes": {},
  "packaging": [
    {
      "package_ndc": "58151-155-77",
      "description": "90 TABLET, FILM COATED in 1 BOTTLE (58151-155-77)",
      "marketing_start_date": "20240501",
      "sample": false
    }
  ],
  "rxnorm_rxcui": [
    "259255",
    "262095",
    "617310",
    "617311",
    "617312",
    "617314",
    "617318",
    "617320"
  ],
  "unii": [
    "48A5M73Z4Q"
  ],
  "spl_set_id": "a60cc18b-0631-4cf0-b021-9f52224ece65",
  "marketing": {
    "start": "20240501",
    "end": null,
    "listing_expiration": "20271231"
  },
  "finished": true,
  "recalls": {
    "count": 0,
    "active": false,
    "reports": []
  }
}