# FAERS Adverse Events Scraper - FDA Drugs and MAUDE Devices (`s-r/fda-adverse-events`) Actor

Search openFDA FAERS drug reports and MAUDE device events, export reactions, seriousness, demographics and trend counts, and connect suspect medicines to drug labels and recalls.

- **URL**: https://apify.com/s-r/fda-adverse-events.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** Business, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 adverse event reports

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

## FAERS Adverse Events Scraper

Search FAERS drug adverse events and FDA MAUDE medical device reports, export individual cases or trend counts, and connect suspect medicines to published labels and recalls. Both databases come from the FDA's public openFDA service.

Use this Actor to prepare pharmacovigilance datasets, monitor reported product problems, compare reporting patterns, or assemble a medicine dossier. Drug and device reports share normalized fields while retaining their original source identifiers. Each delivered row identifies its database and record type, so downstream tables can distinguish cases from aggregate buckets.

### FAERS input and search options

Choose `source: drug` for FAERS, the default, or `source: device` for MAUDE. Supply a report number, product names, a reaction, a manufacturer, countries, seriousness, or a date range. Names within a list are combined with OR; different criteria are combined with AND. Drug names are searched in reported medicinal product names and harmonized brand and generic names. Device names are searched in generic and brand names.

This real report lookup is a small starting point:

```json
{"report_id":"10004089","max_items":1}
```

The report contains AMPYRA among the suspect medicines. To look up a device report, use:

```json
{"source":"device","report_id":"2649622-2020-08294","max_items":1}
```

For a drug search, `drug_names: ["metformin"]`, `reaction: "headache"`, `date_from: "2024-01-01"` and `date_to: "2024-12-31"` are supported. Dates are inclusive and must be calendar dates. The default date field is receipt date. Devices additionally support `date_field: event`. Drug event dates are unavailable in this dataset, so that combination is rejected.

`ndc` accepts a hyphenated package NDC such as `0259-5010-60`. A shorter product NDC is rejected with an explanation. Names cannot contain quotation marks, backslashes or control characters. These checks prevent broken expressions from looking like empty searches. Supply up to 100 names or identifiers per list. `max_items` defaults to 100 and supports 1 to 2000 delivered rows across continuation requests.

### Output and interpretation

Case rows carry `_type` and `record_type` equal to `adverse_event`. They include `report_id`, `product_type`, `fetched_at`, `position`, receipt and event dates where available, products, reactions, seriousness, country, patient age in years, patient sex and manufacturer. Missing values remain null or empty lists. Partial dates retain the precision supplied by the source.

Drug rows include all reported medicines in `drugs`, their suspect, concomitant or interacting roles, dosage and indication, harmonized names, package NDCs and SPL set IDs. The top-level `products` list contains suspect medicines only. `reaction_outcomes` preserves the original outcome code alongside each reaction. These codes distinguish recovered, recovering, not recovered, recovered with sequelae, fatal and unknown outcomes. A reported reaction and outcome do not establish causation.

Device rows include device names, manufacturer, model, catalog and lot numbers, product codes, source event type, patient problems and available narrative. Narrative text is limited to 20000 characters in the normalized row. `outputMode: full` additionally includes the original report as `raw`; the default `slim` omits that original object.

`patient_weight` preserves the published weight as text. FAERS documents kilograms, so a supplied weight has `patient_weight_unit: "kg"` and a numeric `patient_weight_kg`. MAUDE does not document the unit; both `patient_weight_unit` and `patient_weight_kg` are null for device reports. No weight conversion is inferred. Missing reactions or suspect product names are null. FAERS non-serious reports have `seriousness: []`; serious reports without published criteria have null. MAUDE only supplies the death criterion; other device event types have null criteria.

Here is a real delivered row, the device report `2649622-2020-08294`, with the long `narrative` text left out:

