# openFDA Drug Adverse Events (FAERS), Recalls & Labels Feed (`datacrate/openfda-drug-adverse-events-feed`) Actor

Search FDA drug adverse event reports (FAERS) by drug, reaction, seriousness, country and date window, plus drug recalls and labels. Flat rows, delta mode for daily drug safety alerts. Official free openFDA API.

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

## Pricing

from $0.40 / 1,000 drug record returneds

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

## openFDA Drug Adverse Events (FAERS), Recalls & Labels Feed

**Get FDA drug adverse event reports (FAERS), drug recalls and drug labels as clean, flat rows.** Search by drug name, brand or active substance, by reaction (MedDRA term), seriousness outcome, reporter country and date window. Every adverse event comes back as one row with the suspect drugs, the reaction terms, seriousness flags, outcome, country and report date. Delta mode returns only reports you have not seen yet, so a daily schedule becomes a drug safety alert feed.

**First run cost:** the default run returns 25 reports for about **$0.013** at **$0.0005 per result** (the first 5 seconds of compute are covered by Apify). 1,000 results cost about **$0.50**, less on higher Apify plans.

### Who it is for

- **Pharmacovigilance, drug safety and regulatory teams** who want a schedulable signal feed for their products and competitors.
- **Pharma, biotech and market-intelligence analysts** who track reaction patterns, label changes and recalls.
- **Researchers and data scientists** who need analysis-ready FAERS rows without parsing nested openFDA JSON.
- **Health-tech builders and AI agents** who need a simple "what was reported about drug X" lookup.

### What you get

Three datasets behind one input (`dataset`):

| `dataset` | Rows | Key fields |
|---|---|---|
| `adverse_events` (default) | one row per FAERS safety report | `recordId` (safety report id), `reportDate`, `serious`, `seriousnessFlags`, `suspectDrugs`, `suspectActiveSubstances`, `reactionTerms`, `reactionOutcomes`, `primarySourceCountry`, `patientSex`, `patientAgeYears`, `reporterQualification`, full `drugs` and `reactions` arrays |
| `recalls` | one row per FDA drug enforcement report | `recallNumber`, `classification` (Class I-III), `status`, `reasonForRecall`, `recallingFirm`, `productDescription`, `distributionPattern`, dates |
| `labels` | one row per drug label (SPL) | `setId`, `brandNames`, `genericNames`, `manufacturer`, `hasBoxedWarning`, shortened `boxedWarning`, `indications`, `warnings`, `adverseReactions` |

**Privacy by design:** free-text narratives, reporter names and addresses are not returned. Patient fields are limited to what openFDA publishes as coarse demographics (sex, age in years). Weight and other fields are skipped.

### Input

| Field | Meaning |
|---|---|
| `dataset` | `adverse_events`, `recalls` or `labels` |
| `drugs` | brand, generic or active substance names (OR). Empty = newest records |
| `reactions` | MedDRA reaction terms (adverse events only), e.g. `Pancreatitis` |
| `suspectDrugOnly` | keep only reports where your drug is the suspect drug, not just a co-medication |
| `seriousOnly`, `seriousOutcomes` | serious reports only, or any of death, lifeThreatening, hospitalization, disabling, congenitalAnomaly, other |
| `country` | reporter country (adverse events) or US state (recalls) |
| `manufacturer` | manufacturer or recalling firm |
| `dateFrom`, `dateTo`, `receivedWithinDays` | date window (report received date, recall report date, label effective date) |
| `recallClassification`, `recallStatus` | recall filters |
| `hasBoxedWarning`, `includeLabelText`, `textMaxChars` | label options |
| `maxItems` | cap on rows and cost (default 25, up to 25,000 per query) |
| `onlyNewSinceLastRun`, `stateKey` | delta mode, one watchlist per state name |
| `apiKey` | optional free openFDA key for higher request limits |

Default empty input `{}` returns the 25 most recently received adverse event reports.

Serious semaglutide reports mentioning pancreatitis since the start of the year:

```json
{ "drugs": ["semaglutide", "Ozempic", "Wegovy"], "reactions": ["Pancreatitis"], "suspectDrugOnly": true, "seriousOnly": true, "dateFrom": "2026-01-01", "maxItems": 200 }
```

Class I drug recalls:

```json
{ "dataset": "recalls", "recallClassification": "Class I", "maxItems": 50 }
```

Labels with a boxed warning for a drug:

```json
{ "dataset": "labels", "drugs": ["fluoroquinolone"], "hasBoxedWarning": true, "maxItems": 20 }
```

### Sample output (adverse event, trimmed)

```json
{
  "recordType": "adverse_event",
  "recordId": "27320165",
  "reportDate": "2026-09-29",
  "primarySourceCountry": "US",
  "reportType": "Report from study",
  "serious": true,
  "seriousnessFlags": ["hospitalization", "other"],
  "patientSex": "Female",
  "patientAgeYears": 83,
  "suspectDrugs": ["WEGOVY"],
  "suspectActiveSubstances": ["SEMAGLUTIDE"],
  "reactionTerms": ["Vomiting", "Nausea", "Rash"],
  "reactionOutcomes": ["Unknown"],
  "companyReportNumber": "US-NOVOPROD-3707371",
  "source": "openFDA drug/event (FAERS)"
}
```

### FAQ

