# FDA Recalls, Enforcement & 510(k) Compliance Monitor (`regenerative_cornice/fda-recalls-compliance-monitor`) Actor

Extract structured U.S. FDA Food, Drug, and Medical Device recalls plus 510(k) clearances from the official openFDA API. Filter by recall class, keyword, state, or date range for compliance, legal-tech, n8n alerts, and AI agents (MCP).

- **URL**: https://apify.com/regenerative_cornice/fda-recalls-compliance-monitor.md
- **Developed by:** [John Erlbacher](https://apify.com/regenerative_cornice) (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 $3.50 / 1,000 fda compliance records

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

## FDA Recalls, Safety Enforcement & 510(k) Clearance Monitor (openFDA)

Extract clean, normalized **U.S. FDA Food, Drug, and Medical Device enforcement recalls** plus **510(k) medical device clearances** directly from the official **openFDA Public REST API** (`https://api.fda.gov`).

Built for **healthcare and CPG quality assurance teams, pharmaceutical pharmacovigilance, legal-tech & mass-tort researchers, MedTech regulatory intelligence, automated n8n alert pipelines, and AI agents (MCP)**.

Because this Actor consumes official U.S. government open data over REST JSON—not fragile HTML scrapes—runs finish in seconds with zero proxy costs, zero CAPTCHAs, and deterministic schema reliability.

***

### Supported Official openFDA Datasets

All four datasets are normalized into one consistent compliance schema and sorted **newest-first** automatically:

| `dataset` Value | Official openFDA Endpoint | Default Sort | Primary Use Cases |
| :--- | :--- | :--- | :--- |
| `food_recalls` | `https://api.fda.gov/food/enforcement.json` | `report_date:desc` | Grocery & CPG supplier audits, undeclared allergen / *Listeria* / *Salmonella* / *E. coli* alerts, cold-chain QA |
| `drug_recalls` | `https://api.fda.gov/drug/enforcement.json` | `report_date:desc` | Hospital pharmacy recalls, compounding QA, pharmacovigilance, generic manufacturer monitoring |
| `device_recalls` | `https://api.fda.gov/device/enforcement.json` | `report_date:desc` | Biomedical engineering risk alerts, MedTech post-market surveillance, product liability monitoring |
| `device_510k` | `https://api.fda.gov/device/510k.json` | `decision_date:desc` | MedTech competitor clearance tracking, FDA predicate device research, regulatory affairs intelligence |

No API key is required for standard openFDA quotas (40 requests/minute, 1,000 requests/day). Supply an optional free `openFdaApiKey` from [open.fda.gov](https://open.fda.gov/apis/authentication/) to unlock **240 requests/minute** burst throughput. Your key is marked `isSecret` and is automatically stripped from `sourceApiUrl` in all dataset rows.

***

### Input Configuration

#### Example Input JSON

```json
{
  "dataset": "food_recalls",
  "keyword": "Listeria",
  "classification": "Class I",
  "state": "CA",
  "dateFrom": "20260101",
  "dateTo": "20261231",
  "maxItems": 25
}
```

#### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `dataset` | `string` | `"food_recalls"` | One of `food_recalls`, `drug_recalls`, `device_recalls`, `device_510k`. |
| `keyword` | `string` | `""` | Optional keyword search (e.g. `"Listeria"`, `"peanut"`, `"insulin"`). Searches reason, product description, firm, and lot/code info for recalls, or device name, applicant, specialty, and product code for 510(k). |
| `classification` | `string` | `"ALL"` | Filter by `ALL`, `Class I`, `Class II`, or `Class III`. On `device_510k`, maps cleanly to `openfda.device_class` (`1`, `2`, `3`). |
| `state` | `string` | `""` | Optional 2-letter U.S. state code (e.g. `"CA"`, `"TX"`, `"NY"`). |
| `dateFrom` | `string` | `""` | Optional start date (`YYYYMMDD`, e.g. `"20260101"`). Filters `report_date` (recalls) or `decision_date` (510k). |
| `dateTo` | `string` | `""` | Optional end date (`YYYYMMDD`, e.g. `"20261231"`). |
| `maxItems` | `integer` | `15` | Maximum records to extract (`1`–`1000`), paginated cleanly in chunks of 100. |
| `openFdaApiKey` | `string` | `""` | Optional openFDA API key (`isSecret: true`) for 240 req/min rate limits. |

Zero-match queries (openFDA `404 NOT_FOUND`) are handled gracefully and finish with an empty dataset rather than failing your scheduled pipeline.

***

### Normalized Output Schema

Every dataset produces the exact same 14 fields so downstream SQL warehouses, spreadsheets, Slack alerts, and LLM tools work identically across food, drug, device, and 510(k) records.

#### Example Output JSON (`food_recalls`)

```json
{
  "recordId": "H-0197-2027",
  "dataset": "food_recalls",
  "classification": "Class I",
  "status": "Completed",
  "recallingFirmOrApplicant": "Family Farmstead Dairy, LLC",
  "productOrDeviceName": "Raw milk cheddar cheese packed in vacuum sealed clear plastic, 8oz blocks.",
  "reasonOrDecision": "Potential contamination with E. coli (pathogenic non-O157 STEC).",
  "distributionPattern": "Distributors located in CT, MA, MD, NJ, NY, PA, and VA.",
  "city": "Worcester",
  "state": "NY",
  "country": "United States",
  "reportOrDecisionDate": "2026-11-11",
  "voluntaryMandated": "Voluntary: Firm initiated",
  "sourceApiUrl": "https://api.fda.gov/food/enforcement.json?limit=15&skip=0&sort=report_date%3Adesc"
}
```

#### Example Output JSON (`device_510k`)

```json
{
  "recordId": "K260132",
  "dataset": "device_510k",
  "classification": "Class II",
  "status": "Substantially Equivalent",
  "recallingFirmOrApplicant": "Botiss Biomaterials GmbH",
  "productOrDeviceName": "Jason membrane",
  "reasonOrDecision": "Substantially Equivalent (SESE)",
  "distributionPattern": "Advisory Committee: Dental | Product Code: NPL",
  "city": "Zossen",
  "state": "",
  "country": "DE",
  "reportOrDecisionDate": "2026-11-08",
  "voluntaryMandated": "Traditional",
  "sourceApiUrl": "https://api.fda.gov/device/510k.json?limit=15&skip=0&sort=decision_date%3Adesc"
}
```

***

### Pay-Per-Event Pricing (`fda-record`)

This Actor uses Apify **Pay-Per-Event (PPE)** billing so you only pay for actual compliance records delivered:

- **Event name:** `fda-record` — charged once per normalized record pushed to the dataset, protected by a deterministic idempotency key (`fda-<recordId>`).
- **Zero-result runs cost $0 in record events** when no matching FDA filings exist for your date window or keyword.
- **Hard budget cap honored automatically:** the Actor checks `event_charge_limit_reached` after every charge and stops cleanly the instant your run's maximum spend limit is reached.

***

### Automate FDA Recall Alerts in n8n (Slack Workflow)

Turn this Actor into a real-time **Class I Food & Drug Recall Slack Monitor** in three n8n nodes:

1. **Schedule Trigger** — Run daily at 08:00 AM (or hourly for active QA desks).
2. **HTTP Request (Apify Run-Sync Dataset Items)** — `POST` to:
   ```text
   https://api.apify.com/v2/acts/<YOUR_USERNAME>~fda-recalls-compliance-monitor/run-sync-get-dataset-items?token={{$env.APIFY_TOKEN}}
   ```
   JSON Body:
   ```json
   {
     "dataset": "food_recalls",
     "classification": "Class I",
     "keyword": "Listeria",
     "dateFrom": "{{$now.minus({ days: 7 }).toFormat('yyyyMMdd')}}",
     "maxItems": 20
   }
   ```
3. **Slack Node (`Send a Message`)** — Post one alert per returned item:
   ```text
   :rotating_light: *FDA {{ $json.classification }} Recall* (`{{ $json.recordId }}`)
   *Firm:* {{ $json.recallingFirmOrApplicant }} ({{ $json.city }}, {{ $json.state }})
   *Date:* {{ $json.reportOrDecisionDate }} | *Status:* {{ $json.status }}
   *Reason:* {{ $json.reasonOrDecision }}
   *Distribution:* {{ $json.distributionPattern }}
   ```

***

### Use with AI Agents & Model Context Protocol (MCP)

Connect this Actor directly to **Claude Desktop, Cursor, Windsurf, or custom LangGraph / OpenAI agents** via the official Apify MCP Server so your compliance copilot can query live FDA enforcement and 510(k) databases on demand:

```json
{
  "mcpServers": {
    "apify-fda-compliance": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "<YOUR_USERNAME>/fda-recalls-compliance-monitor"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

**Example Agent Prompts:**

- *"Check all Class I U.S. food recalls mentioning peanut or undeclared allergens in California since January 2026 and summarize affected distributors."*
- *"Pull the latest 25 FDA 510(k) medical device clearances mentioning insulin pumps and list the applicant, K-number, clearance pathway, and decision date."*
- *"Monitor recent Class I drug recalls nationwide and flag any ongoing recalls initiated by compounding pharmacies."*

***

### Data Source & Compliance Notice

All data is retrieved directly from the official U.S. Food and Drug Administration **openFDA** API (`https://api.fda.gov`). Per openFDA terms, do not rely solely on openFDA to make clinical or medical decisions; always consult official FDA recall notices and qualified regulatory counsel for compliance actions.

# Actor input Schema

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

Select which official openFDA endpoint to query: Food Recalls, Drug Recalls, Medical Device Recalls, or Medical Device 510(k) Clearances.

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

Optional search keyword matched across recall reason, product description, firm name, and code info (or device name, applicant, advisory committee, and product code for 510(k)). Examples: "Listeria", "peanut", "insulin".

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

Filter by FDA hazard classification (Class I = most severe, Class II = moderate, Class III = low risk). For device_510k, maps to openFDA device class (1, 2, or 3).

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

Optional 2-letter U.S. state abbreviation of the recalling firm or 510(k) applicant (e.g., "CA", "TX", "NY").

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

Optional start date in YYYYMMDD format (e.g., "20260101"). Filters report_date for recalls or decision_date for 510(k) clearances.

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

Optional end date in YYYYMMDD format (e.g., "20261231"). Filters report_date for recalls or decision_date for 510(k) clearances.

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

Maximum number of newest FDA records to extract (1 to 1000).

## `openFdaApiKey` (type: `string`):

Optional free API key from open.fda.gov to increase rate limits from 40 requests/min to 240 requests/min. Never exposed in dataset outputs.

## Actor input object example

```json
{
  "dataset": "food_recalls",
  "keyword": "",
  "classification": "ALL",
  "state": "",
  "dateFrom": "",
  "dateTo": "",
  "maxItems": 15
}
```

# Actor output Schema

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

Structured overview table of extracted records.

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

All extracted records in the default dataset.

# 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 = {
    "dataset": "food_recalls",
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("regenerative_cornice/fda-recalls-compliance-monitor").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 = {
    "dataset": "food_recalls",
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("regenerative_cornice/fda-recalls-compliance-monitor").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 '{
  "dataset": "food_recalls",
  "maxItems": 15
}' |
apify call regenerative_cornice/fda-recalls-compliance-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,regenerative_cornice/fda-recalls-compliance-monitor"
        }
    }
}
```

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/d5eG79y7SFocT6ffZ/builds/1E5p0NGqewaqKkH9R/openapi.json