```json
{
  "_type": "adverse_event",
  "record_type": "adverse_event",
  "report_id": "2649622-2020-08294",
  "product_type": "device",
  "url": null,
  "received_date": "2020-04-27",
  "event_date": "2020-04-07",
  "serious": false,
  "seriousness": null,
  "reactions": ["No Known Impact Or Consequence To Patient"],
  "products": ["CAPSUREFIX NOVUS LEAD MRI SURESCAN"],
  "patient_age_years": 71,
  "patient_sex": null,
  "patient_weight": "108",
  "patient_weight_unit": null,
  "patient_weight_kg": null,
  "country": "US",
  "manufacturer": "MPRI",
  "report_number": "2649622-2020-08294",
  "mdr_report_key": "10000007",
  "event_type": "Malfunction",
  "report_source": "Manufacturer report",
  "product_problems": ["Under-Sensing", "Under-Sensing"],
  "devices": [
    {
      "brand_name": "CAPSUREFIX NOVUS LEAD MRI SURESCAN",
      "generic_name": "ELECTRODE, PACEMAKER, PERMANENT",
      "manufacturer": "MPRI",
      "model_number": "5076-52",
      "catalog_number": "5076-52",
      "lot_number": null,
      "product_code": "DTB",
      "device_class": "3",
      "udi_di": null
    }
  ]
}
```

Every value above is delivered exactly as shown; only the narrative text and the collection bookkeeping fields (`source`, `authority`, `row_key`, `fetched_at`, `position`, `enrichment_eligible`) are omitted for readability. A drug row for report `10004089` carries the same case fields plus `seriousness: ["hospitalization", "other"]`, the suspect medicines `AMPYRA` and `BUSPAR`, the patient's age of 46 years, the manufacturer `Merz Pharmaceuticals, LLC`, sixteen reactions with their outcome codes, and for each medicine its roles, dosage, indication, brand and generic names, package NDCs and SPL set IDs.

### Use cases

- **Signal screening for pharmacovigilance teams.** Pull every FAERS report naming a substance, brand or manufacturer inside a date window, filter on seriousness and reaction term, and review outcomes per case instead of per spreadsheet download.
- **Brand safety monitoring.** Re-run a bounded receipt-date range each period to watch reports that mention your product or a competitor's, and keep the delivered rows as the dated record of what was reported when.
- **Medical device vigilance.** MAUDE case rows carry device manufacturer, model and catalog numbers, lot numbers, product codes, source event type and patient problems, which supports complaint review next to your own quality records.
- **Medicine dossier.** With `enrich: true`, a suspect medicine's reports arrive with their published label and its recall matches attached, keyed by SPL set ID and package NDC - one compact view per medicine rather than four separate lookups.
- **Trend questions without case transfer.** Count reports per receipt date, country, seriousness or reaction term, so a "how many were reported in June" question costs a handful of buckets instead of thousands of case rows.
- **Warehouse loading.** Export the default dataset as JSON or CSV with normalized field names, and stop maintaining separate parsers for the drug quarterly files and the device interface.

### Trend counts

Set `count` to request aggregate buckets instead of case reports. For drugs, useful fields include `receivedate`, `occurcountry`, `serious` and `patient.reaction.reactionmeddrapt.exact`. For devices, examples include `date_received`, `date_of_event` and `event_type.exact`. Only documented fields for the selected database are accepted. Text fields automatically receive the `.exact` suffix, which is required for these aggregations; you can also supply it explicitly. For example, `occurcountry` becomes `occurcountry.exact` and `event_type` becomes `event_type.exact`. The returned `count_field` contains that canonical name, and buckets preserve whole phrases. Date fields and the numeric `serious` field do not accept `.exact`. The device field `reporter_country_code` cannot be counted; use `country_codes` to filter device reports by country. Unsupported forms are rejected with an input error before querying the database.

Count rows have `_type` and `record_type` equal to `event_count`, with `term`, `count` and `count_field`. An explicitly empty source value remains an empty `term`; for example, device reports with an unreported manufacturer can form a real bucket with `term: ""`. This bucket is a real delivered row, one of the counts for `metformin` reports with the reaction `headache` in January 2024:

```json
{
  "_type": "event_count",
  "record_type": "event_count",
  "product_type": "drug",
  "count_field": "receivedate",
  "term": "2024-01-02",
  "count": 3
}
```

