# FDA Drug Labels Scraper - SPL Warnings & Dosage (`thirdwatch/fda-drug-labels-scraper`) Actor

Search public FDA drug labels and export product identity, warnings, indications, dosage, adverse reactions, routes, NDCs, and source provenance.

- **URL**: https://apify.com/thirdwatch/fda-drug-labels-scraper.md
- **Developed by:** [Thirdwatch](https://apify.com/thirdwatch) (community)
- **Categories:** Other, Education
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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/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 Drug Labels Scraper

> Export structured public FDA drug labeling public SPL label records for discovery, comparison, monitoring, and governance.

### What you get

Search the public FDA drug labeling catalog and save one deduplicated row per public SPL label record. Results include SPL identity, version, effective date, product names, manufacturers, substances, routes, dosage forms, NDCs, indications, warnings, adverse reactions, dosage, and provenance. Use discovery inputs for market maps and exact-name inputs, when available, for stable monitoring cohorts.

### Output fields

| Field group | Description |
|---|---|
| Identity | Canonical `setId`, display name, and source URL. |
| Time evidence | Effective, filing, award, report, or catalog dates when published by the source. |
| Measures and status | Public amounts, counts, scores, or status evidence available from the source. |
| Ownership and links | Public organization, agency, product, committee, artist, or source references. |
| Classification | Public tags, categories, keywords, packaging, or status values. |
| Provenance | Search query and named upstream source for traceable analysis. |

### Example output

```json
{"setId":"example-set-id","effectiveTime":"20260701","brandNames":["Aspirin"],"genericNames":["ASPIRIN"],"routes":["ORAL"],"warnings":"Stomach bleeding warning...","source":"FDA Structured Product Labeling via openFDA"}
```

### Input parameters

| Parameter | Required | Description |
|---|---|---|
| `drugNames` | No | Up to ten brand-name searches. |
| `setIds` | No | Up to 25 exact SPL set IDs. |
| `maxResultsPerQuery` | Yes | Maximum labels per name. |
| `maxResults` | Yes | Maximum unique labels saved. |

At least one discovery or exact-name input is required. Result limits apply after cross-input deduplication, and only saved unique rows are charged.

### Use cases

- **Developers:** discover alternatives and compare public release evidence.
- **Platform teams:** monitor versions, tags, compatibility, and activity for a fixed portfolio.
- **Security teams:** build an evidence inventory before joining vulnerability and deployment data.
- **Product researchers:** map a developer ecosystem with repeatable queries and dated snapshots.

### Limitations

Labels reflect submissions reformatted by openFDA and may not match currently distributed or approved labeling. Text sections are bounded, optional sections remain null, and the output is not medical advice.

### Compared to alternatives

Current Apify Store alternatives include automation-lab/fda-drug-labels-scraper and maydit/openfda-drug-label-scraper. Thirdwatch combines discovery and bounded monitoring inputs where the source permits them, saves canonical evidence URLs, deduplicates before charging, provides exactly four PPE tiers, and ships ten ready-to-save Task recipes plus a five-article workflow library. Compare current Store listings directly because competitor features and pricing can change.

### FAQ

#### Does this Actor access private packages or accounts?

No. It collects only metadata available from the public source and does not sign in, bypass access controls, or request private registry credentials.

#### How should I monitor a fixed portfolio?

Use exact names where supported, keep result limits explicit, save the input as an Apify Task, and retain dated datasets. Do not let an empty or failed run overwrite the previous successful snapshot.

#### Does a public record prove the final conclusion?

No. Public-source records are evidence for analysis, not the analysis itself. Keep provenance, apply documented rules separately, and require qualified review for high-stakes decisions.

#### Where can I find more workflows?

Visit [Thirdwatch public-data scrapers](https://thirdwatch.dev/scrapers/fda-drug-labels-scraper) and other Thirdwatch Actors, including [GitHub](https://apify.com/thirdwatch/github-repositories-scraper?fpr=9m2cd6), [npm](https://apify.com/thirdwatch/npm-package-scraper?fpr=9m2cd6), and [OSV](https://apify.com/thirdwatch/osv-vulnerability-scraper?fpr=9m2cd6) Actors.

Last verified: 2026-07

# Actor input Schema

## `drugNames` (type: `array`):

Brand names to search in public FDA Structured Product Labeling records.

## `setIds` (type: `array`):

Optional exact SPL set identifiers for stable monitoring cohorts.

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

Maximum records requested for each drug name.

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

Maximum unique records saved across all inputs.

## Actor input object example

```json
{
  "drugNames": [
    "aspirin"
  ],
  "setIds": [],
  "maxResultsPerQuery": 25,
  "maxResults": 100
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/fda-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/fda-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 '{}' |
apify call thirdwatch/fda-drug-labels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thirdwatch/fda-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/TddgyJvWKGHo3tMXx/builds/fCNgf9tlwYdO7rnPV/openapi.json
