# FDA Food Recall Scraper API - Enforcement Reports (`pink_comic/fda-food-recall-enforcement-search`) Actor

Search FDA food enforcement-report records by recall/event ID, firm, product, reason, classification, status, geography, dates, and voluntary/mandated status. Returns source-linked evidence for food safety research, supplier monitoring, compliance review, and recall workflows.

- **URL**: https://apify.com/pink\_comic/fda-food-recall-enforcement-search.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Business, Automation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 fda food recall enforcement scraper api evidence items

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## FDA Food Recall Enforcement Scraper API

Search official openFDA food enforcement-report records by recall/event ID, firm, product, reason, status, classification, geography, dates, and voluntary/mandated wording.

**Default:** latest reported `Ongoing` + `Class I` record, one paid item, at most **$0.0021** ($0.0001 start + $0.002/item).

```json
{"status":"Ongoing","classification":"Class I","sortBy":"report_date","sortDirection":"desc","maxResults":1}
```

Outputs include FDA identifiers, firm/location, affected-product description, lot/code information, distribution, quantity, reason, notification method, relevant dates, exact source query, retrieval metadata, and bounded-search disclosure. Stable outcomes cover found, no match, invalid input, source unavailable, and charge limit.

### Important limits

These are FDA enforcement-report records—not live inventory, epidemiological causation, consumer-specific exposure, recall-effectiveness, legal-liability, or guaranteed current-completion findings. A displayed status can lag or change. No match does not prove no recall exists. Review current FDA communications, product/lot details, and recalling-firm or public-health instructions before consequential action.

Source: `https://api.fda.gov/food/enforcement.json` only. See the full README for filters, examples, pricing, and interpretation guidance.

# Actor input Schema

## `recallNumber` (type: `string`):

Exact FDA recall number, such as H-1138-2026.

## `eventId` (type: `string`):

Exact FDA enforcement event identifier.

## `recallingFirm` (type: `string`):

Firm name phrase reported by FDA.

## `productKeyword` (type: `string`):

Phrase in FDA's product description.

## `reasonKeyword` (type: `string`):

Phrase in FDA's reported reason for recall.

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

FDA enforcement-report status. Status is point-in-time report evidence, not proof recall activity is currently complete.

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

FDA recall classification.

## `city` (type: `string`):

Exact city reported for the recalling firm.

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

Two-letter state code reported for the recalling firm.

## `country` (type: `string`):

Country reported for the recalling firm.

## `initiationDateFrom` (type: `string`):

Inclusive YYYYMMDD lower bound.

## `initiationDateTo` (type: `string`):

Inclusive YYYYMMDD upper bound.

## `reportDateFrom` (type: `string`):

Inclusive YYYYMMDD lower bound.

## `reportDateTo` (type: `string`):

Inclusive YYYYMMDD upper bound.

## `voluntaryMandated` (type: `string`):

Exact reported source phrase, such as Voluntary: Firm initiated or FDA Mandated.

## `sortBy` (type: `string`):

Bounded server-side date sort.

## `sortDirection` (type: `string`):

Ascending or descending.

## `maxResults` (type: `integer`):

Total paid dataset items. Default one-row run costs at most $0.0021 including the $0.0001 start fee.

## Actor input object example

```json
{
  "status": "Ongoing",
  "classification": "Class I",
  "sortBy": "report_date",
  "sortDirection": "desc",
  "maxResults": 1
}
```

# 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 = {
    "status": "Ongoing",
    "classification": "Class I",
    "sortBy": "report_date",
    "sortDirection": "desc",
    "maxResults": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/fda-food-recall-enforcement-search").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 = {
    "status": "Ongoing",
    "classification": "Class I",
    "sortBy": "report_date",
    "sortDirection": "desc",
    "maxResults": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/fda-food-recall-enforcement-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "status": "Ongoing",
  "classification": "Class I",
  "sortBy": "report_date",
  "sortDirection": "desc",
  "maxResults": 1
}' |
apify call pink_comic/fda-food-recall-enforcement-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=pink_comic/fda-food-recall-enforcement-search",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/7WHVzJfPhxyHTnetw/builds/1QLblX2SaiRvz3bAV/openapi.json
