# FDA Food Recall Monitor (`zinin/fda-food-recall-monitor`) Actor

Find official openFDA food enforcement recalls by product, recalling firm, state, and date range for supply-chain and retail compliance workflows.

- **URL**: https://apify.com/zinin/fda-food-recall-monitor.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 5 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Food Recall Monitor

Retrieve official U.S. FDA food enforcement recall records from openFDA. Filter by product terms, recalling firms, states, and recall initiation dates—without an API key, login, HTML scraping, or proxy.

### Use cases

- Screen product catalogs and suppliers for relevant recall records.
- Feed retail and food supply-chain compliance reviews.
- Track recall classification, status, reason, and distribution scope.
- Export source-attributed evidence for audits and internal workflows.

### Input

```json
{
  "productKeywords": ["cheese"],
  "recallingFirms": [],
  "states": ["CA"],
  "dateFrom": "2020-01-01",
  "dateTo": "2026-12-31",
  "maxItems": 25
}
```

Each array accepts at most 10 values. Values in the same array are ORed; product, firm, state, and date groups are ANDed. `maxItems` is capped at 1,000. The default prefill searches `cheese`, returns up to 10 rows, and needs no key.

### Output

```json
{
  "found": true,
  "recallNumber": "F-1892-2016",
  "productDescription": "Turkey Breast & Cheese Sandwich ...",
  "recallingFirm": "Example Foods, Inc.",
  "state": "CA",
  "classification": "Class I",
  "reasonForRecall": "Potential contamination.",
  "distributionPattern": "U.S. distribution nationwide.",
  "status": "Terminated",
  "recallInitiationDate": "20160523",
  "source": "U.S. Food and Drug Administration openFDA Food Enforcement API",
  "sourceUrl": "https://api.fda.gov/food/enforcement.json?...",
  "retrievedAt": "2026-11-10T19:50:00.000Z"
}
```

Every successful row includes source attribution, the exact API request URL, and retrieval time. A genuine no-match or a source error produces a `found:false` explanatory row. Such rows do not use the paid result event.

### Pricing

**$0.0025 per food recall record (`result-found`) on the Free plan, with automatic discounts on paid Apify plans: Bronze −5%, Silver −10%, Gold −15%, Platinum −18%, Diamond −20%. A small Actor start event ($0.002) applies per run** — pricing consists of the platform start event and a pay-per-successful-result event. Failed and empty-result notice rows are free.

### Limitations

- Results reflect the FDA enforcement dataset and its update schedule; this Actor does not determine whether a product is safe or provide legal advice.
- openFDA search behavior, record completeness, and historical coverage are controlled by the FDA.
- Filters are text/exact-field searches supported by openFDA, not fuzzy entity resolution.
- Requests are sequential and intentionally polite. Temporary 429 and server errors use bounded retries; persistent source failures are reported rather than presented as no matches.
- openFDA limits deep pagination; this Actor additionally caps each run at 1,000 results.

### Source, terms, and attribution

Data comes only from the official [openFDA Food Enforcement API](https://open.fda.gov/apis/food/enforcement/). Review the [openFDA terms](https://open.fda.gov/terms/) and API documentation before production use. The FDA states that openFDA data does not constitute regulatory advice; do not imply FDA endorsement. Preserve the `source`, `sourceUrl`, and `retrievedAt` fields when redistributing results.

### Related Actors

- [fda-adverse-event-aggregate](https://apify.com/zinin/fda-adverse-event-aggregate)
- [fda-ndc-product-directory](https://apify.com/zinin/fda-ndc-product-directory)
- [fda-approval-feed](https://apify.com/zinin/fda-approval-feed)

# Actor input Schema

## `productKeywords` (type: `array`):

Terms matched by openFDA against product descriptions. Terms are ORed.

## `recallingFirms` (type: `array`):

Firm names matched by openFDA. Firms are ORed.

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

Two-letter state codes, for example CA or NY. States are ORed.

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

Optional recall initiation start date in YYYY-MM-DD format.

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

Optional recall initiation end date in YYYY-MM-DD format.

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

Maximum recall rows to return.

## Actor input object example

```json
{
  "productKeywords": [
    "cheese",
    "milk"
  ],
  "recallingFirms": [],
  "states": [
    "CA"
  ],
  "dateFrom": "2020-01-01",
  "dateTo": "2026-11-10",
  "maxItems": 10
}
```

# Actor output Schema

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

API URL of this run's default dataset items.

# 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 = {
    "productKeywords": [
        "cheese",
        "milk"
    ],
    "recallingFirms": [],
    "states": [
        "CA"
    ],
    "dateFrom": "2020-01-01",
    "dateTo": "2026-11-10",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/fda-food-recall-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 = {
    "productKeywords": [
        "cheese",
        "milk",
    ],
    "recallingFirms": [],
    "states": ["CA"],
    "dateFrom": "2020-01-01",
    "dateTo": "2026-11-10",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/fda-food-recall-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 '{
  "productKeywords": [
    "cheese",
    "milk"
  ],
  "recallingFirms": [],
  "states": [
    "CA"
  ],
  "dateFrom": "2020-01-01",
  "dateTo": "2026-11-10",
  "maxItems": 10
}' |
apify call zinin/fda-food-recall-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinin/fda-food-recall-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/2Rk0KZfjnhBk1wLsl/builds/0nHHgJRbwsrnzIi8o/openapi.json
