# US Product Recalls Watch (CPSC + FDA) (`socosupply/product-recalls-watch`) Actor

Scheduled monitor for new or updated US product recalls from official CPSC SaferProducts.gov and openFDA enforcement APIs (no API key). Filter by source, category, and keywords. Normalized feed for compliance, retail, and safety teams.

- **URL**: https://apify.com/socosupply/product-recalls-watch.md
- **Developed by:** [Soco Supply](https://apify.com/socosupply) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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.

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

## US Product Recalls Watch (CPSC + FDA)

Monitor **new or updated US product recalls** from official [CPSC SaferProducts.gov](https://www.saferproducts.gov/) and [openFDA enforcement](https://open.fda.gov/apis/) APIs (no API key). Each scheduled run returns recalls that are **new or changed** since the previous run. State is stored in `product-recalls-watch-state`.

Sources: **CPSC** consumer product recalls, **FDA** food/drug/device enforcement recalls.

### Input example

```json
{
  "sources": ["cpsc", "fda_food", "fda_drug"],
  "categories": ["consumer", "food"],
  "keywords": ["lithium"],
  "recallWithinDays": 14,
  "maxResults": 50,
  "emitAll": false
}
```

### Output example

```json
{
  "source": "cpsc",
  "recallNumber": "25-123",
  "title": "Example Children's Toy Recalled Due to Choking Hazard",
  "firmName": "Example Toys Inc.",
  "publishedDate": "2026-10-05",
  "category": "consumer",
  "productSummary": "Wooden puzzle sets",
  "hazardOrReason": "Choking hazard",
  "url": "https://www.cpsc.gov/Recalls/2026/example",
  "changeType": "new"
}
```

Firm names are **organization names from government recall records** (public data). No personal contact details.

### Sample run vs. monitoring

| Mode | `emitAll` | What you get |
|------|-----------|--------------|
| **Sample / first look** | `true` | Up to `maxResults` matching recalls. |
| **Scheduled monitoring** | `false` | Only recalls **new** or **updated** since the last run. |

### Pricing

**$4.00 per 1,000 results** plus **$0.003 per Actor start** (Apify pay-per-event).

# Actor input Schema

## `sources` (type: `array`):

Official sources to query: cpsc, fda_food, fda_drug, fda_device.

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

Filter to consumer (CPSC), food, drug, or device. Empty = any category from selected sources.

## `keywords` (type: `array`):

Match if any keyword appears in product text, hazard/reason, or firm name (case-insensitive).

## `recallWithinDays` (type: `integer`):

Include recalls published or reported within this many days (UTC).

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

Stop after pushing this many recalls (0 = unlimited).

## `emitAll` (type: `boolean`):

If true, push every recall matching filters. If false, only new or updated since the last run.

## Actor input object example

```json
{
  "sources": [
    "cpsc",
    "fda_food"
  ],
  "categories": [],
  "keywords": [],
  "recallWithinDays": 14,
  "maxResults": 10,
  "emitAll": true
}
```

# Actor output Schema

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

New or updated recall records from this run (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 = {
    "sources": [
        "cpsc",
        "fda_food"
    ],
    "categories": [],
    "keywords": [],
    "recallWithinDays": 14,
    "maxResults": 10,
    "emitAll": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("socosupply/product-recalls-watch").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 = {
    "sources": [
        "cpsc",
        "fda_food",
    ],
    "categories": [],
    "keywords": [],
    "recallWithinDays": 14,
    "maxResults": 10,
    "emitAll": True,
}

# Run the Actor and wait for it to finish
run = client.actor("socosupply/product-recalls-watch").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 '{
  "sources": [
    "cpsc",
    "fda_food"
  ],
  "categories": [],
  "keywords": [],
  "recallWithinDays": 14,
  "maxResults": 10,
  "emitAll": true
}' |
apify call socosupply/product-recalls-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socosupply/product-recalls-watch"
        }
    }
}
```

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/TibI78xMmQvgqPg1Z/builds/pYmu0TGV8ZDiBFCim/openapi.json
