# FDA Recalls & openFDA Enforcement Reports (`plainkitbin/fda-recalls`) Actor

Fetch FDA recall enforcement reports for food, drugs, and medical devices from the public openFDA API as clean structured JSON. Not affiliated with the FDA.

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

## Pricing

from $3.48 / 1,000 fda recall 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 & openFDA Enforcement Reports Scraper

Online sellers, compliance officers, supply chain managers, healthcare quality assurance teams, and food and drug safety monitoring specialists need FDA recall enforcement reports as clean tabular rows without manually scraping openFDA or parsing complex government feeds. One run retrieves recent recall enforcement records across food, drug, and medical device categories, returning structured JSON rows containing recall numbers, hazard classifications, recalling firms, product descriptions, reasons for recall, distribution patterns, and dates.

The price is **$0.005** per delivered recall row under the `FREE` tier on Apify Pay-Per-Event (event name: `fda-recall`).
This Actor is an independent tool and is not affiliated with the FDA.

### Output Row Fields

Each delivered recall record contains 12 unified fields:

- `recall_number`: Unique FDA enforcement recall identifier (e.g. `F-0101-2024`)
- `category`: Enforcement endpoint category (`food`, `drug`, or `device`)
- `classification`: FDA hazard level (`Class I`, `Class II`, or `Class III`)
- `status`: Current recall status (`Ongoing`, `Completed`, or `Terminated`)
- `recalling_firm`: Name of the firm initiating or subject to the recall
- `product_description`: Description of the recalled product and packaging details
- `reason_for_recall`: Specific reason documented for the recall action
- `distribution_pattern`: Geographic distribution area where product was shipped
- `report_date`: Date the recall was reported (YYYY-MM-DD)
- `recall_initiation_date`: Date the firm initiated the recall action (YYYY-MM-DD)
- `termination_date`: Date the FDA officially terminated the recall (YYYY-MM-DD or empty)
- `voluntary_mandated`: Whether the recall was firm-initiated voluntary or FDA mandated

#### Example Output

```json
{
  "category": "food",
  "classification": "Class I",
  "distribution_pattern": "Distributed to retail stores in TX, OK, and LA.",
  "product_description": "Fresh Sliced Granny Smith Apples, 8 oz bag",
  "reason_for_recall": "Potential presence of Listeria monocytogenes in sliced apples.",
  "recall_initiation_date": "2024-10-10",
  "recall_number": "F-0101-2024",
  "recalling_firm": "Fresh Fruit Co.",
  "report_date": "2024-10-20",
  "status": "Ongoing",
  "termination_date": "",
  "voluntary_mandated": "Voluntary: Firm Initiated"
}
```

### Pricing and Charging

- Event name: `fda-recall`
- Pricing model: Apify Pay-Per-Event
- Tier prices:
  - FREE: $0.005 per event
  - BRONZE: $0.0045 per event
  - SILVER: $0.004 per event
  - GOLD: $0.003484 per event
  - PLATINUM: $0.003484 per event
  - DIAMOND: $0.003334 per event

Each recall row is pushed first to the dataset and charged right after a successful push.
A refused charge or reached spending limit halts work immediately; that row remains delivered and uncharged.
Failed requests produce 0 charges and push no data.
Restart safety: if a run is restarted or resumed by the platform, already delivered recall records are recognized and never pushed or charged twice.

### Input Parameters

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `categories` | Array of strings | FDA categories to scrape: `food`, `drug`, `device`. | `["food", "drug", "device"]` |
| `search` | String | Free-text search matching product description, recalling firm, or reason. | `""` |
| `classification` | String (select) | Health hazard level: `Class I`, `Class II`, or `Class III`. | `""` |
| `status` | String (select) | Operational status: `Ongoing`, `Completed`, or `Terminated`. | `""` |
| `date_from` | String | Earliest report date in `YYYY-MM-DD` or `YYYYMMDD` format. | `""` |
| `date_to` | String | Latest report date in `YYYY-MM-DD` or `YYYYMMDD` format. | `""` |
| `max_items` | Integer (1-1000) | Maximum total records to output across requested categories. | `10` |

#### Example Input

```json
{
  "categories": ["food", "drug"],
  "search": "apples",
  "classification": "Class I",
  "status": "Ongoing",
  "max_items": 10
}
```

### openFDA Compliance & Limitations

Data is accessed via the public openFDA enforcement endpoints.
Data in openFDA is public domain under CC0 1.0 Universal.
This Actor adheres strictly to openFDA access policies:

- Standard rate limit is 240 requests per minute and 1,000 requests per day per IP address.
- Automatic request spacing and backoff retries prevent rate limit violations.
- openFDA data can lag behind the FDA website and is not guaranteed to be complete.
- For compliance inquiries contact compliance@example.com.

# Actor input Schema

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

FDA enforcement categories to search: food, drug, and/or device. Defaults to all three.

## `search` (type: `string`):

Free-text search term matching product description, recalling firm, or reason for recall.

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

Health hazard classification level: 'Class I', 'Class II', or 'Class III'. Leave empty for all classifications.

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

Recall operational status: 'Ongoing', 'Completed', or 'Terminated'. Leave empty for all statuses.

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

Filter by recall report date on or after this date (format: YYYY-MM-DD or YYYYMMDD).

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

Filter by recall report date on or before this date (format: YYYY-MM-DD or YYYYMMDD).

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

Maximum total number of recall records to output across categories (prefilled default 10).

## Actor input object example

```json
{
  "categories": [
    "food",
    "drug",
    "device"
  ],
  "search": "",
  "classification": "",
  "status": "",
  "date_from": "",
  "date_to": "",
  "max_items": 10
}
```

# Actor output Schema

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

Dataset items produced by this run.

# 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",
        "drug",
        "device"
    ],
    "search": "",
    "classification": "",
    "status": "",
    "date_from": "",
    "date_to": "",
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/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",
        "drug",
        "device",
    ],
    "search": "",
    "classification": "",
    "status": "",
    "date_from": "",
    "date_to": "",
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/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",
    "drug",
    "device"
  ],
  "search": "",
  "classification": "",
  "status": "",
  "date_from": "",
  "date_to": "",
  "max_items": 10
}' |
apify call plainkitbin/fda-recalls --silent --output-dataset

```

## MCP server setup

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