# DailyMed Drug Label Updates with NDC Codes (`thoob/dailymed-label-update-feed`) Actor

Recently published or updated DailyMed drug labels (SPLs) with set ID, version, title, labeler, publish date and NDC codes, from the official DailyMed web services. Filter by days back, date, labeler or drug name. No key needed. Only delivered label rows are billed.

- **URL**: https://apify.com/thoob/dailymed-label-update-feed.md
- **Developed by:** [Pono Data](https://apify.com/thoob) (community)
- **Categories:** News, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 drug labels

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

## DailyMed Drug Label Updates with NDC Codes

This actor lists drug labels (SPLs) recently published or updated on DailyMed, the US National Library of Medicine label database, and adds the NDC package codes for each label. It is for pharmacists, drug data teams, compliance staff and researchers who track label changes.

### Input

```json
{
  "daysBack": 7,
  "maxRecords": 20,
  "onlyNew": false
}
```

- `daysBack` (1 to 3650, default 7): labels published on or after today (UTC) minus this many days.
- `since` (YYYY-MM-DD): used instead of `daysBack`. Must be a real date, not in the future.
- `labeler`, `drugName`: optional filters passed to DailyMed.
- `onlyNew`: deliver only label versions that earlier `onlyNew` runs did not deliver. A new version of a known label is delivered.
- `maxRecords`: cap on billed rows, 0 means no cap.

### Output

Illustration only, values may differ:

```json
{
  "setid": "3f2a9c1e-0000-4b7d-9a11-123456789abc",
  "splVersion": 3,
  "title": "IBUPROFEN TABLET, FILM COATED [EXAMPLE LABS INC.]",
  "labeler": "EXAMPLE LABS INC.",
  "publishedDate": "2026-11-19",
  "publishedDateText": "Nov 19, 2026",
  "ndcCodes": ["12345-678-01", "12345-678-05"],
  "ndcCount": 2,
  "ndcStatus": "ok",
  "sourceUrl": "https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=3f2a9c1e-0000-4b7d-9a11-123456789abc",
  "listUrl": "https://dailymed.nlm.nih.gov/dailymed/services/v2/spls.json?published_date=2026-11-14&published_date_comparison=gte&pagesize=20&page=1",
  "ndcUrl": "https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/3f2a9c1e-0000-4b7d-9a11-123456789abc/ndcs.json",
  "retrievedAt": "2026-11-21T12:00:00Z"
}
```

`labeler` is the text in the final square brackets of the title, copied as served, or null. `publishedDate` is null when the source date cannot be read.

### Who uses it

- Pharmacy systems teams who update drug databases with new `splVersion` values and `ndcCodes`.
- Formulary and compliance staff who watch label changes from a given `labeler`.
- Health data vendors who map `setid` to NDC codes for product catalogs.
- Drug market analysts who follow new labels for a `drugName`.

### Pricing

Pay per event `label-record`: USD 1.00 per 1,000 delivered label rows (USD 0.001 each). Only delivered label rows are charged. Every other row is free. The platform spend cap and `maxRecords` stop the run cleanly before any row ships unbilled.

### Limits

- Results come newest first, 20 labels per list page.
- Requests are paced at least 600 ms apart, so each label takes about a second.
- `ndcStatus` is `partial` when a label has more than 100 NDC codes; only the first 100 are kept.
- `ndcStatus` is `unavailable`, with no codes, when the NDC lookup fails or returns a different label version. The row is still delivered and billed.
- If DailyMed stops answering, the run keeps the rows delivered so far and ends with a warning.
- `onlyNew` remembers the newest 20,000 label versions.

### FAQ

#### Is any input required?

No. `daysBack` or `since` set the date window, and `labeler` and `drugName` narrow the results.

#### What do `setid` and `splVersion` mean?

`setid` identifies a label across its versions, and `splVersion` is the version delivered in that row. `ndcCount` gives the number of NDC codes listed.

#### What does an empty result mean?

No label was published or updated in the window that matched the filters. Nothing is billed for an empty run beyond the start event.

#### Can it run on a schedule or through the API?

Yes, through Apify Schedules or the Apify API. Turn on `onlyNew` for repeat runs so that only label versions not delivered before are returned.

### Compliance

- Public sources only: the documented DailyMed web services v2 endpoints, nothing else.
- No API key, no login, no CAPTCHA, no proxy.
- Every request sends an honest User-Agent: `PonoDataActors/1.0 (+https://ponodata.com)`.
- Values are copied from DailyMed responses, never guessed. Every row carries `sourceUrl` and `retrievedAt`.

# Actor input Schema

## `daysBack` (type: `integer`):

Return labels published on or after today (UTC) minus this many days. Ignored when Since date is set.

## `since` (type: `string`):

Optional start date as YYYY-MM-DD. Must be a real calendar date, not in the future. Used instead of Days back when both are given.

## `labeler` (type: `string`):

Optional labeler (company) name filter, sent to DailyMed as labeler. Trimmed; empty means no filter.

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

Optional drug name filter, sent to DailyMed as drug_name. Trimmed; empty means no filter.

## `onlyNew` (type: `boolean`):

Deliver only label versions (set ID plus version) that no earlier run with this option delivered. A new version of a known label is delivered.

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

Cap on delivered, billed label rows. 0 means no cap. Also limits how many pages and NDC lookups are fetched. The platform spend cap is honored regardless.

## Actor input object example

```json
{
  "daysBack": 7,
  "onlyNew": false,
  "maxRecords": 20
}
```

# Actor output Schema

## `labels` (type: `string`):

One row per delivered label version.

# 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 = {
    "daysBack": 7,
    "maxRecords": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thoob/dailymed-label-update-feed").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 = {
    "daysBack": 7,
    "maxRecords": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thoob/dailymed-label-update-feed").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 '{
  "daysBack": 7,
  "maxRecords": 20
}' |
apify call thoob/dailymed-label-update-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thoob/dailymed-label-update-feed"
        }
    }
}
```

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/bI5HVYGobcsNfMbaY/builds/GW67HlojgPwpI6xxy/openapi.json
