openFDA NDC Directory Search: Listed Drug Products avatar

openFDA NDC Directory Search: Listed Drug Products

Pricing

$1.00 / 1,000 ndc records

Go to Apify Store
openFDA NDC Directory Search: Listed Drug Products

openFDA NDC Directory Search: Listed Drug Products

Search the openFDA National Drug Code directory by keyword, brand or generic name, labeler, NDC, product type, dosage form, route, marketing category and date. Unofficial, not affiliated with or endorsed by the FDA.

Pricing

$1.00 / 1,000 ndc records

Rating

0.0

(0)

Developer

fecklesspleb

fecklesspleb

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 days ago

Last modified

Features

Limited permissions

Share

Search listed drug products in the openFDA National Drug Code (NDC) Directory, the U.S. Food and Drug Administration's public API, by keyword, brand or generic name, labeler, product NDC, product type, dosage form, route, marketing category, and a date range on the marketing start date or the listing expiration date. Each result has the product NDC, product id, SPL id, brand and generic names, labeler, product type, dosage form, route, marketing category and dates (ISO), application number, DEA schedule, pharmacological class, finished flag, active ingredients, packaging, the openfda annotation when one is present, and a source URL.

Data provided by the U.S. Food and Drug Administration (https://open.fda.gov). Unofficial, not affiliated with or endorsed by the FDA.

Disclaimer (verbatim from openFDA)

From https://open.fda.gov/apis/drug/ndc/, under "Responsible use of the data":

Do not rely on openFDA to make decisions regarding medical care. Always speak to your health provider about the risks and benefits of FDA-regulated products. We may limit or otherwise restrict your access to the API in line with our Terms of Service

Under "Disclaimer":

Please be aware of the following when using information from this endpoint: The NDC Directory contains ONLY information on final marketed drugs submitted to FDA in SPL electronic listing files by labelers. (A labeler may be either a manufacturer, including a repackager or relabeler, or, for drugs subject to private labeling arrangements, the entity under whose own label or trade name the product will be distributed.) Inclusion of information in the NDC Directory does not indicate that FDA has verified the information provided. The content of each NDC Directory entry is the responsibility of the labeler submitting the SPL file. Assignment of an NDC number does not in any way denote FDA approval of the product. Any representation that creates an impression of official approval because of possession of an NDC number is misleading and constitutes misbranding. (21 CFR 207.37 (a)(2)) Neither inclusion in the NDC Directory nor assignment of an NDC number is a determination that a product is a drug as defined by the FD&C Act, nor does either denote that a product is covered or eligible for reimbursement by Medicare, Medicaid or other payers. Assignment of NDC number to non-drug products is extremely prohibited.

What you get

FieldMeaning
recordTypeitem for an NDC listing, status for a free status row (see below)
product_ndc, product_id, spl_idNDC, concatenated product id, and SPL document id
brand_name, brand_name_base, brand_name_suffix, generic_nameNames
labeler_nameLabeler (manufacturer, repackager, relabeler, or private-label entity)
product_type, dosage_form, routeType, form and route of administration
marketing_category, marketing_start_date, marketing_end_date, listing_expiration_dateMarketing category and dates as YYYY-MM-DD
application_number, dea_schedule, pharm_class, finishedApplication number, DEA schedule, pharmacological class, finished flag
active_ingredients, packagingIngredient names and strengths, and package NDCs
openfdaopenFDA's annotation object when present. GMDN fields are removed.
sourceUrlopenFDA query URL for this product NDC
dataSourceAttribution and the unofficial note
disclaimerThe required short disclaimer, with the source URL

E-mail addresses and phone numbers are removed from free-text fields.

Input

FieldDefaultNotes
keywordnoneOptional text search
brandName, genericName, labelerNamenoneName filters
productNdcnoneLabeler-product NDC (for example 76147-235)
productTypenoneFor example HUMAN OTC DRUG
dosageForm, route, marketingCategorynoneForm, route and marketing category
dateFieldmarketing_start_dateOr listing_expiration_date; used for the date range and sort
dateFrom, dateTononeInclusive YYYY-MM-DD range
sortnewestnewest or oldest
maxItems10Up to 25,000
onlyNewfalseWhen true, returns only records not seen in previous runs, identified by product_id (or product_ndc and spl_id)
stateKeydefaultName of the seen-record list used when onlyNew is true
apiKeynoneYour own free openFDA API key (secret). Recommended, see below

The default input ({}) returns about 10 recent NDC listings, finishes in seconds, costs at most $0.01, and is never empty.

Why an openFDA API key helps

A key is optional. openFDA's authentication page says a key is required, but keyless calls are accepted and are limited to 240 requests per minute and 1,000 requests per day per IP address (https://open.fda.gov/apis/authentication/). On Apify, other users can share your IP address, so that daily budget can be used up by someone else. Adding your own free openFDA key raises the daily limit to 120,000 requests per key. There is no team key. The key is stored encrypted, sent only as the api_key query parameter, and never logged or saved.

If openFDA answers HTTP 429, the Actor backs off and retries a few times, then stops and writes a free status row telling you to add your own key (when the run was keyless). It does not use a proxy or rotate IP addresses.

Status rows (free)

The dataset is never empty. When nothing could be saved (no matches, invalid input, openFDA rate limit, robots.txt refusal, the 25,000 skip cap, or a maximum cost per run too low for one record), the run writes one row with recordType: "status" and a message. Status rows are never charged. Skip them in your code as shown below. Invalid input ends SUCCEEDED with a status row; nothing is requested or charged.

Pricing

Pay per event: $0.001 per record saved ($1 per 1,000). No start fee; status rows are free. The default input saves at most 10 records ($0.01). The run stops at your maximum cost per run.

Use it from code

Python (apify-client 3.x):

from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('<USERNAME>/openfda-ndc-directory-search').call(run_input={
'brandName': 'ibuprofen',
'productType': 'HUMAN OTC DRUG',
'maxItems': 100,
})
for item in client.dataset(run.default_dataset_id).iterate_items():
if item.get('recordType') != 'item':
print('status:', item.get('message'))
continue
print(item['product_ndc'], item['brand_name'], item['labeler_name'])

JavaScript (apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('<USERNAME>/openfda-ndc-directory-search').call({
brandName: 'ibuprofen',
productType: 'HUMAN OTC DRUG',
maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) {
if (item.recordType !== 'item') continue; // free status rows
console.log(item.product_ndc, item.brand_name, item.labeler_name);
}

Data source and licence

Data comes from the openFDA drug NDC endpoint only (https://api.fda.gov/drug/ndc.json). Other openFDA endpoints are not used.

openFDA terms (https://open.fda.gov/terms/, fetched 2026-11-13): unless otherwise noted, "the content, data, documentation, code, and related materials on openFDA is public domain and made available with a Creative Commons CC0 1.0 Universal dedication" and "You can copy, modify, distribute, and perform the work, even for commercial purposes, all without asking permission." Attribution is requested, not required. The example citation is: Data provided by the U.S. Food and Drug Administration (https://open.fda.gov). The licence page (https://open.fda.gov/license/) repeats the CC0 dedication and says "When using or citing the work, you should not imply endorsement by the author or the affirmer." This Actor is unofficial and is not affiliated with or endorsed by the FDA. No FDA logos are used.

GMDN content is excluded. The licence page states that GMDN Term Code, Name and Definition are supplied by The GMDN Agency under license and that extracting that content for commercial services requires a license from The GMDN Agency. This Actor drops every GMDN field, including any inside the openfda sub-object.

Each row records the source in dataSource and the short disclaimer in disclaimer.

Limits

  • Paging uses skip and limit. openFDA documents: "Currently, the largest allowed value for the skip parameter is 25000." (https://open.fda.gov/apis/query-parameters/) and "Using combinations of the skip/limit parameters you can page through a result set that has up to 26,000 hits" (https://open.fda.gov/apis/paging/). When the next page would go past that skip cap, the run stops and writes a free status row. Narrow the search or date range rather than paging further.
  • limit is at most 1,000 per request (openFDA's documented maximum).
  • Keyless runs share the per-IP daily budget; add your own key for reliable use. A 429 is retried with a short backoff, then the run stops (no proxy).
  • api.fda.gov/robots.txt is checked before the first request. A 4xx response counts as no rules (allowed).