# FDA Recalls (Food, Drugs, Devices) (`cheerful_term/openfda-recalls`) Actor

FDA enforcement reports for food, drug and medical-device recalls via openFDA: recalling firm, product, reason, classification (I/II/III), status, distribution pattern, quantity, dates and location. Filter by type, date, class, state, firm or keyword.

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

## Pricing

$2.00 / 1,000 recalls

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 (Food, Drugs, Devices)

FDA enforcement reports for food, drug and medical-device recalls via openFDA: recalling firm, product, reason, classification (I/II/III), status, distribution pattern, quantity, dates and location. Filter by type, date, class, state, firm or keyword.

### Who it's for

- Food and pharma QA teams monitoring suppliers
- Retailers and distributors checking what they carry
- Law firms and journalists tracking Class I recalls

### Input

| Field | What it does |
|---|---|
| `productType` | **Product type**. Which FDA enforcement feed. |
| `reportedSince` | **Reported on or after (YYYY-MM-DD)**. Only recalls reported on or after this date. |
| `classification` | **Classification**. Class I is the most serious. |
| `state` | **Firm state**. Two-letter code |
| `firm` | **Recalling firm**. Exact firm name |
| `keyword` | **Keyword**. Matched against product description and reason, e.g. listeria |
| `maxItems` | **Max results**. Stop after this many results. Each result is one billed event. |

Example input:

```json
{
  "productType": "food",
  "reportedSince": "2026-07-01",
  "maxItems": 100
}
```

### Output

One dataset item per result. A real item from a test run:

```json
{
  "status": "Ongoing",
  "city": "Vernon",
  "state": "CA",
  "country": "United States",
  "classification": "Class II",
  "product_type": "Food",
  "event_id": "99727",
  "recalling_firm": "El Ruisenor De Mexico, Inc.",
  "address_1": "5512 S Santa Fe Ave",
  "address_2": "",
  "postal_code": "90058-3524",
  "voluntary_mandated": "Voluntary: Firm initiated",
  "initial_firm_notification": "Two or more of the following: Email, Fax, Letter, Press Release, Telephone, Visit",
  "distribution_pattern": "Recalling firm distributes primarily to California customers both retail and wholesale. Additional distribution to limited customers in Hawaii, Illinois, Kansas, Nevada, Oregon, and Washington.",
  "recall_number": "H-0130-2027",
  "product_description": "Jovy Gummy Worms Neon; packaged in 1lb plastic units. UPC 712199083411",
  "product_quantity": "521 pounds",
  "reason_for_recall": "undeclared allergen ingredient (Red#40, Yellow#5, Yellow#6, Blue#1)",
  "recall_initiation_date": "20260824",
  "center_classification_date": "20261020",
  "report_date": "20261028",
  "code_info": "lot: 6156",
  "more_code_info": "",
  "productType": "food"
}
```

Download as JSON, CSV, Excel or via the Apify API.

### Pricing

Pay per result: **$0.002 per recall** ($2 per 1,000). No monthly fee. Set a max charge on the run and it stops there. AI agents can run it with agentic payments where Apify enables them.

### Data source

Fetched live at run time from the public source: https://api.fda.gov/{food,drug,device}/enforcement.json

Public records only. Nothing is fetched behind a login.

### Use it from code or an AI agent

```bash
curl -X POST 'https://api.apify.com/v2/acts/cheerful_term~openfda-recalls/run-sync-get-dataset-items?token=YOUR_TOKEN' \
  -H 'Content-Type: application/json' -d '{"productType": "food", "reportedSince": "2026-07-01", "maxItems": 100}'
```

Part of a set of public-records actors by cheerful_term: https://apify.com/cheerful_term

# Actor input Schema

## `productType` (type: `string`):

Which FDA enforcement feed.

## `reportedSince` (type: `string`):

Only recalls reported on or after this date.

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

Class I is the most serious.

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

Two-letter code

## `firm` (type: `string`):

Exact firm name

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

Matched against product description and reason, e.g. listeria

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

Stop after this many results. Each result is billed as one event.

## Actor input object example

```json
{
  "productType": "food",
  "reportedSince": "2026-07-01",
  "maxItems": 100
}
```

# Actor output Schema

## `overview` (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 = {
    "productType": "food",
    "reportedSince": "2026-07-01",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("cheerful_term/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 = {
    "productType": "food",
    "reportedSince": "2026-07-01",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("cheerful_term/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 '{
  "productType": "food",
  "reportedSince": "2026-07-01",
  "maxItems": 100
}' |
apify call cheerful_term/openfda-recalls --silent --output-dataset

```

## MCP server setup

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