# DailyMed Drug Labels, NDC & SPL Scraper (`scrapers_lat/dailymed-drug-labels-scraper`) Actor

Scrape US drug labels from the NIH DailyMed SPL registry: search by drug name, manufacturer or NDC and get setid, active ingredients, dosage form, labeler, SPL version, NDC packaging codes and an AI patient summary.

- **URL**: https://apify.com/scrapers\_lat/dailymed-drug-labels-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Developer tools, AI, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.32 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![DailyMed Drug Labels, NDC & SPL Scraper](https://scrapers.lat/banners/dailymed-drug-labels-scraper.png)](https://apify.com/scrapers_lat/dailymed-drug-labels-scraper)

## DailyMed Drug Labels, NDC & SPL Scraper

Search the NIH DailyMed database (the authoritative US Structured Product Labeling registry) by drug name, manufacturer or NDC and get clean, structured drug label records: SPL setid, drug name, active ingredients, dosage form, labeler, SPL version, published date, packaging and NDC codes, plus an optional AI patient-friendly summary.

Here is one real result (base record plus both paid add-ons enabled):

```json
{
  "setid": "3e131710-2579-446e-8076-f602ecea813f",
  "title": "IBUPROFEN TABLET, FILM COATED [AIPING PHARMACEUTICAL, INC.]",
  "drugName": "IBUPROFEN",
  "activeIngredients": null,
  "dosageForm": "TABLET, FILM COATED",
  "labeler": "AIPING PHARMACEUTICAL, INC.",
  "splVersion": 21,
  "publishedDate": "Aug 12, 2026",
  "dailyMedUrl": "https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=3e131710-2579-446e-8076-f602ecea813f",
  "source": "DailyMed",
  "observedAt": "2026-08-16T21:23:58.166Z",
  "genericName": "Ibuprofen",
  "activeIngredientsDetailed": [
    { "name": "IBUPROFEN", "strength": "400 mg" },
    { "name": "IBUPROFEN", "strength": "600 mg" },
    { "name": "IBUPROFEN", "strength": "800 mg" }
  ],
  "ndcCodes": [
    { "ndc": "11788-008-01", "packageDescriptions": ["100 in 1 BOTTLE"] },
    { "ndc": "11788-008-05", "packageDescriptions": ["500 in 1 BOTTLE"] },
    { "ndc": "11788-008-20", "packageDescriptions": ["1250 in 1 BOTTLE"] }
  ],
  "productCount": 3,
  "aiSummary": {
    "whatItIs": "Ibuprofen is a nonsteroidal anti-inflammatory drug (NSAID).",
    "commonUses": "It is commonly used to relieve pain, reduce inflammation, and lower fever.",
    "keyWarnings": [
      "May cause stomach or intestinal bleeding.",
      "Use with caution in individuals with kidney problems.",
      "Not recommended for use in late pregnancy."
    ],
    "form": "coated tablet"
  },
  "error": null
}
```

