# FDA NDC Drug Code Lookup API: NDC Directory Search (`clearpathdata/ndc-drug-lookup`) Actor

Look up NDC codes or drug names in FDA's official NDC Directory: brand, generic, labeler, dosage form, route, packages, DEA schedule. Bulk, no API key. $2 per 1,000 records.

- **URL**: https://apify.com/clearpathdata/ndc-drug-lookup.md
- **Developed by:** [Six Figure Salute](https://apify.com/clearpathdata) (community)
- **Categories:** Business, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 ndc records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Drug Code Lookup API: NDC Directory Search

Look up NDC codes or drug names in FDA's official NDC Directory: brand, generic, labeler, dosage form, route, packages, DEA schedule. Bulk, no API key. $2 per 1,000 records.

### What does it do?

**FDA NDC Drug Code Lookup** turns National Drug Codes (NDCs) or drug names into clean product records from the FDA's official NDC Directory (openFDA): brand and generic names, labeler, dosage form, route, marketing category, active ingredients and strengths, DEA schedule and package NDCs.

- ✅ Official public data source: no login, no cookies, no proxies
- ✅ Fast: plain API calls, typical runs finish in seconds
- ✅ Clean, flat JSON / CSV / Excel output, ready for Sheets, BI tools or AI agents
- ✅ Pay only for results: no monthly rental

### Use cases

- **Pharmacy & PBM data teams:** normalize and validate NDCs in claims files.
- **Healthtech developers:** enrich drug lists without building an openFDA client.
- **Compliance:** check DEA schedules and listing expirations in bulk.

### How to use it

1. Click **Try for free**. The input is prefilled with a working example.
2. Edit the input (see examples below) and click **Start**.
3. Download results as JSON, CSV, Excel or HTML, or pull them via API.

### Input examples

**Mixed NDCs and names**

```json
{
  "queries": [
    "0002-1433",
    "lidocaine"
  ],
  "maxResultsPerQuery": 5
}
```

### Output

Sample rows:

| query | product_ndc | brand_name | generic_name | labeler | dosage_form | route | dea_schedule |
|---|---|---|---|---|---|---|---|
| 0002-1433 | 0002-1433 | Trulicity | Dulaglutide | Eli Lilly and Company | INJECTION, SOLUTION | \["SUBCUTANEOUS"] |  |
| lidocaine | 80425-0508 | MLK Kit F2 | marcaine, lidocaine, kenalog, povidone iodine | Advanced Rx of Tennessee, LLC | KIT | \["EPIDURAL", "INFILTRATION", "INTRA-ARTICULAR", "INTRAMUSCUL |  |
| lidocaine | 79903-030 | Equate Lidocaine and Menthol Paraben Free | Lidocaine 4% plus Menthol 1% | Walmart Stores Inc | PATCH | \["TOPICAL"] |  |

Sample JSON record (long fields shortened):

```json
{
  "query": "0002-1433",
  "found": true,
  "product_ndc": "0002-1433",
  "brand_name": "Trulicity",
  "generic_name": "Dulaglutide",
  "labeler": "Eli Lilly and Company",
  "dosage_form": "INJECTION, SOLUTION",
  "route": [
    "SUBCUTANEOUS"
  ],
  "marketing_category": "BLA",
  "product_type": "HUMAN PRESCRIPTION DRUG",
  "active_ingredients": [
    {
      "name": "DULAGLUTIDE",
      "strength": ".75 mg/.5mL"
    }
  ],
  "dea_schedule": null,
  "packages": [
    "0002-1433-80: 4 SYRINGE in 1 CARTON (0002-1433-80)  / .5 mL in 1 SYRINGE (0002-1433-01)"
  ],
  "listing_expiration_date": "20271231",
  "source": "openFDA NDC Directory (api.fda.gov/drug/ndc.json); unvalidated, not for medical decisions"
}
```

### Pricing

Pay per event: **$0.002 per NDC record** ($2.00 per 1,000). No start fee, no monthly rental. Rows for not-found inputs and errors are free.

| Results | Cost |
|---|---|
| 100 NDC records | $0.20 |
| 1,000 NDC records | $2.00 |
| 10,000 NDC records | $20.00 |

Apify's free plan includes monthly platform credit, so you can try it at no cost.

### Integrations

- **Google Sheets:** use Apify's Google Sheets integration, or import the dataset CSV link with `=IMPORTDATA()`.
- **Zapier & Make:** trigger runs and receive the dataset via the official Apify apps.
- **Webhooks & schedules:** run daily or hourly and post results anywhere.
- **AI agents (MCP):** available to Claude, ChatGPT and other agents through the Apify MCP server.
- **API & SDKs:** call from Python, JavaScript or any HTTP client:

```bash
curl -X POST 'https://api.apify.com/v2/acts/clearpathdata~ndc-drug-lookup/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"queries": ["0002-1433", "lidocaine"], "maxResultsPerQuery": 5}'
```

### FAQ

**What can I search?**

Product NDCs like `0002-1433` and drug names (brand or generic).

**Where is the data from?**

FDA NDC Directory via openFDA, a public U.S. government dataset.

**Something not working?**

Open an issue on the Actor's Issues tab, and it will be fixed quickly.

### More details

Turn NDCs or drug names into clean product records from FDA's official NDC Directory.

#### What it does

Paste NDC product or package codes (e.g. `0002-1433`, `0002-1433-80`) or brand/generic names. You get labeler, dosage form, route, active ingredients and strengths, DEA schedule, marketing category, and every package NDC. Data comes live from openFDA (api.fda.gov), the official FDA API. No scraping and no login. Useful for pharmacy ops, claims and data cleaning, inventory systems, and health-tech prototypes.

#### Disclaimer

openFDA data is unvalidated per FDA; it is not for medical decisions. Not affiliated with FDA.

# Actor input Schema

## `queries` (type: `array`):

NDCs (e.g. 0002-1433) or drug names

## `maxResultsPerQuery` (type: `integer`):

Max results per query

## Actor input object example

```json
{
  "queries": [
    "0002-1433",
    "lidocaine"
  ],
  "maxResultsPerQuery": 25
}
```

# Actor output Schema

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

FDA NDC drug records

# 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 = {
    "queries": [
        "0002-1433",
        "lidocaine"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearpathdata/ndc-drug-lookup").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 = { "queries": [
        "0002-1433",
        "lidocaine",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("clearpathdata/ndc-drug-lookup").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 '{
  "queries": [
    "0002-1433",
    "lidocaine"
  ]
}' |
apify call clearpathdata/ndc-drug-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clearpathdata/ndc-drug-lookup"
        }
    }
}
```

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/4LMaDAM4xTKYhUrKC/builds/kKy4OmHrr7cPbdWYx/openapi.json