Date buckets use ISO formatting. Count mode supports at most 999 returned buckets and cannot request medicine enrichment. A bucket is one output row regardless of the number of source reports it summarizes. Counts describe reports received by the system; they are not patient incidence rates or comparative risk estimates.

If the source returns more buckets than `max_items`, the delivered series is truncated: `partial` is true and `warnings` explains the cap. `next_cursor` is null because no continuation is available for omitted count buckets. Increase `max_items` or narrow the query to obtain the full series; a null cursor alone does not establish completeness.

Text counts request one extra bucket to detect truncation; that check bucket is neither delivered nor charged. At `max_items: 999`, the source limit leaves no room for this check. A response containing exactly 999 source buckets therefore also sets `partial: true` and warns that additional terms may be omitted. Narrow the query to verify completeness.

### Medicine labels and recalls

Set `enrich: true` on a drug report query to attach `label` and `recalls`. The label lookup uses the first available suspect SPL set ID. The recall lookup uses the available suspect package NDCs and returns up to 100 matches per report, with a warning if the source has more. The label supplies its stable label ID, brand name and application number. Recall matches supply recall number, classification and recall date.

The API response reports coverage per response in `enrichment`. The Apify run output recomputes `eligible_count`, `label_matches` and `recall_matches` across all delivered pages after the delivery cap. Divide each match count by `eligible_count` for the run match rate; a zero denominator means no eligible reports were delivered.

Coverage is incomplete because not every report has harmonized identifiers. `enrichment` reports the number of eligible delivered cases, label matches, recall matches and match rates. A missing join key or unmatched label produces an explicit warning. An empty recall list means no matching recall was returned for those identifiers at retrieval time. It does not establish product safety. Matching is limited to the identifiers reported in the source; the Actor does not infer equivalent medicines.

Unsafe source identifiers containing quotes, backslashes or control characters are skipped with a warning. If the source rejects an enrichment query, the case row is retained and subsequent reports continue. Inspect `partial` and `warnings` for incomplete enrichment.

### What else exists for FAERS and MAUDE data

Four options a buyer usually weighs:

- **The FDA public dashboards for FAERS and MAUDE.** Good for looking up one report or reading a chart, but they are browsing interfaces: exporting a filtered set of case rows for your own table means copying by hand.
- **The openFDA service itself.** Free, documented, and the same source this Actor reads. It serves one database per endpoint, returns the source's own field names and codes, and does not attach label and recall matches to the report you just fetched. The drug-plus-device normalization, the date splitting for large queries and the enrichment joins are the work you avoid here.
- **The quarterly FAERS file drops.** Complete and bulk, but files you download and parse yourself, with no query interface and no equivalent device bundle in the same shape. For a one-off full-database dump they are the better fit.
- **Single-database scrapers.** Most cover FAERS or MAUDE, case rows only. This Actor covers both databases behind one input contract, adds trend count buckets, and joins suspect medicines to labels and recalls in the same run - the dossier view the other options leave you to assemble.

The trade-off in the other direction: this Actor is a query API with a delivery cap, not a full historical archive.

### Pagination and completeness

The Actor follows continuation tokens automatically while respecting `max_items`. API clients can pass `next_cursor` back as `cursor` with the original input. Keep all other values unchanged. Positions continue across pages, and identifiers are deduplicated by default. `exclude_duplicates: true` also excludes drug reports explicitly marked duplicate by the source.

Large queries are split into non-overlapping receipt-date ranges before reaching the source pagination limit. If a single date still exceeds that limit, the response warns that a narrower query is needed. Inspect `partial`, `warnings` and `next_cursor` before treating an export as complete. Use a bounded date range for repeatable monitoring, since upstream data can change between requests.

### Pricing and delivery limits

The Actor uses delivered-row events: `adverse_event` for case reports and `event_count` for count buckets. Each delivered row belongs to exactly one event. Empty results incur no row charge. Labels and recall matches are attached to their case row and are not separate output events. Check the current Actor pricing tab for the actual event prices.

Non-paying users are limited to 10 delivered rows per run. Paying users can request up to 2000 case rows, or 999 count buckets, using the same input fields. The volume cap applies across continuation requests. Export the default dataset as JSON or CSV; use the run output for collection warnings and enrichment coverage.

