# DailyMed FDA Drug Labels Scraper (`parseforge/dailymed-fda-labels-scraper`) Actor

Scrapes FDA drug labels from the DailyMed database. Search by drug name, active ingredient, NDC code, or manufacturer, and get structured SPL data for each matching label.

- **URL**: https://apify.com/parseforge/dailymed-fda-labels-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Education, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.75 / 1,000 result items

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### DailyMed FDA Drug Labels Scraper

**Scrape FDA drug labels from DailyMed by drug name, active ingredient, NDC, or manufacturer, up to a million per run.** Each label returns the full structured SPL data, including indications, dosage, warnings, and packaging. No API key. Export to CSV, JSON, Excel, or XML.

DailyMed is the official NIH site for FDA-approved drug labeling, but downloading labels one by one is slow and manual. This Actor searches the public database by brand name, generic name, active ingredient, NDC code, or manufacturer, and returns each matching label as a structured row. It handles the pagination and parsing so you get clean, consistent data for every result.

| Who uses it | What they scrape DailyMed for |
|---|---|
| Pharmacovigilance analysts | Monitoring label changes for safety signal detection across drug classes. |
| Pharmacy benefit managers | Extracting NDC codes and packaging details for formulary management. |
| Clinical researchers | Gathering structured indications and dosage data for systematic reviews. |
| Healthcare data engineers | Building a local, queryable database of current FDA-approved labeling. |

### What it does

This Actor collects FDA drug labels from the DailyMed database and returns each one as a flat, structured row with the full SPL label content.

- 🔍 **Drug name search:** Find labels by brand name, generic name, or partial match (e.g. ibuprofen, Lipitor, metformin).
- 🧪 **Active ingredient filter:** Narrow results to a specific substance, such as atorvastatin or lisinopril.
- 📦 **NDC code lookup:** Retrieve the exact label for a National Drug Code like 0093-1019-01.
- 🏭 **Manufacturer filter:** Limit results to a specific labeler, such as Pfizer, Mylan, or Teva.
- ⚠️ **DEA schedule filter:** Restrict to controlled substances by schedule (C1 through C5).
- 📋 **Marketing status filter:** Filter by FDA application type, including NDA, ANDA, OTC monograph, and unapproved drugs.
- 📅 **Publication date filter:** Only collect labels published or updated on or after a given date.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with DailyMed data

**📈 Monitor label changes for pharmacovigilance.**

A drug safety team runs the Actor weekly with a publishedSince filter to detect new boxed warnings, updated adverse reactions, or revised indications across a portfolio of drugs.

**💊 Build a pharmacy formulary database.**

A PBM extracts NDC codes, packaging configurations, and marketing status for every label from a set of manufacturers to populate their internal formulary system.

**🔬 Gather structured data for clinical research.**

A researcher searches by active ingredient to collect indications, dosage forms, and contraindications for all approved products containing a specific substance.

**🏛️ Support regulatory compliance workflows.**

A compliance officer filters by ANDA marketing status and manufacturer to audit generic drug labeling against the reference listed drug.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API key** | Reads the public DailyMed search and label pages directly, no registration or authentication required. |
| **Structured SPL data** | Returns the full Structured Product Labeling content in a flat, consistent schema. |
| **Flexible search** | Combine drug name, ingredient, NDC, manufacturer, schedule, and marketing status filters. |
| **Scalable** | Collect up to a million labels per run, with automatic pagination and error handling. |

### How it compares

This Actor offers flexible search by drug name, ingredient, NDC, and manufacturer with DEA schedule and marketing status filters, while competitors vary in their filtering and data coverage.

| Feature | ParseForge | DailyMed Drug Label Scraper - FDA SPL, NDC & Labeler Data | DailyMed Drug Label Scraper | DailyMed Drug Label Scraper (FDA/NLM) |
|---|---|---|---|---|
| Search by drug name | Yes | Yes | Yes | Yes |
| Search by NDC code | Yes | Yes | Yes | Not listed |
| Filter by active ingredient | Yes | Not listed | Yes | Not listed |
| Filter by manufacturer | Yes | Yes | Not listed | Not listed |
| Filter by DEA schedule | Yes | Not listed | Not listed | Not listed |
| Filter by marketing status | Yes | Not listed | Not listed | Not listed |
| Filter by publication date | Yes | Not listed | Not listed | Not listed |

### Configure the run

