APIs / openFDA / NDC directory

openFDA: NDC directory

FDA National Drug Code directory by NDC or name: labeler, dosage form, routes, active ingredients and strengths, marketing category and packages.

GET /v1/openfda/drug-ndc

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
ndcstringOptionalUp to 14 characters
A product NDC (0573-0164) or package NDC (0573-0164-04), with hyphens. A lookup: 404 when no product has it.
namestringOptionalUp to 200 characters
Brand or generic name, for example advil pm.
searchstringOptionalUp to 500 characters
An openFDA search expression, for example dosage_form:"TABLET". Combined with the other filters by AND.
limitintegerOptionalAny
Results per page, 1 to 100. Default 10.
skipintegerOptionalAny
Results to skip, 0 to 25000, for paging. Default 0.

Example request

openFDA
GET/v1/openfda/drug-ndc?ndc=0573-0164
{
  "success": true,
  "data": {
    "total": 1,
    "page": 1,
    "skip": 0,
    "has_more": false,
    "count": 1,
    "items": [
      {
        "product_ndc": "0573-0164",
        "brand_name": "ADVIL PM",
        "generic_name": "diphenhydramine citrate and ibuprofen",
        "labeler": "Haleon US Holdings LLC",
        "product_type": "HUMAN OTC DRUG",
        "dosage_form": "TABLET, COATED",
        "routes": [
          "ORAL"
        ],
        "active_ingredients": [
          {
            "name": "DIPHENHYDRAMINE CITRATE",
            "strength": "38 mg/1"
          },
          {
            "name": "IBUPROFEN",
            "strength": "200 mg/1"
          }
        ],
        "pharm_classes": [
          "Anti-Inflammatory Agents",
          "Non-Steroidal [CS]",
          "Cyclooxygenase Inhibitors [MoA]"
        ],
        "marketing_category": "NDA",
        "application_number": "NDA021394",
        "marketing_start_date": "2005-12-21",
        "listing_expiration_date": "2026-12-31",
        "packages": [
          {
            "package_ndc": "0573-0164-04",
            "description": "4 TABLET, COATED in 1 POUCH (0573-0164-04)",
            "marketing_start_date": "2005-12-21"
          },
          {
            "package_ndc": "0573-0164-05",
            "description": "2 BOTTLE in 1 CARTON (0573-0164-05)  / 2 TABLET, COATED in 1 BOTTLE",
            "marketing_start_date": "2005-12-21"
          },
          {
            "package_ndc": "0573-0164-08",
            "description": "1 VIAL in 1 PACKAGE (0573-0164-08)  / 8 TABLET, COATED in 1 VIAL",
            "marketing_start_date": "2017-03-17"
          }
        ],
        "spl_set_id": "658fc201-47c9-6a6d-8af9-6208298d43b4"
      }
    ]
  },
  "meta": {
    "request_id": "req_7516dadc399543a990ebd75527cba92d",
    "credits_charged": 1,
    "credits_remaining": 178
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.items has these 15 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
product_ndcstring
brand_namestring
generic_namestring
labelerstring
product_typestring
dosage_formstring
routesstring[]
active_ingredientsobject[]
pharm_classesstring[]
marketing_categorystring
application_numberstring
marketing_start_datestring
listing_expiration_datestring
packagesobject[]
spl_set_idstring