**[Input](https://apify.com/scrapers_lat/dailymed-drug-labels-scraper/input-schema) · [Output](https://apify.com/scrapers_lat/dailymed-drug-labels-scraper/output-schema) · [Pricing](https://apify.com/scrapers_lat/dailymed-drug-labels-scraper/pricing)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-NIH%20DailyMed-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)
![Billing](https://img.shields.io/badge/Billing-Pay%20per%20result-brightgreen)

### What it does

DailyMed is the US National Library of Medicine's official source for FDA drug product labeling (Structured Product Labeling, or SPL). This actor turns it into a clean dataset. Give it a drug name, a manufacturer/labeler, an NDC code, or a list of SPL setids, and it returns one row per label with:

- **setid** and **splVersion** so you can track a specific label and its revisions over time
- **drugName**, **activeIngredients**, and **dosageForm** parsed straight from the label title
- **labeler** (the manufacturer or distributor named on the package)
- **publishedDate** and the public **dailyMedUrl** for the full labeling

Two optional paid add-ons enrich each record further: structured packaging with **NDC codes and package descriptions** plus **active ingredients with strengths**, and an **AI patient-friendly summary**.

#### Why this beats a plain lookup

- **SPL setid and version tracking**: every record carries the stable setid and the SPL version, so you can detect label updates and pin a specific revision.
- **Real NDC packaging**: the details add-on returns each product's NDC codes with human-readable package descriptions (for example "100 in 1 BOTTLE"), not just a name.
- **Active ingredients with strengths**: get every strength variant of a product, deduplicated.
- **AI summaries**: turn dense labeling into a plain-English overview for patient-facing tools.

### Quickstart

Run with a drug name:

```json
{
  "drugName": "ibuprofen",
  "maxResults": 20
}
```

Add a manufacturer/labeler filter and turn on both paid add-ons:

```json
{
  "drugName": "atorvastatin",
  "manufacturer": "pfizer",
  "maxResults": 50,
  "includeDetails": true,
  "withAiSummary": true
}
```

Fetch specific labels directly by setid:

```json
{
  "setids": ["3e131710-2579-446e-8076-f602ecea813f"],
  "includeDetails": true
}
```

### Input reference

| Field | Type | Description |
| --- | --- | --- |
| `drugName` | string | Drug or product name to search (brand, generic, or active ingredient), for example `ibuprofen`. |
| `manufacturer` | string | Optional. Filter by labeler / manufacturer name (partial match), for example `walmart`. |
| `ndc` | string | Optional. National Drug Code to search, for example `11788-008-01`. |
| `setids` | array | Optional. Fetch specific SPL labels directly by their DailyMed setid. Overrides the search filters. |
| `publishedDateFrom` | string | Optional. Only keep labels published on or after this date (`MM/DD/YYYY`). |
| `maxResults` | integer | Maximum labels to collect. Free Apify plans are capped at 10 per run. |
| `includeDetails` | boolean | Paid add-on, off by default. Adds generic name, active ingredients with strengths, and NDC packaging. |
| `withAiSummary` | boolean | Paid add-on, off by default. Adds a plain-English patient summary. |
| `proxyConfiguration` | object | Optional. Route requests through Apify Proxy. |

### Output reference

| Field | Description |
| --- | --- |
| `setid` | SPL setid (stable label identifier). |
| `title` | Full SPL title as published by DailyMed. |
| `drugName` | Drug / product name parsed from the title. |
| `activeIngredients` | Active ingredients parsed from the title (when present). |
| `dosageForm` | Dosage form, for example `TABLET`, `CAPSULE`, `INJECTION`. |
| `labeler` | Labeler / manufacturer named on the package. |
| `splVersion` | SPL version number. |
| `publishedDate` | Date the label version was published. |
| `dailyMedUrl` | Link to the full DailyMed label page. |
| `genericName` | Generic name (details add-on). |
| `activeIngredientsDetailed` | Active ingredients with strengths (details add-on). |
| `ndcCodes` | NDC codes with package descriptions (details add-on). |
| `productCount` | Number of products in the SPL (details add-on). |
| `aiSummary` | AI patient-friendly summary object (AI add-on). |
| `source` | Always `DailyMed`. |
| `observedAt` | When the record was collected. |
| `error` | Error message for a record, if any. |

### Use cases

- **Pharmacovigilance and drug safety**: monitor label revisions by tracking the SPL setid and version over time.
- **NDC and formulary lookups**: resolve products to their NDC packaging codes with package descriptions for pharmacy, claims, and formulary systems.
- **KYB and compliance for pharma**: identify the labeler / manufacturer behind a product and its marketed forms.
- **Healthcare apps and patient tools**: enrich a medicine database with clean drug names, dosage forms, active ingredients, and plain-English summaries.
- **Competitive and market intelligence**: see which manufacturers label a given molecule and in which forms and strengths.
- **Clinical and academic research**: build datasets of US drug labeling across a therapeutic area or manufacturer.
- **Medical content and knowledge bases**: generate patient-facing overviews from authoritative labeling.

### Billing and limits

This actor is billed pay per event. Free Apify plans are capped at 10 results per run and cannot use the paid add-ons.

| Event | Price (USD) | When it is charged |
| --- | --- | --- |
| `result` | $0.008 | Once per drug label (SPL) record returned. |
| `details` | $0.008 | Once per label, only when the packaging / NDC enrichment (`includeDetails`) returns data. |
| `ai_summary` | $0.012 | Once per label, only when the AI summary (`withAiSummary`) produces usable output. |

You are never charged for a label that fails, for an add-on that returns no data, or for results beyond your configured spend limit.

#### About the AI summary

The `aiSummary` field is an AI-generated convenience summary produced from the label metadata. It is general information to help you understand a product at a glance. It is **not medical advice**, is not a substitute for the official labeling, and should not be used for diagnosis, dosing, or treatment decisions. Always consult the full DailyMed label and a qualified healthcare professional.

### Notes and honest limitations

- The `manufacturer` filter matches the labeler name and supports partial matches.
- `publishedDateFrom` is applied to each label's published date after fetching (the DailyMed service does not filter by date server-side).
- `activeIngredients` in the base record is parsed from the label title and may be empty for some titles; enable `includeDetails` to get the structured `activeIngredientsDetailed` with strengths.
- Data comes from public NIH DailyMed labeling and reflects what the manufacturer filed.

# Actor input Schema

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

Drug or product name to search (brand, generic or active ingredient), for example 'ibuprofen', 'atorvastatin' or 'lisinopril'. Matches the DailyMed drug name index.

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

Optional. Filter by labeler / manufacturer name (partial match), for example 'walmart', 'pfizer' or 'aiping'. Combine with a drug name to narrow results.

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

Optional. National Drug Code to search, for example '11788-008-01'. Returns the SPL(s) that carry this NDC.

## `setids` (type: `array`):

Optional. Fetch specific SPL labels directly by their DailyMed setid (UUID). When provided, the search filters above are ignored.

## `publishedDateFrom` (type: `string`):

Optional. Only keep labels published on or after this date (MM/DD/YYYY). Applied to the label's published date after fetching.

## `maxResults` (type: `integer`):

Maximum number of SPL labels to collect. Free Apify plans are capped at 10 per run.

## `includeDetails` (type: `boolean`):

Off by default. When on, fetches each label's structured packaging data to add the generic name, detailed active ingredients with strengths, and NDC codes with package descriptions. Requires a paid Apify plan. Billed per label only when detail data is returned.

## `withAiSummary` (type: `boolean`):

Off by default. When on, generates a plain-English, patient-friendly overview (what it is, common uses, key warnings, form) for each label. This is an AI-generated convenience summary, not medical advice. Requires a paid Apify plan. Billed per label only when a summary is produced.

## `proxyConfiguration` (type: `object`):

Optional. Route requests through Apify Proxy.

## Actor input object example

```json
{
  "drugName": "ibuprofen",
  "maxResults": 20,
  "includeDetails": false,
  "withAiSummary": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "drugName": "ibuprofen",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/dailymed-drug-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 = {
    "drugName": "ibuprofen",
    "maxResults": 20,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/dailymed-drug-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/Cb971A950Xe1685g5/builds/1hWzNIGFtjk3JQcsv/openapi.json