### FAQ

#### Does a FAERS report prove a medicine caused an adverse event?

No. Reports can be incomplete, duplicated, unverified or influenced by reporting practices. This dataset supports investigation and reporting analysis. It does not establish causation, incidence, treatment suitability or a product safety ranking.

#### Can I retrieve both drug and device reports in one run?

Choose one database per run. Both share the same case fields, but their source-specific search criteria differ. Run separate searches and join exported tables using the database and report identifier.

#### Why is there no label or recall match for a medicine?

Some reports lack SPL set IDs or package NDCs, and published datasets have different coverage. Review the warnings and match counts. Missing matches should remain missing rather than being interpreted as evidence of no safety issue.

#### How current are the records?

The Actor returns the records currently exposed by the FDA service. Reporting and publication delays apply. `fetched_at` records collection time; receipt dates refer to the source report and are not the collection timestamp.

#### Can I use the terminology without checking its terms?

Review the FDA data terms and applicable MedDRA licensing conditions for your intended use. Reaction terms are reproduced from the public report data. This Actor does not provide a separate terminology license or medical advice.

# Actor input Schema

## `source` (type: `string`):

Report database to search.

## `report_id` (type: `string`):

One report number or an array of report numbers; drug safetyreportid or device report_number.

## `drug_names` (type: `array`):

Drug names, matched as phrases against medicinal product, brand and generic names; OR across names.

## `device_names` (type: `array`):

Device generic or brand names; OR across names. Requires source device.

## `country_codes` (type: `array`):

Two-letter country codes; OR across countries.

## `ndc` (type: `string`):

Hyphenated package NDC, for example 0259-5010-60. Product NDCs are rejected.

## `reaction` (type: `string`):

MedDRA preferred-term phrase. Requires source drug.

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

Manufacturer name phrase.

## `serious` (type: `boolean`):

Filter serious reports. FAERS uses codes 1/2; device Death/Injury versus Malfunction.

## `date_from` (type: `string`):

Inclusive lower date, YYYY-MM-DD.

## `date_to` (type: `string`):

Inclusive upper date, YYYY-MM-DD.

## `date_field` (type: `string`):

Date to filter; event is available only for devices.

## `max_items` (type: `integer`):

Maximum delivered rows across all continuation requests. Count mode supports up to 999 buckets.

## `count` (type: `string`):

Trend mode: receivedate, receiptdate, occurcountry, serious, patient.reaction.reactionmeddrapt, patient.drug.medicinalproduct, patient.drug.openfda.brand_name or patient.drug.openfda.generic_name for drugs; date_received, date_of_event, event_type, manufacturer_name, device.brand_name or device.generic_name for devices. Text fields are automatically normalized to .exact (also accepted explicitly); count_field returns this canonical name. Dates and serious do not accept .exact. Device reporter_country_code cannot be counted; use country_codes to filter reports.

## `outputMode` (type: `string`):

slim normalizes selected fields; full also includes the original report.

## `exclude_duplicates` (type: `boolean`):

Exclude FAERS reports marked duplicate by the source.

## `deduplicate` (type: `boolean`):

Deliver each report identifier at most once across pages.

## `enrich` (type: `boolean`):

Join the first suspect SPL set ID to its label and all suspect package NDCs to recalls. Drug reports only.

## `cursor` (type: `string`):

Opaque next_cursor from a previous request; retain all other input values.

## Actor input object example

```json
{
  "source": "drug",
  "report_id": "10004089",
  "date_field": "received",
  "max_items": 100,
  "outputMode": "slim",
  "exclude_duplicates": false,
  "deduplicate": true,
  "enrich": false
}
```

# Actor output Schema

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

No description

## `output` (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 = {
    "report_id": "10004089"
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/fda-adverse-events").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 = { "report_id": "10004089" }

# Run the Actor and wait for it to finish
run = client.actor("s-r/fda-adverse-events").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 '{
  "report_id": "10004089"
}' |
apify call s-r/fda-adverse-events --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/fda-adverse-events"
        }
    }
}
```

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/Wfqt5LTGiLumEAJ1C/builds/ZCcZU5ilPUeXqHJL7/openapi.json
