apyhub
Back
▣ RETRIEVAL KIT · VERIFICATION KIT

Search US Drug Information API

What it does

The Drug Label API looks up US medicines in openFDA data. Send a drug name or an NDC code and get back the official FDA label, NDC products, approvals, reported adverse events and recalls as JSON.

Send drug with a brand or generic name, such as metformin or Lipitor. Send ndc instead when you have the code from a pack, such as 0002-1433 or 0002-1433-80. Use drugs to check 1 to 10 names in one call. Choose what comes back with mode:

  • report (default): one row per drug with a label summary, NDC count, approvals, the top 10 adverse events and the latest recalls.
  • label: full label sections, such as indications, dosage, warnings and the boxed warning.
  • ndc, approvals, adverse_events, recalls: one row per product, application, reaction or recall. Set limit (1 to 100) to cap the rows.
  • interactions: send 2 to 10 drugs to see if one label mentions another. This is a text match, so a missing mention does not mean two drugs are safe together.

Teams use this drug label API to build drug information pages and run an NDC lookup for pharmacy claims. Safety teams use it to watch FDA drug recalls and adverse event reports. The data is FDA data as published and is not medical advice.

Check recalls for food, devices and consumer products with the Check Product Recalls API. Find studies for a drug with the Clinical Trials Search API.

POST
Search US Drug Information API- NDC, Interactions, Recalls, MCP
https://api.eu.apyhub.com/martin10291/search-us-drug-information

QUICKSTART

GUIDE

Quickstart

Look up a drug by name or NDC and return a summary report.

curl -X POST "https://api.eu.apyhub.com/martin10291/search-us-drug-information" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"drug":"metformin","mode":"report"}'

What you'll get back

Returns a JSON object with count and items. In report mode there is one row per drug with a short label summary, the number of NDC products, FDA approvals, the top adverse events reported to FAERS and the latest recalls, plus the source and a not-medical-advice disclaimer. The example below is the real response for metformin, shortened: long label texts are cut and lists show their first entries only.

