# FDA Drug Label Search: Ingredients, Warnings & Indications (`smilemask/fda-drug-label-search`) Actor

Search FDA drug labels (SPL) by brand name, generic name, manufacturer or substance via the official openFDA API. Returns active ingredients, indications, warnings, dosage text, route, manufacturer, label version and DailyMed link. Free public data, no key needed.

- **URL**: https://apify.com/smilemask/fda-drug-label-search.md
- **Developed by:** [돈벼락](https://apify.com/smilemask) (community)
- **Categories:** Developer tools
- **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.

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 Label Search: Ingredients, Warnings & Indications

Search FDA drug labels (SPL) by brand name, generic name, manufacturer or substance via the official openFDA API. Returns active ingredients, indications, warnings, dosage text, route, manufacturer, label version and DailyMed link. Free public data, no key needed.

### What does FDA Drug Label Search do?

Search official FDA drug labels: active ingredients, indications, warnings, dosage and manufacturers.

### What can you use it for?

- Build drug-information tools and knowledge bases.
- Compare labels of generics and brands.
- Research warnings and indications for products in a market.
- Enrich pharmacy or health-app datasets.

### Why use this Actor?

- **Fast and cheap:** lightweight HTTP-based Actor with no browser, so runs finish in seconds and cost very little.
- **No API keys or accounts needed** for the data source (see notes below).
- **Clean, structured JSON** that you can export as CSV, Excel, JSON or XML, or pull through the Apify API and integrations.
- **Scheduling, webhooks and integrations:** run it daily and send results to Google Sheets, Slack, Zapier, Make, n8n or your own API.

### Input

Configure the run in the **Input** tab (all fields have sensible defaults).

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `query` | string | yes | - | Drug or company name, e.g. advil, ibuprofen, pfizer. |
| `searchField` | string (brand\_name / generic\_name / manufacturer\_name / substance\_name) | no | `"brand_name"` | Which label field to match. |
| `maxResults` | integer | no | `10` | Maximum number of labels. |
| `apiKey` | string | no | - | Free key from open.fda.gov raises the rate limit. Stored encrypted. |

#### Example input

```json
{
  "query": "advil",
  "maxResults": 10
}
```

### Output

Results are stored in the default dataset. Download them from the **Output** tab or via the API.

#### Example result

```json
{
  "setId": "030d9bca-a934-6ef9-e063-6394a90a8277",
  "brandName": "Advil Dual Action with Acetaminophen, Travel BASIX, Advil Dual Action with Acetaminophen",
  "genericName": "IBUPROFEN, ACETAMINOPHEN TABLET, FILM COATED",
  "manufacturer": "Lil' Drug Store Products, Inc.",
  "route": "ORAL",
  "productType": "HUMAN OTC DRUG",
  "activeIngredients": "Active ingredients Active ingredients Acetaminophen 250 mg Ibuprofen 125 mg (NSAID*) *nonsteroidal anti-inflammatory drug",
  "purpose": "Purposes Purposes Pain reliever Pain reliever",
  "indications": "Uses Uses temporarily relieves minor aches and pains due to: headache toothache backache menstrual cramps muscular aches minor pain of arthritis",
  "warnings": "Warnings Warnings Acetaminophen liver damage warning Acetaminophen liver damage warning: This product contains acetaminophen. Severe liver damage may occur i...",
  "dosage": "Directions Directions Do not take more than directed adults and children 12 years and over take 2 caplets every 8 hours while symptoms persist children under...",
  "effectiveDate": "2025-12-01T00:00:00.000Z",
  "version": "4",
  "url": "https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=030d9bca-a934-6ef9-e063-6394a90a8277",
  "disclaimer": "Informational only, not medical advice. Source: openFDA (US FDA).",
  "scrapedAt": "2026-09-25T07:25:39.872Z"
}
```

#### Output fields

| Field | Type | Example |
|---|---|---|
| `setId` | string | "030d9bca-a934-6ef9-e063-6394a90a8277" |
| `brandName` | string | "Advil Dual Action with Acetaminophen, Travel BASIX, Advi... |
| `genericName` | string | "IBUPROFEN, ACETAMINOPHEN TABLET, FILM COATED" |
| `manufacturer` | string | "Lil' Drug Store Products, Inc." |
| `route` | string | "ORAL" |
| `productType` | string | "HUMAN OTC DRUG" |
| `activeIngredients` | string | "Active ingredients Active ingredients Acetaminophen 250 ... |
| `purpose` | string | "Purposes Purposes Pain reliever Pain reliever" |
| `indications` | string | "Uses Uses temporarily relieves minor aches and pains due... |
| `warnings` | string | "Warnings Warnings Acetaminophen liver damage warning Ace... |
| `dosage` | string | "Directions Directions Do not take more than directed adu... |
| `effectiveDate` | string | "2025-12-01T00:00:00.000Z" |
| `version` | string | "4" |
| `url` | string | "https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=0... |
| `disclaimer` | string | "Informational only, not medical advice. Source: openFDA ... |
| `scrapedAt` | string | "2026-09-25T07:25:39.872Z" |

### How much does it cost?

The Actor is billed by Apify according to the pricing shown on the **Pricing** tab of this page. Runs are small and fast, and the Apify Free plan includes monthly platform credits so you can try it at no cost. You can set a maximum cost per run, and the Actor stops cleanly when that limit is reached.

### Notes and limitations

- Source: openFDA drug label endpoint (US FDA). Informational only, not medical advice.
- Long text sections are shortened to 1,500 characters; open the DailyMed link for the complete label.

### Tips

- Start with a small test run, then scale up the input.
- Use **Schedules** to automate recurring runs and **Webhooks** or **Integrations** to deliver the data where you need it.
- Call the Actor from your code with the Apify API or the official JavaScript and Python clients.

### FAQ

**Can I use my own openFDA key?**

Yes, paste it in the optional API key field for higher rate limits.

### Feedback

Found a bug or need an extra field? Open an issue from the **Issues** tab of this Actor and it will be looked at quickly.

### More tools from the same author

- [Clinical Trials Search: ClinicalTrials.gov Studies & Sponsors](https://apify.com/SmileMask/clinical-trials-search) - Search ClinicalTrials.gov by condition, drug and status: phases, sponsors, enrollment, dates and countries.
- [PubMed Article Search: Biomedical Papers, Journals & DOIs](https://apify.com/SmileMask/pubmed-article-search) - Search PubMed's 37M+ biomedical papers: titles, authors, journals, dates, DOI and PMID links.
- [Crossref Scholarly Works Search: Papers, Citations & DOIs](https://apify.com/SmileMask/crossref-scholarly-works-search) - Search 150M+ scholarly works and DOIs with citation counts, authors, journals and publishers.

# Changelog

This Actor's version history is a separate document: https://apify.com/smilemask/fda-drug-label-search/changelog.md

# Actor input Schema

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

Drug or company name, e.g. advil, ibuprofen, pfizer.

## `searchField` (type: `string`):

Which label field to match.

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

Maximum number of labels.

## `apiKey` (type: `string`):

Free key from open.fda.gov raises the rate limit. Stored encrypted.

## Actor input object example

```json
{
  "query": "advil",
  "searchField": "brand_name",
  "maxResults": 10
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("smilemask/fda-drug-label-search").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 = {
    "query": "advil",
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("smilemask/fda-drug-label-search").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 '{
  "query": "advil",
  "maxResults": 10
}' |
apify call smilemask/fda-drug-label-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,smilemask/fda-drug-label-search"
        }
    }
}
```

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/DASH0lgr75bWf4XS7/builds/JxndAHsZ9KsmzWIR7/openapi.json
