# openFDA Drug Labels & Ingredients Scraper (`scrapers_lat/openfda-drug-labels-scraper`) Actor

Extract structured drug labeling for US medicines: brand and generic name, manufacturer, product type (OTC or prescription), route, active ingredients and strengths, NDC and application numbers, plus label sections like indications, dosage, warnings and interactions. Export to JSON, CSV or Excel.

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

## Pricing

from $6.15 / 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

![openFDA Drug Labels & Ingredients Scraper](https://scrapers.lat/banners/openfda-drug-labels-scraper.png)

## openFDA Drug Labels & Ingredients Scraper

> Extract structured drug labeling for US medicines: brand and generic name, manufacturer, product type, route, active and inactive ingredients, NDC/RxCUI/UNII codes and the full set of label sections, including boxed warnings, warnings and cautions, mechanism of action, clinical pharmacology, use in specific populations (pregnancy, pediatric, geriatric), overdosage, how supplied and a direct DailyMed label link

**📥 [Input](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-United%20States-blue)
![Maintained](https://img.shields.io/badge/Maintained-Yes-brightgreen)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>45+ fields</strong><br>per label</td>
<td align="center"><strong>OTC + Rx</strong><br>drug labels</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
</tr></table>

<br>

### Who is it for

| Use case | Who benefits |
|---|---|
| Building and enriching a drug reference database | Pharma and health data teams |
| Powering medication lookup in a health app | Product and engineering teams |
| Ingredient, NDC and RxNorm mapping | Data engineers and informaticists |
| Competitive and formulary research | Pharma market intelligence teams |
| Labeling and compliance monitoring | Regulatory affairs teams |

### Frequently Asked Questions

**What does one record represent?**\
One official structured product label for a US medicine, covering both over-the-counter and prescription drugs, with identity fields, ingredients, codes and the key label text sections.

**How do I search?**\
Type a brand name, generic name, active ingredient or manufacturer and it is matched across all of them. You can also paste a raw expression that names a field, such as openfda.manufacturer\_name:Pfizer or openfda.route:OPHTHALMIC. Leave the search empty to pull the most recent labels.

**Can I filter the results?**\
Yes. Restrict by product type (over-the-counter, prescription or cellular therapy), by route of administration, and by manufacturer. Filters combine with the search.

**How many records can I pull in one run?**\
Large pulls are paginated with a skip offset up to 25000 records per query. For bigger datasets, narrow the search keyword or add a filter so each run stays under that ceiling.

**What happens to missing fields?**\
Labels vary in completeness, so any field not present for a given label is returned as null. The scraper never invents values.

### Example use cases

Ready-to-run example tasks, each preconfigured for a common scenario. Open one and press run, or use it as a template:

- [Ibuprofen OTC Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-ibuprofen-otc-labels): Export over-the-counter ibuprofen drug labels, with active ingredients, dosage, warnings, manufacturer and product type.
- [Atorvastatin Prescription Drug Labels](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-atorvastatin-rx-labels): Export prescription atorvastatin drug labels, with indications, dosage, warnings, active ingredients and manufacturer.
- [Acetaminophen OTC Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-acetaminophen-otc-labels): Export over-the-counter acetaminophen drug labels, with dosage, warnings, active ingredients, manufacturer and route.
- [Pfizer Drug Labels by Manufacturer (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-pfizer-manufacturer-labels): Export drug labels manufactured by Pfizer, with brand and generic names, indications, dosage and active ingredients.
- [Amoxicillin Antibiotic Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-amoxicillin-antibiotic-labels): Export amoxicillin antibiotic drug labels, with indications, dosage, warnings, active ingredients and manufacturer.
- [Ophthalmic Eye Drop Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-ophthalmic-eye-drops-labels): Export ophthalmic route drug labels for eye drops, with active ingredients, dosage, warnings and manufacturer details.
- [Metformin Diabetes Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-metformin-diabetes-labels): Export metformin diabetes drug labels, with indications, dosage, warnings, active ingredients and manufacturer details.
- [Topical Hydrocortisone Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-hydrocortisone-topical-labels): Export topical hydrocortisone drug labels, with active ingredients, dosage, warnings, route and manufacturer details.
- [Lisinopril Blood Pressure Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-lisinopril-bp-labels): Export lisinopril blood pressure drug labels, with indications, dosage, warnings, active ingredients and manufacturer.
- [Aspirin OTC Drug Labels (openFDA)](https://apify.com/scrapers_lat/openfda-drug-labels-scraper/examples/fda-aspirin-otc-labels): Export over-the-counter aspirin drug labels, with dosage, warnings, active ingredients, manufacturer and product type.

### Export, API and AI agents (x402 + MCP)

Export the scraped data to **JSON, CSV or Excel**, pull it as a **dataset** through the Apify **API**, or wire it into your app with **no code**. This web scraper and data extractor also works for bulk data extraction and scheduled runs.

For AI agents: this Actor is available on **x402**, Apify's agentic payment standard built with Coinbase. An AI agent can discover, pay for and run it on its own with a funded wallet and a single HTTP request: no account, no subscription, no API key and no human in the loop. It also runs as an **MCP** tool inside Claude, Cursor and other AI clients out of the box. Learn more about [x402 agentic payments on Apify](https://docs.apify.com/platform/integrations/x402).

### Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

- [openFDA Medical Device Adverse Events & Recalls Scraper](https://apify.com/scrapers_lat/openfda-device-events-scraper): Extract FDA medical device adverse events (MAUDE), device recalls and 510(k) clearances.
- [openFDA Drug Events & Recalls Scraper](https://apify.com/scrapers_lat/openfda-drug-events-scraper): Scrape FDA drug adverse event reports (FAERS) and drug recall and enforcement actions.
- [NPPES NPI Provider Scraper](https://apify.com/scrapers_lat/nppes-npi-scraper): Scrape US healthcare provider records from the official NPPES NPI Registry.

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> This actor is an independent tool and has no affiliation with the FDA or openFDA. It only accesses data that is publicly available through the open FDA data service. Use it in accordance with the applicable terms of service.

# Actor input Schema

## `maxLabels` (type: `integer`):

Maximum number of drug label records to collect. Optional. Very large pulls are paginated with a skip offset up to 25000 records per query, so for bigger datasets narrow the search or add a filter.

## `query` (type: `string`):

A drug brand name, generic name, active ingredient or manufacturer (matched across all of them), for example ibuprofen, atorvastatin or Pfizer. You can also paste a raw search expression that contains a field, for example openfda.manufacturer\_name:Pfizer or openfda.route:OPHTHALMIC. Leave empty to pull the most recent labels.

## `productType` (type: `string`):

Restrict to over-the-counter medicines, prescription medicines or cellular therapy products. Leave as Any to include every product type.

## `route` (type: `string`):

Restrict to a route of administration, for example ORAL, TOPICAL, INTRAVENOUS, OPHTHALMIC or NASAL. Leave empty for all routes.

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

Restrict to labels from a specific manufacturer or labeler, for example Pfizer or Johnson & Johnson. Leave empty for all manufacturers.

## Actor input object example

```json
{
  "maxLabels": 10,
  "query": "ibuprofen",
  "productType": ""
}
```

# 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 = {
    "maxLabels": 10,
    "query": "ibuprofen"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/openfda-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 = {
    "maxLabels": 10,
    "query": "ibuprofen",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/openfda-drug-labels-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxLabels": 10,
  "query": "ibuprofen"
}' |
apify call scrapers_lat/openfda-drug-labels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers_lat/openfda-drug-labels-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XGgSkHEqWLpzL6Fga/builds/b78svDe9ZzsYYXHGl/openapi.json