**How fresh is the data?** openFDA publishes FAERS adverse events with a delay of several weeks (the dataset's own `last_updated` date is in the API response metadata). Recalls and labels update more often. For adverse events use `dateFrom` or `receivedWithinDays: 90` or more, not a window of a few days.

**What do the numbers mean?** FAERS reports are voluntary and unvalidated. A report does not prove that a drug caused a reaction, and report counts are not incidence rates. openFDA states: do not rely on it to make decisions regarding medical care.

**Why `suspectDrugOnly`?** A report lists every drug the patient took. Without this switch a search for ibuprofen also returns reports where ibuprofen is just one of many co-medications.

**Duplicates?** `isDuplicate` carries openFDA's duplicate flag. Each safety report id appears once.

**How does delta mode work?** With `onlyNewSinceLastRun` a report id is returned once per state name. Recalls come back again when their status or class changes, labels when a new version is published.

**Does it need an API key?** No. openFDA allows about 1,000 requests per day per IP without a key and each request carries up to 100 records, so a normal run uses one to a few requests. The actor paces itself, honours `Retry-After` and backs off on 429. If you run very large jobs, add a free key in `apiKey`.

**Can I get more than 25,000 rows for one query?** openFDA limits paging to 25,000 records per query. Split by date window and run several times.

### Terms and robots evidence (checked 2026-11-22)

- Data comes from the public openFDA API `https://api.fda.gov/drug/` (event, enforcement, label).
- `https://api.fda.gov/robots.txt` returns 404 (no restrictions published).
- openFDA terms (https://open.fda.gov/terms/): data is public domain under CC0 1.0, "You can copy, modify, distribute, and perform the work, even for commercial purposes, all without asking permission". Attribution is requested and added to every row. The actor uses a descriptive User-Agent and stays below the documented rate limits.

### Integrations

Schedule it daily, push new serious reports to Slack, email, Google Sheets or a webhook, or call it from an AI agent through the Apify MCP server. Export JSON, CSV or Excel.

### Pricing

Pay per result: **$0.0005 per record** (volume tiers on higher Apify plans), plus Apify's usual start event. Only rows returned are billed; `maxItems` caps the bill.

### Related actors

- ClinicalTrials.gov Monitor for trial registry data.
- Product Recall Monitor and Vehicle Recalls Feed for consumer and vehicle recalls.

### Changelog

- 1.0: first release (FAERS adverse events with flattened drugs and reactions, drug recalls, drug labels, date windows, delta mode).

# Actor input Schema

## `dataset` (type: `string`):

Adverse event reports (FAERS), drug recalls (enforcement reports) or drug labels (SPL).

## `drugs` (type: `array`):

Brand name, generic name or active substance, e.g. ibuprofen, Ozempic, semaglutide. Several names are combined with OR. Leave empty for the newest records.

## `reactions` (type: `array`):

Adverse events only. Reaction terms such as Nausea, Pancreatitis, Anaphylactic reaction. Several terms are combined with OR.

## `suspectDrugOnly` (type: `boolean`):

Adverse events only. Skip reports where your drug is only a concomitant medicine. Recommended when you search by drug.

## `seriousOnly` (type: `boolean`):

Adverse events only. Keep reports flagged serious by the reporter.

## `seriousOutcomes` (type: `array`):

Adverse events only. Keep reports with any of the selected outcomes. Overrides 'Serious reports only'.

## `country` (type: `string`):

Adverse events: two-letter country of the primary reporter (US, GB, DE, JP). Recalls: two-letter US state of the recalling firm (CA, NJ). Ignored for labels.

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

Optional, e.g. Pfizer, Novo Nordisk.

## `dateFrom` (type: `string`):

YYYY-MM-DD. Adverse events: date FDA received the report. Recalls: report date. Labels: label effective date.

## `dateTo` (type: `string`):

YYYY-MM-DD. Leave empty for up to today.

## `receivedWithinDays` (type: `integer`):

Relative window ending today, used when 'From date' is empty. FAERS data is published with a delay of several weeks, so use 90 or more for adverse events. 0 = off.

## `recallClassification` (type: `string`):

Recalls only. Class I = most serious.

## `recallStatus` (type: `string`):

Recalls only.

## `hasBoxedWarning` (type: `boolean`):

Labels only.

## `includeLabelText` (type: `boolean`):

Labels only. Adds shortened indications, boxed warning, warnings, contraindications, adverse reactions and dosage text.

## `textMaxChars` (type: `integer`):

Labels only.

## `maxItems` (type: `integer`):

Upper bound on rows (and on cost). openFDA allows at most 25,000 records per query; narrow the date window to go deeper.

## `onlyNewSinceLastRun` (type: `boolean`):

Skip report IDs already returned by an earlier run with the same state name. Recalls and labels are returned again when their status or version changes. The first run sets the baseline.

## `stateKey` (type: `string`):

Use different names to keep separate watchlists.

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

Free key from open.fda.gov/apis/authentication. Without a key openFDA allows about 1,000 requests per day per IP, which is plenty for most runs.

## Actor input object example

```json
{
  "dataset": "adverse_events",
  "drugs": [
    "ibuprofen"
  ],
  "suspectDrugOnly": true,
  "seriousOnly": false,
  "receivedWithinDays": 0,
  "recallClassification": "",
  "recallStatus": "",
  "hasBoxedWarning": false,
  "includeLabelText": true,
  "textMaxChars": 1500,
  "maxItems": 10,
  "onlyNewSinceLastRun": false,
  "stateKey": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per adverse event report, drug recall or drug label with drugs, reactions, seriousness, dates and attribution.

# 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 = {
    "drugs": [
        "ibuprofen"
    ],
    "suspectDrugOnly": true,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/openfda-drug-adverse-events-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 = {
    "drugs": ["ibuprofen"],
    "suspectDrugOnly": True,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/openfda-drug-adverse-events-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 '{
  "drugs": [
    "ibuprofen"
  ],
  "suspectDrugOnly": true,
  "maxItems": 10
}' |
apify call datacrate/openfda-drug-adverse-events-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/openfda-drug-adverse-events-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/zQlOafi1FRDNfBFkV/builds/c7Crw9kTLpirXWHxp/openapi.json
