# FDA Recalls (openFDA) - Food, Drug and Device Recall Alerts (`hydramill/fda-recalls`) Actor

Recalls of food, drugs and medical devices from the official U.S. FDA openFDA enforcement reports (public domain): filter by category, class, state, keywords and date. One clean flat record per recalled product with firm, reason, class, distribution and dates.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 (openFDA) - Food, Drug and Device Recall Alerts

Get the **recalls of food, drugs and medical devices** published by the U.S. **Food and Drug Administration** as **clean, flat JSON**: one row per recalled product with the recalling firm, the reason, the **recall class** (I, II, III), where it was distributed, lot codes and dates. Filter by category, keyword, class, state and date.

It uses the official public **openFDA** API directly: no scraping, no login, no proxies, no browser, no API key needed (an optional free key raises the limits).

### What you can use it for

- **Food safety and retail monitoring.** Get new Class I recalls (serious health risk) such as Listeria or Salmonella the day they are reported, and match them against your product list.
- **Compliance, quality and supplier risk.** Track recalls by a supplier name, a product keyword or a US state.
- **Medical device and pharma intelligence.** Follow device and drug recalls and their status (Ongoing, Completed, Terminated).
- **News, alerts and research.** Feed a newsletter, a Slack channel or a dataset of recall history (the FDA enforcement reports go back years).

### Why this actor

- **Flat, typed output.** ISO dates (`2026-11-11` instead of `20261111`), one field per fact, no nested `openfda` objects.
- **Three categories in one run.** Food, drugs and devices, de-duplicated, newest report first.
- **Useful filters.** Keywords (searched in product, reason and firm), recall class, firm state, last N days.
- **Respects the API limits.** It paces its requests, retries on errors and tells you in the run summary if openFDA's 25,000-record paging limit cut a result short.
- **Free to use.** You only pay Apify's usual platform usage.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `categories` | list | `["food"]` | `food`, `drug`, `device`. |
| `searchTerms` | list of text | none | Keep recalls whose product description, reason or recalling firm contains any of these words. |
| `classifications` | list | all | `Class I` (serious risk), `Class II`, `Class III`. |
| `states` | list of text | all | Two-letter US state codes of the recalling firm. |
| `daysBack` | integer | `90` (Store form: `365`) | Only recalls reported in the last N days. `0` = all time. |
| `maxItems` | integer | `100` (Store form: `20`) | Stop after this many recalls in total. `0` = no limit. |
| `apiKey` | secret text | none | Optional free openFDA key. Without it openFDA allows 40 requests a minute and 1,000 a day per IP. |

#### Example input: Class I food recalls in the last 30 days

```json
{
  "categories": ["food"],
  "classifications": ["Class I"],
  "daysBack": 30,
  "maxItems": 100
}
```

### Output

One dataset item per recalled product. Real item from a run on 2026-11-17:

```json
{
  "category": "food",
  "recallNumber": "H-0192-2027",
  "eventId": "100089",
  "status": "Ongoing",
  "classification": "Class I",
  "recallingFirm": "Krasnyi Oktyabr Inc",
  "city": "Brooklyn",
  "state": "NY",
  "country": "United States",
  "postalCode": "11232-1109",
  "productDescription": "Starfish Seafood Cold Smoked Norwegian Salmon",
  "productQuantity": "86 cases total",
  "reasonForRecall": "Contaminated with Listeria monocytogenes",
  "voluntaryMandated": "Voluntary: Firm initiated",
  "distributionPattern": "NY, MA, SC, FL, GA, NV, NJ, OH, NC, SC, OH",
  "codeInfo": "UPC Code: 4751048940099 Product Code: Best before: 27.11.2027 LOT: D080-148",
  "recallInitiationDate": "2026-10-06",
  "centerClassificationDate": "2026-11-03",
  "reportDate": "2026-11-11",
  "terminationDate": null,
  "retrievedAt": "2026-11-17T10:09:58.367Z"
}
```

| Field | Description |
|---|---|
| `category` | `food`, `drug` or `device`. |
| `recallNumber`, `eventId` | FDA recall number (stable key) and recall event id. One event can cover several products. |
| `status` | `Ongoing`, `Completed` or `Terminated`. |
| `classification` | `Class I` (reasonable probability of serious harm or death), `Class II`, `Class III`. |
| `recallingFirm`, `city`, `state`, `country`, `postalCode` | The company that recalls the product. |
| `productDescription`, `productQuantity`, `codeInfo` | Product, quantity and lot / best-by codes as published. |
| `reasonForRecall`, `voluntaryMandated` | Why, and whether the firm or the FDA started it. |
| `distributionPattern` | Where the product went. |
| `recallInitiationDate`, `centerClassificationDate`, `reportDate`, `terminationDate` | ISO dates. `reportDate` is when the FDA published it. |
| `retrievedAt` | When this actor read openFDA (UTC). |

