# FDA Recalls Scraper – Drug, Device & Food Recall API (`fayaz-data/openfda-recalls`) Actor

Get FDA recalls (enforcement reports) for drugs, medical devices and food from the official openFDA API in one table. Filter by date, recall class, firm, US state or keyword. Schedule it with "only new" for a daily recall alert feed. US$4 per 1,000 recalls.

- **URL**: https://apify.com/fayaz-data/openfda-recalls.md
- **Developed by:** [Fayaz](https://apify.com/fayaz-data) (community)
- **Categories:** Business, News, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.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 Recalls Scraper – Drug, Device & Food Recall API

**Get FDA drug, medical device and food recalls from the official openFDA API as one clean table.**

Get every FDA recall (enforcement report) for **drugs, medical devices and food** in one clean table, straight from the official **openFDA** API. Filter by date, recall class, company, US state or keyword. Turn on **Only new recalls** and schedule it daily to get an alert feed of fresh recalls.

### Who it is for

Regulatory, quality and food-safety teams, retailers and distributors, lawyers and analysts, and anyone who needs a recall feed without writing openFDA queries by hand.

### Use cases

1. **Daily recall alerts**: schedule it every morning with *Only new recalls* on and send new rows to Slack, email or Google Sheets.
2. **Supplier and competitor watch**: set *Recalling firm* to a company name and see every recall it has had.
3. **Topic research**: search a keyword such as `listeria`, `insulin` or `pacemaker` across a date range and export it to Excel.

### Input

| Field | What it does | Default |
|---|---|---|
| Product types | drug, device, food (any mix) | all three |
| Reported from / until | FDA report date range, `YYYY-MM-DD` | last 30 days |
| Recall class | Class I, II or III | any |
| Keyword | Searched in product description and recall reason (e.g. `listeria`, `insulin`) | none |
| Recalling firm | Company name or part of it | none |
| US state | Two-letter code, e.g. `CA` | none |
| Recall status | Ongoing, Completed, Terminated | any |
| Max results per product type | Up to 25,000 | 200 |
| Only new recalls | Skip recalls already returned by earlier runs on your account | off |
| openFDA API key | Optional free key for very large or frequent runs | none |

Example input:

```json
{ "categories": ["food"], "keyword": "listeria", "classification": "Class I", "dateFrom": "2026-01-01", "maxResults": 100 }
```

The input the form starts with (this is what the example output below came from):

```json
{
  "categories": [
    "drug",
    "device",
    "food"
  ],
  "classification": "",
  "status": "",
  "maxResults": 10,
  "onlyNew": false
}
```

### Output

Recall number, product type, class (I = most serious), status, report / start / classification / end dates, recalling firm with address, city, state, country, product description and quantity, reason for recall, lot codes, where it was distributed, voluntary or FDA-mandated, event ID, brand / generic / manufacturer names (drugs and devices, when FDA has them) and a source link.

Real output from a run with the default input on 22 Nov 2026:

```json
{
  "recallNumber": "D-0145-2027",
  "category": "drug",
  "classification": "Class II",
  "status": "Ongoing",
  "reportDate": "2026-11-11",
  "recallInitiationDate": "2026-10-19",
  "centerClassificationDate": "2026-10-30",
  "terminationDate": null,
  "recallingFirm": "Victory Medical Center Pharmacy",
  "address": "4303 Victory Dr",
  "city": "Austin",
  "state": "TX",
  "postalCode": "78704-7507",
  "country": "United States",
  "productType": "Drugs",
  "productDescription": "THYMOSIN ALPHA-1 (MDV) 3MG/ML **5ML**, VMC, Victory Medical Center Pharmacy, Austin, Texas",
  "productQuantity": "201 vials",
  "reasonForRecall": "Lack of Processing Controls",
  "codeInfo": "Lot, expiry:  Lot  2033588 , exp 11/3/2026;  Lot  2044847 , exp 11/13/2026",
  "distributionPattern": "CO, FL, TX",
  "voluntaryMandated": "Voluntary: Firm initiated",
  "initialFirmNotification": "Letter",
  "eventId": "100168",
  "brandNames": [],
  "genericNames": [],
  "manufacturerNames": [],
  "sourceUrl": "https://api.fda.gov/drug/enforcement.json?search=recall_number:%22D-0145-2027%22"
}
```

Download as JSON, CSV or Excel, or send the results to Google Sheets, Slack, Make, Zapier, n8n or a webhook from the Apify console.

### Price

You pay **US$4 for every 1,000 recalls** saved, which is 0.4 US cents per recall. The default run (30 recalls) costs about 12 US cents. There is also an Apify start fee of US$0.00005 per run (per GB of memory). There is no monthly fee.

### FAQ

**Is this official FDA data?**
Yes. It reads the public openFDA enforcement report API (https://open.fda.gov). This tool is not made by or linked to the FDA.

**How fresh is it?**
FDA updates enforcement reports about once a week. Each run reads the live API, so you get what FDA has published at that moment.

**Do I need an openFDA API key?**
No. A free key only helps for very large or very frequent runs.

**How do I get only new recalls?**
Turn on *Only new recalls*. The tool remembers what earlier runs on your account returned and skips it.

### Limits

1. openFDA lets one search page through at most 25,000 recalls per product type; use a narrower date range for more.
2. Brand, generic and manufacturer names are only filled when FDA has them (mostly drugs and devices).
3. Do not use it to make medical decisions; check the FDA notice for anything important.

### Data source and licence

Data comes from the official openFDA API (https://open.fda.gov). FDA publishes it as public domain (CC0), commercial use allowed (https://open.fda.gov/terms/). FDA updates enforcement reports weekly. This actor is not made by or linked to the FDA. Do not use it to make medical decisions; check the FDA notice for anything important.

### For the developer

- Run locally: `npm install && apify run --input '{"maxResults":20}'`
- Test: `npm test` (checks the search builder and the field mapping)
- Limit: openFDA lets one query page through 25,000 rows; narrow the date range for more.

# Actor input Schema

## `categories` (type: `array`):

Which recall lists to read.

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

Only recalls whose FDA report date is on or after this day. Empty = last 30 days.

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

Empty = today.

## `classification` (type: `string`):

Class I is the most serious.

## `keyword` (type: `string`):

Word(s) to find in the product description or the recall reason, e.g. 'listeria' or 'insulin'.

## `recallingFirm` (type: `string`):

Company name (or part of it).

## `state` (type: `string`):

Two-letter state code of the recalling firm, e.g. CA.

## `status` (type: `string`):

Where the recall stands now.

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

Stop after this many recalls for each product type.

## `onlyNew` (type: `boolean`):

Skip recalls this actor already returned in earlier runs on your account. Use with a daily schedule for alerts.

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

Free key from open.fda.gov/apis/authentication. Only needed for very large or very frequent runs.

## Actor input object example

```json
{
  "categories": [
    "drug",
    "device",
    "food"
  ],
  "classification": "",
  "status": "",
  "maxResults": 10,
  "onlyNew": false
}
```

# Actor output Schema

## `overview` (type: `string`):

All results in the default dataset, shown with the overview view.

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

// Run the Actor and wait for it to finish
const run = await client.actor("fayaz-data/openfda-recalls").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 = { "maxResults": 10 }

# Run the Actor and wait for it to finish
run = client.actor("fayaz-data/openfda-recalls").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 '{
  "maxResults": 10
}' |
apify call fayaz-data/openfda-recalls --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fayaz-data/openfda-recalls"
        }
    }
}
```

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/QGvl8gucxbso1q9AP/builds/ifha8IAFQGAxzn9dS/openapi.json