{
  "count": 1,
  "items": [
    {
      "adverseEvents": {
        "note": "FAERS reports are voluntary and do not prove the drug caused the reaction.",
        "seriousReports": 248469,
        "top": [
          {
            "reaction": "Diarrhoea",
            "reports": 23424
          },
          {
            "reaction": "Nausea",
            "reports": 23350
          },
          {
            "reaction": "Drug ineffective",
            "reports": 19268
          }
        ],
        "totalReports": 360840
      },
      "approvals": [
        {
          "applicationNumber": "NDA020357",
          "firstApprovalDate": "1995-03-03",
          "latestSubmission": {
            "date": "2018-05-30",
            "number": "34",
            "status": "AP",
            "type": "SUPPL"
          },
          "products": [
            {
              "activeIngredients": [
                "METFORMIN HYDROCHLORIDE 750MG"
              ],
              "brandName": "GLUCOPHAGE",
              "dosageForm": "TABLET",
              "marketingStatus": "Discontinued",
              "route": "ORAL"
            }
          ],
          "sponsor": "EMD SERONO INC"
        }
      ],
      "approvalsCount": 214,
      "disclaimer": "Not medical advice. FDA data as published; openFDA is not endorsed by FDA for clinical use.",
      "drug": "METFORMIN",
      "errors": null,
      "label": {
        "adverseReactions": "The following adverse reactions are also discussed elsewhere in the labeling: • Lactic Acidosis [ see Boxed Warning and Warnings and Precautions (5.1) ] • Vi…",
        "boxedWarning": "WARNING: LACTIC ACIDOSIS Postmarketing cases of metformin-associated lactic acidosis have resulted in death, hypothermia, hypotension, and resistant bradyarr…",
        "brandName": "Metformin Hydrochloride",
        "contraindications": "Metformin hydrochloride extended-release tablets are contraindicated in patients with: • Severe renal impairment (eGFR below 30 mL/min/1.73 m 2 ) [ see Warni…",
        "dailyMedUrl": "https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=7e41818c-60e9-4bcf-9586-7bb8d33d5e89",
        "dosage": "• Swallow metformin hydrochloride extended-release tablets whole and never crush, cut or chew ( 2.1 ) • Starting dose: 500 mg orally once daily with the even…",
        "drugInteractions": "Table 2 presents clinically significant drug interactions with metformin hydrochloride extended-release tablets. Table 2: Clinically Significant Drug Interac…",
        "effectiveDate": "2026-09-15",
        "genericName": "METFORMIN",
        "indications": "Metformin hydrochloride extended-release tablets are indicated as an adjunct to diet and exercise to improve glycemic control in adults with type 2 diabetes…",
        "manufacturer": "Mylan Pharmaceuticals Inc.",
        "pregnancy": "Risk Summary Limited data with metformin hydrochloride extended-release tablets in pregnant women are not sufficient to determine a drug-associated risk for…",
        "productNdcs": [
          "0378-6001",
          "0378-6002"
        ],
        "productType": "HUMAN PRESCRIPTION DRUG",
        "route": [
          "ORAL"
        ],
        "rxcui": [
          "1807894",
          "1807917"
        ],
        "setId": "7e41818c-60e9-4bcf-9586-7bb8d33d5e89",
        "splId": "88a13bb5-a5b6-46be-b935-a4e2e187ea93",
        "substances": [
          "METFORMIN HYDROCHLORIDE"
        ],
        "warnings": "• Lactic Acidosis: See boxed warning ( 5.1 ) • Vitamin B 12 Deficiency: Metformin may lower vitamin B 12 levels. Measure hematological parameters annually an…"
      },
      "ndcProducts": 743,
      "ndcSample": [
        "50090-7280",
        "59651-549",
        "68382-760"
      ],
      "query": "metformin",
      "recalls": {
        "count": 91,
        "latest": [
          {
            "classification": "Class II",
            "country": "United States",
            "product": "Synjardy XR Tablets (empagliflozin and metformin hydrochloride extended-release tablets), 12.5/1000 mg, 60 Tablets per Bottle, Rx only, Distributed by: Boehr…",
            "reason": "CGMP Deviations: An incorrect detergent was used and the required swab sampling was not performed on a production hopper that had previously been used for a…",
            "recallNumber": "D-0657-2026",
            "recallingFirm": "Boehringer Ingelheim Pharmaceuticals, Inc.",
            "reportDate": "2026-07-08",
            "state": "CT",
            "status": "Ongoing"
          }
        ]
      },
      "retrievedAt": "2026-11-26T09:58:02Z",
      "source": "openFDA (U.S. Food and Drug Administration), CC0",
      "stale": false,
      "type": "report"
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body
Optional. Dashed product NDC like 0002-1433 or package NDC like 0002-1433-80. Wins over Drug name in report, label and ndc modes.
Brand or generic name, e.g. metformin, Lipitor, Ozempic, atorvastatin. For several drugs use Drugs instead. Not needed when you give an NDC.
report = one row with label summary, NDC count, approvals, top 10 adverse events and latest recalls; label = full label sections; ndc = products with packages; approvals = Drugs@FDA applications; adverse_events = most reported reactions with totals; recalls = enforcement reports, newest first.

About this endpoint

What it does

Returns a JSON object that summarizes drug information for the requested drug or NDC, with an items array of result rows and a top-level count for the number of rows returned. The exact row content varies by mode and may include label details, NDC data, approvals, adverse events, recalls, and interaction-related data.

Request Body

ParameterTypeMandatoryDescription
ndcStringNoOptional dashed product NDC like 0002-1433 or package NDC like 0002-1433-80. Takes precedence over drug in report, label, and ndc modes.
drugStringNoBrand or generic name, such as a single drug name. Not needed when you provide ndc.
modeENUMNoAllowed values: report, label, ndc, approvals, adverse_events, recalls, interactions. Default: report.
drugsString ArrayNo1-10 brand or generic names. In report, label, ndc, approvals, adverse_events, and recalls modes, each drug gets its own rows. In interactions mode, provide 2-10 names so every pair is checked in both labels. Max items: 100.
limitIntegerNoNumber of rows for label, ndc, recalls, and adverse_events modes. Allowed range: 1-100. Default: 20. report mode always returns one row.

Response

Returns a JSON object with a count integer and an items array of result rows. The shape of each row depends on mode, and every row has a type field: report (one summary row per drug), label, ndc, approval, adverse_events_total and adverse_event, recall, or interaction. Every row also carries the source, a disclaimer and retrievedAt. This is FDA data as published, not medical advice.

ParameterTypeDescription
countIntegerNumber of rows in items.
itemsObject ArrayResult rows. The fields depend on mode; each row has a type telling you which kind it is.
items[].typeStringRow type: report, label, ndc, approval, adverse_events_total, adverse_event, recall or interaction.
items[].sourceStringData source and licence: openFDA (U.S. Food and Drug Administration), CC0.
items[].disclaimerStringNot medical advice. FDA data as published; openFDA is not endorsed by FDA for clinical use.
items[].retrievedAtStringWhen the data was fetched (ISO 8601 UTC).
items[].staleBooleantrue if the data was served from an older copy because openFDA was unavailable.
items[].drugStringreport and adverse_events rows. The drug name the row is about.
items[].queryStringreport rows. The drug name or NDC you sent.
items[].labelObjectreport rows. Short label summary with the same fields as a label row (below).
items[].ndcProductsIntegerreport rows. Number of NDC products found for the drug.
items[].ndcSampleString Arrayreport rows. A few of those product NDCs.
items[].approvalsCountIntegerreport rows. Number of FDA applications found.
items[].approvalsObject Arrayreport rows. FDA applications, same fields as an approval row.
items[].adverseEventsObjectreport rows. FAERS summary: totalReports, seriousReports, top (array of reaction and reports, top 10) and note.
items[].recallsObjectreport rows. count of FDA recalls and latest (array of recent recalls, same fields as a recall row).
items[].errorsObjectreport rows. Per-section errors if part of the report could not be loaded, otherwise null.
items[].brandNameStringlabel and ndc rows. Brand name.
items[].genericNameStringlabel and ndc rows. Generic name.
items[].manufacturerStringlabel rows. Manufacturer on the label.
items[].effectiveDateStringlabel rows. Label version date.
items[].productTypeStringlabel rows. e.g. HUMAN PRESCRIPTION DRUG.
items[].routeString Arraylabel and ndc rows. Route of administration, e.g. ORAL.
items[].substancesString Arraylabel rows. Active substances.
items[].indicationsStringlabel rows. Indications and usage (what the drug is used for).
items[].dosageStringlabel rows. Dosage and administration.
items[].contraindicationsStringlabel rows. When the drug must not be used.
items[].warningsStringlabel rows. Warnings and precautions.
items[].boxedWarningStringlabel rows. Boxed (black box) warning, if any.
items[].adverseReactionsStringlabel rows. Adverse reactions section of the label.
items[].drugInteractionsStringlabel rows. Drug interactions section of the label.
items[].pregnancyStringlabel rows. Pregnancy section of the label.
items[].productNdcsString Arraylabel rows. Product NDCs covered by the label.
items[].rxcuiString Arraylabel rows. RxNorm concept ids.
items[].setIdStringlabel rows. DailyMed set id.
items[].splIdStringlabel rows. SPL document id.
items[].dailyMedUrlStringlabel rows. Link to the label on DailyMed.
items[].productNdcStringndc rows. Product NDC, e.g. 0002-1433.
items[].labelerStringndc rows. Company that markets the product.
items[].dosageFormStringndc rows. e.g. INJECTION, SOLUTION.
items[].activeIngredientsObject Arrayndc rows. Each with name and strength.
items[].packagesObject Arrayndc rows. Each with packageNdc, description and marketingStartDate.
items[].pharmClassString Arrayndc rows. Pharmacologic classes.
items[].marketingCategoryStringndc rows. e.g. BLA, NDA, ANDA.
items[].marketingStartDateStringndc rows. Marketing start date.
items[].applicationNumberStringndc and approval rows. FDA application number, e.g. NDA209637.
items[].finishedBooleanndc rows. true for finished products.
items[].sponsorStringapproval rows. Company that holds the application.
items[].firstApprovalDateStringapproval rows. Date of the original approval.
items[].latestSubmissionObjectapproval rows. Most recent submission: type, number, status and date.
items[].productsObject Arrayapproval rows. Approved products: brandName, activeIngredients, dosageForm, route, marketingStatus.
items[].totalReportsIntegeradverse_events_total rows. Number of FAERS reports for the drug.
items[].seriousReportsIntegeradverse_events_total rows. Number of serious reports.
items[].matchedOnStringadverse_events_total rows. How the drug was matched in FAERS.
items[].rankIntegeradverse_event rows. Position in the list, most reported first.
items[].reactionStringadverse_event rows. Reported reaction, e.g. Fatigue.
items[].reportsIntegeradverse_event rows. Number of reports with that reaction.
items[].noteStringadverse_events and interaction rows. Important caveat, e.g. that FAERS reports do not prove the drug caused the reaction.
items[].recallNumberStringrecall rows. FDA recall number.
items[].classificationStringrecall rows. Class I (most serious), Class II or Class III.
items[].reasonStringrecall rows. Reason for the recall.
items[].productStringrecall rows. Recalled product description.
items[].recallingFirmStringrecall rows. Company that recalled the product.
items[].statusStringrecall rows. e.g. Ongoing, Terminated.
items[].reportDateStringrecall rows. Date of the FDA enforcement report.
items[].distributionStringrecall rows. Where the product was distributed.
items[].cityStringrecall rows. Recalling firm city.
items[].stateStringrecall rows. Recalling firm state.
items[].countryStringrecall rows. Recalling firm country.
items[].drugAStringinteraction rows. First drug of the pair.
items[].drugBStringinteraction rows. Second drug of the pair.
items[].mentionedBooleaninteraction rows. true if either drug's FDA label mentions the other. This is a text match, not a clinical interaction check: false does not mean the drugs are safe together.
items[].sameSubstanceBooleaninteraction rows. true if both names are the same active substance.
items[].mentionsObject Arrayinteraction rows. Where the mention was found: inLabelOf, matched, section and the label sentence.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.