# FDA NDC Product Directory (`nexgenwatch/fda-ndc-product-directory`) Actor

One drug_product_record per product in the official FDA National Drug Code (NDC) Directory via openFDA — keyless, logged-out.

- **URL**: https://apify.com/nexgenwatch/fda-ndc-product-directory.md
- **Developed by:** [NexGen Watch](https://apify.com/nexgenwatch) (community)
- **Categories:** Automation, Developer tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $13.40 / 1,000 fda ndc product directories

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🛡️ FDA NDC Product Directory

One `drug_product_record` per product in the official FDA National Drug Code (NDC) Directory via openFDA — keyless, logged-out.

**Difference:** One record per NDC product with two-level product/package normalization: labeler, generic/brand name, dosage form, route, marketing category, product type, application number, pharm class and listing expiration, plus the packaging levels (package NDC, description, marketing dates) and active ingredients (name + strength) as structured lists. Distinct from fleet-1's label/safety, Orange Book, and approvals actors — this is the product/package directory.

Output is one `fda_ndc_product` row per result; billing is pay-per-event, the value event being one fda ndc product directory (a $0.02 start fee per run, then $0.02 per fda ndc product directory). Source: api.fda.gov.

No login, no API key and no CAPTCHA solving are involved: the source is read logged-out with an identified contact User-Agent.

### 📊 Sample Output

[![FDA NDC Product Directory sample output — a table of real fda ndc product directory rows (product_ndc, product_id, generic_name, brand_name) from run AjT2wClUEV14dNrTG on build 0.1.7](https://api.apify.com/v2/key-value-stores/80Y7h3rmVN5CWK7Mw/records/fda-ndc-product-directory-sample)](https://apify.com/nexgenwatch/fda-ndc-product-directory?fpr=2ayu9b)

Real rows from run `AjT2wClUEV14dNrTG` on build 0.1.7 (2026-09-18), the same input as the Quick start below — every value is as the source published it (emails masked, long text shortened):

| product_ndc | product_id | generic_name | brand_name | labeler_name | product_type |
|---|---|---|---|---|---|
| 76420-833 | 76420-833_1f9dd2b3-12f6-c5c3-e063-6294a90a8065 | Amoxicillin | Amoxicillin | Asclemed USA, Inc. | HUMAN PRESCRIPTION DRUG |
| 76472-4048 | 76472-4048_0fccc8c3-140a-46cf-e063-6394a90a255d | DULCAMARA | DULCAMARA 30C | SEVENE USA | HUMAN OTC DRUG |
| 77338-307 | 77338-307_1bbb6d64-77d3-86e2-e063-6294a90abdc4 | White Petrolatum | Astonea Vitamin A and D | ASTONEA LABS PRIVATE LIMITED | HUMAN OTC DRUG |
| 78518-007 | 78518-007_46e05ccb-82a8-f692-e063-6294a90a079a | ZINC OXIDE | Cream | MONAT GLOBAL CORP | HUMAN OTC DRUG |
| 76168-119 | 76168-119_6c30260f-b9e7-58c3-e053-2991aa0a818c | Acetaminophen PM | Pain Relief PM | Velocity Pharma | HUMAN OTC DRUG |
| 76282-720 | 76282-720_054af266-c850-45c8-b027-d810d7d5f0ae | LANREOTIDE ACETATE | LANREOTIDE ACETATE | EXELAN PHARMACEUTICALS, INC. | HUMAN PRESCRIPTION DRUG |
| 76420-084 | 76420-084_ead317e5-93f1-fd8d-e053-2995a90adbf6 | LIDOCAINE HYDROCHLORIDE | Lidocaine Hydrochloride | Asclemed USA, Inc. | HUMAN PRESCRIPTION DRUG |
| 76420-523 | 76420-523_412ebee3-8ea7-9e7a-e063-6394a90aa63a | prazosin hydrochloride | prazosin hydrochloride | ASCLEMED USA INC. | HUMAN PRESCRIPTION DRUG |

The run finished with the status message: `NORMAL: 50 unique rows (0 duplicates collapsed). billable=50`

### ✅ What you get

Each row is flat JSON with these fields (from the dataset schema and the sample run; a field the source does not publish for a given row is `null`):

- `record_type` (string) — e.g. `fda_ndc_product`
- `product_ndc` (string/null) — e.g. `76420-833`
- `product_id` (string/null) — e.g. `76420-833_1f9dd2b3-12f6-c5c3-e063-6294a90a8065`
- `generic_name` (string/null) — e.g. `Amoxicillin`
- `brand_name` (string/null) — e.g. `Amoxicillin`
- `labeler_name` (string/null) — e.g. `Asclemed USA, Inc.`
- `product_type` (string/null) — e.g. `HUMAN PRESCRIPTION DRUG`
- `dosage_form` (string/null) — e.g. `CAPSULE`
- `route` (string/null) — e.g. `["ORAL"]`
- `marketing_category` (string/null) — e.g. `ANDA`
- `marketing_start_date` (string/null) — e.g. `20051109`
- `listing_expiration_date` (string/null) — e.g. `20261231`
- `application_number` (string/null) — e.g. `ANDA065271`
- `pharm_class` (string/null) — e.g. `["Penicillin-class Antibacterial [EPC]", "Penicillins [CS]"]`
- `active_ingredients` (string/null) — e.g. `[{"name": "AMOXICILLIN", "strength": "500 mg/1"}]`
- `packaging` (string/null) — e.g. `[{"package_ndc": "76420-833-01", "description": "100 CAPSULE in 1 BOTTLE (76420-`
- `package_count` (string/null) — e.g. `5`
- `spl_id` (string/null) — e.g. `1f9dd2b3-12f6-c5c3-e063-6294a90a8065`
- `fda_disclaimer` (string/null) — e.g. `Listing in the FDA NDC Directory is not FDA approval or endorsement and does not`
- `source` (string/null) — e.g. `fda-ndc-product-directory`
- `release_date` (string/null) — null in every sample row
- `source_url` (string/null) — e.g. `https://api.fda.gov/drug/ndc.json`
- `observed_at` (string/null) — e.g. `2026-09-18T21:40:44Z`
- `license` (string/integer/null) — e.g. `openFDA — U.S. Food & Drug Administration public data`
- `attribution` (string/integer/null) — e.g. `Source: openFDA NDC Directory (api.fda.gov). Listing is not FDA approval.`
- `terminal` (string/integer/null) — null in every sample row
- `reported_total` (string/integer/null) — null in every sample row
- `raw_seen` (string/integer/null) — null in every sample row
- `duplicates` (string/integer/null) — null in every sample row
- `unique_found` (string/integer/null) — null in every sample row
- `delivered` (string/integer/null) — null in every sample row
- `scope` (string/integer/null) — null in every sample row
- `note` (string/integer/null) — null in every sample row

**✅ What you get**

- `record_type` (string) — e.g. `fda_ndc_product`
- `product_ndc` (string/null) — e.g. `76420-833`
- `product_id` (string/null) — e.g. `76420-833_1f9dd2b3-12f6-c5c3-e063-6294a90a8065`
- `generic_name` (string/null) — e.g. `Amoxicillin`
- `brand_name` (string/null) — e.g. `Amoxicillin`
- `labeler_name` (string/null) — e.g. `Asclemed USA, Inc.`
- `product_type` (string/null) — e.g. `HUMAN PRESCRIPTION DRUG`
- `dosage_form` (string/null) — e.g. `CAPSULE`
- `route` (string/null) — e.g. `["ORAL"]`
- `marketing_category` (string/null) — e.g. `ANDA`
- `marketing_start_date` (string/null) — e.g. `20051109`
- `listing_expiration_date` (string/null) — e.g. `20261231`
- `application_number` (string/null) — e.g. `ANDA065271`
- `pharm_class` (string/null) — e.g. `["Penicillin-class Antibacterial [EPC]", "Penicillins [CS]"]`
- `active_ingredients` (string/null) — e.g. `[{"name": "AMOXICILLIN", "strength": "500 mg/1"}]`
- `packaging` (string/null) — e.g. `[{"package_ndc": "76420-833-01", "description": "100 CAPSULE in 1 BOTTLE (76420-`
- `package_count` (string/null) — e.g. `5`
- `spl_id` (string/null) — e.g. `1f9dd2b3-12f6-c5c3-e063-6294a90a8065`
- `fda_disclaimer` (string/null) — e.g. `Listing in the FDA NDC Directory is not FDA approval or endorsement and does not`
- `source` (string/null) — e.g. `fda-ndc-product-directory`
- `release_date` (string/null) — null in every sample row
- `source_url` (string/null) — e.g. `https://api.fda.gov/drug/ndc.json`
- `observed_at` (string/null) — e.g. `2026-09-18T20:58:28Z`
- `license` (string/integer/null) — e.g. `openFDA — U.S. Food & Drug Administration public data`
- `attribution` (string/integer/null) — e.g. `Source: openFDA NDC Directory (api.fda.gov). Listing is not FDA approval.`
- `terminal` (string/integer/null) — null in every sample row
- `reported_total` (string/integer/null) — null in every sample row
- `raw_seen` (string/integer/null) — null in every sample row
- `duplicates` (string/integer/null) — null in every sample row
- `unique_found` (string/integer/null) — null in every sample row
- `delivered` (string/integer/null) — null in every sample row
- `scope` (string/integer/null) — null in every sample row
- `note` (string/integer/null) — null in every sample row

**What you get**

One `drug_product_record` per record, deduplicated on its natural key. A `run_receipt` row carries the source URL, scope, license, attribution, and totals.

### ⚙️ Sample inputs

**1. Quick start — the Store example (this is what the sample above came from)**

```json
{
  "maxRecords": 50
}
```

The sample run charged exactly: 1 × $0.02 apify-actor-start + 50 × $0.02 drug_product_record = **$1.02** on the Free tier — every delivered row was billed.

**2. A smaller, narrowed run**

```json
{
  "maxRecords": 5
}
```

Caps the run at 5 rows — about $0.12 on the Free tier ($0.02 start + 5 × $0.02).

**3. A full-size run**

```json
{
  "maxRecords": 5000
}
```

Up to 5000 rows (the schema default for `maxRecords`) — about $100.02 on the Free tier ($0.02 start + 5000 × $0.02) if the source has that many.

### 🧾 JSON sample record

One real record from run `AjT2wClUEV14dNrTG`, exactly as it lands in the dataset (emails masked, long text shortened):

```json
{
  "record_type": "fda_ndc_product",
  "product_ndc": "76420-833",
  "product_id": "76420-833_1f9dd2b3-12f6-c5c3-e063-6294a90a8065",
  "generic_name": "Amoxicillin",
  "brand_name": "Amoxicillin",
  "labeler_name": "Asclemed USA, Inc.",
  "product_type": "HUMAN PRESCRIPTION DRUG",
  "dosage_form": "CAPSULE",
  "route": "[\"ORAL\"]",
  "marketing_category": "ANDA",
  "marketing_start_date": "20051109",
  "listing_expiration_date": "20261231",
  "application_number": "ANDA065271",
  "pharm_class": "[\"Penicillin-class Antibacterial [EPC]\", \"Penicillins [CS]\"]",
  "active_ingredients": "[{\"name\": \"AMOXICILLIN\", \"strength\": \"500 mg/1\"}]",
  "packaging": "[{\"package_ndc\": \"76420-833-01\", \"description\": \"100 CAPSULE in 1 BOTTLE (76420-833-01)\", \"marketing_start_date\": \"20240814\", \"marketing_end_date\": null}, {\"package_ndc\": \"76420-833-05\", \"description\": \"500 CAPSULE in 1 BOTTLE (76420-833-05",
  "package_count": "5",
  "spl_id": "1f9dd2b3-12f6-c5c3-e063-6294a90a8065",
  "fda_disclaimer": "Listing in the FDA NDC Directory is not FDA approval or endorsement and does not certify the information is correct.",
  "source": "fda-ndc-product-directory",
  "release_date": null,
  "source_url": "https://api.fda.gov/drug/ndc.json",
  "observed_at": "2026-09-18T21:40:44Z",
  "license": "openFDA — U.S. Food & Drug Administration public data",
  "attribution": "Source: openFDA NDC Directory (api.fda.gov). Listing is not FDA approval."
}
```

### 🔧 How it works

**Source.** The actor reads api.fda.gov — endpoints: `https://api.fda.gov/drug/ndc.json`. Public pages and feeds only; nothing behind a login.

**Transport.** Plain HTTPS from the Apify platform, no proxy. robots.txt is read first and a disallowed path is never fetched. Every request carries an identified contact User-Agent.

**Charging.** Each fda ndc product directory is charged at the moment it is pushed (`drug_product_record`); a row that fails to charge is not delivered, so the dataset count always equals the charged count.

**🔧 How it works**

**How it behaves**

The openFDA NDC endpoint is paged at the 1,000-record page law; each product carries the FDA disclaimer that listing is NOT approval. Bounded.

**Source**

`https://api.fda.gov/drug/ndc.json`

**Attribution**

Source: openFDA NDC Directory (api.fda.gov), U.S. FDA public data. Listing in the NDC Directory is not FDA approval and does not certify the information is correct.

**What is not done.** No login, no cookie or CAPTCHA bypass, no private or personal-account data, no browser automation.

### 💰 Pricing example

| Event | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Actor Start (`apify-actor-start`) | $0.02 | $0.02 | $0.02 | $0.02 |
| FDA NDC Product Directory (`drug_product_record`) | $0.02 | $0.018 | $0.016 | $0.0134 |

Worked at the live Free-tier price:

- 8 fda ndc product directorys: $0.02 start + 8 × $0.02 = **$0.18**
- 25 fda ndc product directorys: $0.02 start + 25 × $0.02 = **$0.52**
- 5000 fda ndc product directorys: $0.02 start + 5000 × $0.02 = **$100.02**

A run that delivers zero rows charges the $0.02 start fee only. A BLOCKED run (source refused) fails loud and charges no value event. The start fee is charged once per GB of run memory; the default run memory is 4096 MB.

Yield on the sample run: `NORMAL: 50 unique rows (0 duplicates collapsed). billable=50`. `maxRecords` is a hard ceiling on what is delivered and billed, never a target.

### ⚖️ Legal & ToS

This actor reads public, logged-out pages and feeds published by api.fda.gov. It collects only what the source publishes to any visitor, keeps to the source's robots rules (checked on every run), identifies itself with a contact User-Agent, and does not access accounts, private data or anything behind authentication. Use the output in line with the source's terms and your local law; the intended use is B2B research and monitoring.

### ❓ FAQ

**Q: Do I need an API key or a login?**\
A: No. The source (api.fda.gov) is read logged-out; the input schema has no key field and the actor carries no secrets.

**Q: Why did my run return 0 rows?**\
A: Read the run's status message. GENUINE_EMPTY means the source was read and had nothing in scope for your input; BLOCKED means the source refused and the run failed without billing a value event — retry later or narrow the input. A zero-row run bills the start fee only.

**Q: How many rows can one run return?**\
A: Up to `maxRecords` (default 5000). Raise the cap for a bigger run; you pay per delivered row.

**Q: How fresh is the data?**\
A: Every run reads the source live at run time; nothing is cached between runs. Put it on a schedule for a continuous feed.

**Q: What formats can I export?**\
A: The dataset downloads as JSON, CSV, Excel, XML or RSS from the run's Dataset tab or the Apify API, and any run can push to a webhook or integration.

**Q: How is this different from the other product safety and approvals scrapers actors?**\
A: Same output shape and billing model; this one covers api.fda.gov. The siblings under **Related Actors** cover the other sources or slices — run several on one schedule for a combined feed.

**Q: Are there rate limits?**\
A: The actor paces itself against the source and honours its robots rules; there is no per-buyer limit beyond your Apify plan's concurrency.

### 🆘 Troubleshooting

- **Run FAILED with BLOCKED** → the source refused the request or changed its page shape → nothing was billed beyond the start fee; retry after a while, and if it persists open an Issue with the run id.
- **Status says CAPPED** → your cap (`maxRecords`) was reached → raise it for a bigger run.
- **Input validation error on start** → a field is outside the schema's allowed values → start from the Quick start block and change one field at a time.
- **Run TIMED-OUT** → a very wide request on a slow day → raise the run timeout in Run options or narrow the input; what was delivered before the timeout is still in the dataset.

### 🔗 Related Actors

- [FDA 510(k) Device Clearances Scraper](https://apify.com/nexgenwatch/fda-510k-device-clearances?fpr=2ayu9b) — Clean, structured records of medical-device 510(k) clearances, sourced live from the official openFDA device 510(k) API (https://api.fda.gov/device/5…
- [FDA Device Establishment Listings](https://apify.com/nexgenwatch/fda-device-establishment-listings?fpr=2ayu9b) — One establishment_record per FDA device establishment registration from the official openFDA endpoint — keyless, logged-out
- [FDA Drug Approvals (Drugs@FDA) Scraper](https://apify.com/nexgenwatch/fda-drug-approvals?fpr=2ayu9b) — Clean, structured records of FDA drug approvals, sourced live from the official openFDA Drugs@FDA API (https://api.fda.gov/drug/drugsfda.json) — an a…
- [Japan PMDA Drug Approvals Scraper](https://apify.com/nexgenwatch/japan-pmda-drug-approval-watch?fpr=2ayu9b) — Scrape Japan PMDA new drug approvals: product, company, indication and approval date. Every run returns the current records as a dataset. Optional wa…
- [New Zealand Medsafe Recalls Scraper](https://apify.com/nexgenwatch/new-zealand-medsafe-recall-watch?fpr=2ayu9b) — Scrape New Zealand Medsafe medicine and device recalls: product, sponsor, reason and recall date. Every run returns the current records as a dataset.…
- [UK MHRA Medicine and Device Alerts Scraper](https://apify.com/nexgenwatch/uk-mhra-medicine-device-alert-watch?fpr=2ayu9b) — Scrape UK MHRA medicine and device safety alerts and recalls: product, issue, action and date. Every run returns the current records as a dataset. Op…
- 🏢 **About NexGenData** — NexGen Watch is NexGenData's fleet of more than 300 public data actors built on official sources, pay-per-result. Browse the catalog at [apify.com/nexgenwatch](https://apify.com/nexgenwatch?fpr=2ayu9b).

### ⭐ Found this useful?

If this actor saved you a manual check, a quick **[review on the Apify Store](https://apify.com/nexgenwatch/fda-ndc-product-directory?fpr=2ayu9b)** helps other teams find it. Feature request or a source that changed? Open it from the **Issues** tab — every one is read.

# Actor input Schema

## `maxRecords` (type: `integer`):

Max records delivered (buyer bound; billing is one charge per delivered record).

## `userAgent` (type: `string`):

Override the transparent crawler UA.

## Actor input object example

```json
{
  "maxRecords": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxRecords": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgenwatch/fda-ndc-product-directory").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxRecords": 50 }

# Run the Actor and wait for it to finish
run = client.actor("nexgenwatch/fda-ndc-product-directory").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxRecords": 50
}' |
apify call nexgenwatch/fda-ndc-product-directory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nexgenwatch/fda-ndc-product-directory"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5apjvg5CFO5eg4RdM/builds/bbDIn4cad8bklEr3i/openapi.json