The default key-value store also gets a `SUMMARY` record with the date range, totals per category and the data attribution.

Export the dataset as JSON, CSV, Excel or XML, or read it through the Apify API and integrations (Make, Zapier, Slack, Google Sheets, webhooks). Schedule the actor daily with a small `daysBack` for an alert feed.

### Pricing

Free: you only pay Apify's usual platform usage, which is tiny for this actor (no browser, 256 MB).

### Data source and attribution

Source: U.S. Food and Drug Administration, **openFDA** enforcement reports, <https://open.fda.gov>.

- Data: `https://api.fda.gov/food/enforcement.json`, `/drug/enforcement.json`, `/device/enforcement.json`. Docs: <https://open.fda.gov/apis/>.
- Licence: openFDA data is public domain under **CC0 1.0** (<https://open.fda.gov/license/>); terms of service: <https://open.fda.gov/terms/>.

**This is an independent tool. It is not affiliated with, endorsed by or sponsored by the FDA.** As openFDA says, the data is not validated: **do not use it to make decisions about medical care**. For the official record, check the FDA recalls pages.

### Limitations

- US recalls only (the FDA's remit). Meat, poultry and egg products are recalled through USDA and are not in this data.
- Enforcement reports appear after the FDA classifies a recall, which can be weeks after the firm starts it (see `recallInitiationDate` vs `reportDate`).
- openFDA pages only to 25,000 records per category and search; narrow `daysBack` for larger pulls.

### En español

**Retiradas de productos (recalls) de la FDA de EE. UU.**: alimentos, medicamentos y productos sanitarios en JSON plano y limpio. Filtra por categoría, palabra clave, clase de riesgo (I, II, III), estado y fecha. Datos públicos (CC0) de openFDA. Gratuito. Herramienta independiente, sin relación con la FDA; no sirve para decisiones médicas.

### En català

**Retirades de productes (recalls) de la FDA dels EUA**: aliments, medicaments i productes sanitaris en JSON pla i net. Filtra per categoria, paraula clau, classe de risc (I, II, III), estat i data. Dades públiques (CC0) d'openFDA. Gratuït. Eina independent, sense relació amb la FDA; no serveix per a decisions mèdiques.

# Actor input Schema

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

Which FDA product areas to read: food, drug, device.

## `searchTerms` (type: `array`):

Only recalls whose product description, reason or recalling firm contains one of these words (e.g. salmonella, listeria, peanut, pacemaker). Empty = all.

## `classifications` (type: `array`):

Class I = serious health risk or death, Class II = temporary or reversible risk, Class III = unlikely to cause harm. Empty = all classes.

## `states` (type: `array`):

Two-letter US state codes of the recalling firm (NY, CA, TX...). Empty = all.

## `daysBack` (type: `integer`):

Only recalls reported in the last N days (report date). 0 = all time.

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

Stop after this many recalls in total. 0 = no limit.

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

Optional free key from https://open.fda.gov/apis/authentication/ . Without it openFDA allows 40 requests per minute and 1,000 per day per IP, which is enough for most runs.

## Actor input object example

```json
{
  "categories": [
    "food"
  ],
  "searchTerms": [
    "listeria"
  ],
  "classifications": [],
  "states": [],
  "daysBack": 365,
  "maxItems": 20
}
```

# Actor output Schema

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

One item per recalled product.

## `summary` (type: `string`):

Date range, totals per category and data attribution (key SUMMARY in the default key-value store).

# 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 = {
    "categories": [
        "food"
    ],
    "searchTerms": [
        "listeria"
    ],
    "daysBack": 365,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydramill/fda-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 = {
    "categories": ["food"],
    "searchTerms": ["listeria"],
    "daysBack": 365,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("hydramill/fda-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 '{
  "categories": [
    "food"
  ],
  "searchTerms": [
    "listeria"
  ],
  "daysBack": 365,
  "maxItems": 20
}' |
apify call hydramill/fda-recalls --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hydramill/fda-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/6trmy4hVTeSvGkIZr/builds/k0Uy41cMlM3rziEXW/openapi.json