Drive the Actor with a drug name, active ingredient, NDC code, or manufacturer, alone or in combination, and filters run as each label is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "maxItems": 10,
  "drugName": "ibuprofen"
}
```

A larger pull:

```json
{
  "maxItems": 200,
  "drugName": "ibuprofen"
}
```

### Pricing

Pay-per-result: **$0.005 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.50 |
| 1,000 results | $5.00 |
| 10,000 results | $50.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [DailyMed FDA Drug Labels Scraper](https://apify.com/parseforge/dailymed-fda-labels-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to DailyMed through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/dailymed-fda-labels-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your search terms are spelled correctly. Try broadening your search by removing optional filters like ingredient, NDC, or manufacturer. A drug name alone should return results if it exists in DailyMed.

**Why are some labels missing fields?**

Not all labels contain every SPL section. Some older or simpler labels may lack certain sections like boxed warnings or clinical pharmacology. This reflects the actual data submitted by the manufacturer.

**The run is taking a long time. Is that normal?**

Yes, especially with a high maxItems value. DailyMed's search pages can be slow to paginate. Try reducing maxItems or adding filters to narrow the result set.

**I got an error about the publishedSince date format.**

The publishedSince field requires the YYYY-MM-DD format exactly. For example, use 2024-01-15, not 1/15/2024 or January 15 2024.

**Why does my NDC search return multiple labels?**

A single NDC code can appear in multiple label versions or across different SPL document sets. The Actor returns all matching labels. Use additional filters like publishedSince to narrow results.

### FAQ

| Question | Answer |
|---|---|
| What is DailyMed? | DailyMed is the official website of the U.S. National Library of Medicine that provides the most current FDA-approved drug labeling (package inserts) submitted by manufacturers. |
| Do I need an API key or FDA account? | No. This Actor reads the public DailyMed website directly. No registration, API key, or authentication is required. |
| What data does each label row contain? | Each row returns the full Structured Product Labeling (SPL) content, including indications, dosage and administration, contraindications, warnings, adverse reactions, drug interactions, and packaging information. |
| Can I search by generic drug name? | Yes. The drugName field accepts brand names, generic names, or partial matches. Searching for 'metformin' returns all labels with metformin in the name. |
| How do I filter by active ingredient? | Use the ingredient field to specify an active substance like 'atorvastatin calcium'. This filters labels to only those containing that ingredient. |
| Can I look up a specific NDC code? | Yes. Enter the full NDC code (e.g. 0093-1019-01) in the ndc field to retrieve the exact label for that packaged product. |
| What is the DEA schedule filter for? | It restricts results to controlled substances by their schedule classification, from Schedule I through Schedule V. Leave it on 'Any' to include all schedules. |
| What does the marketing status filter do? | It filters labels by their FDA application type, such as New Drug Application (NDA), Abbreviated NDA for generics, OTC monograph, or unapproved drugs. |
| How do I get only recently updated labels? | Set the publishedSince field to a date in YYYY-MM-DD format. The Actor will only return labels published or revised on or after that date. |
| How many labels can I scrape in one run? | You can set maxItems up to 1,000,000 labels per run. The Actor handles pagination automatically. |
| What output formats are supported? | You can export your dataset to CSV, JSON, Excel, or XML directly from the Apify platform. |
| Is this legal to use? | DailyMed is a public U.S. government website. This Actor accesses publicly available data. You are responsible for complying with the site's terms of service for your use case. |

### Related actors

- [fda-drug-approvals-scraper](https://apify.com/parseforge/fda-drug-approvals-scraper?fpr=vmoqkp): Use this to scrape FDA drug approval records, including application numbers, approval dates, and review classifications, instead of the full label text.

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by U.S. National Library of Medicine. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `maxItems` (type: `integer`):

How many drug labels to collect per run.

## `drugName` (type: `string`):

Search by brand name, generic name, or part of either (e.g. ibuprofen, lipitor, metformin).

## `ingredient` (type: `string`):

Filter by an active ingredient substance name.

## `ndc` (type: `string`):

National Drug Code (e.g. 0093-1019-01).

## `manufacturer` (type: `string`):

Labeler / manufacturer name (e.g. Pfizer, Mylan, Teva).

## `deaSchedule` (type: `string`):

Controlled substance schedule.

## `marketingStatus` (type: `string`):

Filter by FDA marketing status.

## `publishedSince` (type: `string`):

Only include labels published or updated on or after this date.

## Actor input object example

```json
{
  "maxItems": 10,
  "drugName": "ibuprofen"
}
```

# Actor output Schema

## `overview` (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 = {
    "maxItems": 10,
    "drugName": "ibuprofen"
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/dailymed-fda-labels-scraper").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 = {
    "maxItems": 10,
    "drugName": "ibuprofen",
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/dailymed-fda-labels-scraper").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 '{
  "maxItems": 10,
  "drugName": "ibuprofen"
}' |
apify call parseforge/dailymed-fda-labels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/dailymed-fda-labels-scraper"
        }
    }
}
```

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/GHtVV0VoZXexdJHPs/builds/Jl42oJALiqbDdZr5G/openapi.json
