# FDA Drug and Device Recalls: Enforcement Report Feed (`thoob/fda-drug-device-recall-feed`) Actor

FDA drug and device recall enforcement reports from the public openFDA API. Returns recall number, class, status, firm, product, reason, distribution and dates, filtered by date window, class, state and keyword. Only delivered recall rows are billed.

- **URL**: https://apify.com/thoob/fda-drug-device-recall-feed.md
- **Developed by:** [Pono Data](https://apify.com/thoob) (community)
- **Categories:** News, 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 $2.10 / 1,000 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 Drug and Device Recalls: Enforcement Report Feed

This actor returns FDA drug and medical device recall enforcement reports from the openFDA API, for quality, regulatory and compliance teams, pharmacies, distributors and researchers who track recalls. Food recalls are not included.

### Input

```json
{ "category": "both", "daysBack": 30, "maxRecords": 20, "onlyNew": false }
```

- `category`: `drug`, `device` or `both`.
- `daysBack`: 1 to 3650 days ending today (UTC). `since` and `until` (`YYYY-MM-DD`) set an exact window instead.
- `classifications`: any of `Class I`, `Class II`, `Class III`.
- `state`: two-letter state of the recalling firm.
- `keyword`: keeps recalls whose product description or reason for recall contains any keyword, ignoring case.
- `onlyNew`: returns only recalls not seen in earlier runs, or whose status changed.
- `maxRecords`: cap on billed rows, 0 means no cap.

### Output

One row per recall, newest report date first. Illustration only, values may differ:

```json
{
  "recallNumber": "D-0123-2026",
  "category": "drug",
  "classification": "Class II",
  "status": "Ongoing",
  "eventId": "98765",
  "recallingFirm": "Example Pharma Inc.",
  "city": "Philadelphia",
  "state": "PA",
  "country": "United States",
  "voluntaryMandated": "Voluntary: Firm initiated",
  "initialFirmNotification": "Letter",
  "productDescription": "Example Tablets, 10 mg, 30-count bottle",
  "productQuantity": "12,000 bottles",
  "codeInfo": "Lot 1234, Exp 06/2027",
  "reasonForRecall": "Failed dissolution specifications",
  "distributionPattern": "Nationwide",
  "recallInitiationDate": "2026-10-02",
  "centerClassificationDate": "2026-10-20",
  "reportDate": "2026-10-28",
  "terminationDate": null,
  "brandName": ["EXAMPLE"],
  "genericName": ["EXAMPLAMIDE"],
  "manufacturerName": ["Example Pharma Inc."],
  "changeType": null,
  "sourceUrl": "https://api.fda.gov/drug/enforcement.json?search=recall_number.exact:\"D-0123-2026\"",
  "retrievedAt": "2026-11-21T12:00:00Z"
}
```

Dates in `YYYYMMDD` form become `YYYY-MM-DD`; other values are kept as given. Missing values are null. The openFDA name lists are often null for devices.

### Who uses it

- Pharmacy and hospital supply teams who check `reasonForRecall`, `codeInfo` and `classification` for products they stock.
- Distributors who filter by `state` and read `distributionPattern` to see which recalls may affect their customers.
- Quality and regulatory staff who follow recalls by `recallingFirm` and `status`.
- Legal researchers who collect `recallInitiationDate` and `terminationDate` history.

### Pricing

Pay per event `recall-record`: USD 3.00 per 1,000 rows. You are charged only for delivered recall rows; every other row is free. Recalls skipped by `onlyNew` are not charged.

### Limits

- At most 400 requests per run, at least 500 ms apart, 100 recalls per page.
- openFDA paging stops at 25,000 results per query; a warning asks you to narrow the window.
- With two classifications, the class filter runs only inside the actor.
- A page that fails after retries ends that category only; delivered rows are kept.

### FAQ

#### Is any input required?

No. `category` chooses drug or device recalls. `daysBack`, `since`, `until`, `classifications`, `state` and `keyword` narrow the results.

#### What does an empty result mean?

No recall matched the date window and filters. With `onlyNew` on, it can also mean nothing is new or changed since earlier runs. Unchanged recalls are not billed.

#### Where does the data come from?

From FDA enforcement reports in the public openFDA API. Each row includes `sourceUrl` and `retrievedAt`.

#### Can it run on a schedule or through the API?

Yes, through Apify Schedules or the Apify API. `onlyNew` suits repeat runs, and `changeType` marks each delivered row.

### Compliance

- Public sources only: the documented openFDA enforcement endpoints on api.fda.gov.
- No key, no login.
- Honest User-Agent: `PonoDataActors/1.0 (+https://ponodata.com)`.
- Requests stay within the documented openFDA rate limits.
- Every row carries `sourceUrl` and `retrievedAt`.

# Actor input Schema

## `category` (type: `string`):

Which openFDA enforcement endpoint to read: drug, device or both. Food recalls are not covered.

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

Report date window: today UTC minus this many days through today UTC. Ignored when Since is set.

## `since` (type: `string`):

Window start as YYYY-MM-DD. Replaces Days back when given. Must be a real date, not later than Until.

## `until` (type: `string`):

Window end as YYYY-MM-DD. Defaults to today UTC.

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

Keep only these FDA recall classes. Empty means all. Unknown values and duplicates are dropped with a warning.

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

Two-letter state of the recalling firm, for example PA. Uppercased; any other shape is an error.

## `keyword` (type: `array`):

Keep a recall when its product description or reason for recall contains any keyword, ignoring case.

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

Return only recalls not seen in earlier runs or whose status changed, tracked in the key-value store fda-drug-device-recall-feed-seen. Unchanged recalls are skipped and not charged.

## `maxRecords` (type: `integer`):

Cap on delivered, billed recall rows. 0 means no cap. The platform spend cap is honored regardless.

## Actor input object example

```json
{
  "category": "both",
  "daysBack": 30,
  "onlyNew": false,
  "maxRecords": 20
}
```

# Actor output Schema

## `recalls` (type: `string`):

One row per recall, newest report date first.

# 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 = {
    "category": "both",
    "daysBack": 30,
    "onlyNew": false,
    "maxRecords": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thoob/fda-drug-device-recall-feed").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 = {
    "category": "both",
    "daysBack": 30,
    "onlyNew": False,
    "maxRecords": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thoob/fda-drug-device-recall-feed").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 '{
  "category": "both",
  "daysBack": 30,
  "onlyNew": false,
  "maxRecords": 20
}' |
apify call thoob/fda-drug-device-recall-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thoob/fda-drug-device-recall-feed"
        }
    }
}
```

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/ROGTnnEKek2cvgh5J/builds/ymTcz0H3lYNu3WY41/openapi.json
