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.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
ndc | string | Optional | Up to 14 characters A product NDC (0573-0164) or package NDC (0573-0164-04), with hyphens. A lookup: 404 when no product has it. |
name | string | Optional | Up to 200 characters Brand or generic name, for example advil pm. |
search | string | Optional | Up to 500 characters An openFDA search expression, for example dosage_form:"TABLET". Combined with the other filters by AND. |
limit | integer | Optional | Any Results per page, 1 to 100. Default 10. |
skip | integer | Optional | Any 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.
| Field | Type |
|---|---|
product_ndc | string |
brand_name | string |
generic_name | string |
labeler | string |
product_type | string |
dosage_form | string |
routes | string[] |
active_ingredients | object[] |
pharm_classes | string[] |
marketing_category | string |
application_number | string |
marketing_start_date | string |
listing_expiration_date | string |
packages | object[] |
spl_set_id | string |