# CPSC Product Recalls Monitor — SaferProducts API (`reverential_haw/cpsc-product-recalls-monitor`) Actor

Pull U.S. CPSC consumer product recalls from the official SaferProducts REST API. Filter by date, product name, manufacturer, hazard, or UPC. Built for marketplace QA, retail compliance, and insurance risk.

- **URL**: https://apify.com/reverential_haw/cpsc-product-recalls-monitor.md
- **Developed by:** [Finn McDonough](https://apify.com/reverential_haw) (community)
- **Categories:** Automation, 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.00 / 1,000 recall rows

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

## CPSC Product Recalls Monitor — SaferProducts API

**Pull U.S. Consumer Product Safety Commission recalls by date, product, manufacturer, hazard, or UPC — structured JSON for marketplace QA, retail compliance, and insurance risk desks.**

Built on the **official CPSC SaferProducts REST API**. No login, no HTML scraping, no proxies required for typical volumes.

Complements the FDA openFDA recalls Actor for **consumer products** (toys, electronics, furniture, e-bikes) that are outside food/drug/device enforcement.

***

### Who this is for

- **Ecommerce / marketplace sellers** watching supplier and ASIN-adjacent recall risk
- **Retail compliance & QA** teams tracking fire, lead, choking, and battery hazards
- **Insurers & risk analysts** enriching product liability underwriting
- **Agencies & journalists** building CPSC recall datasets without maintaining parsers

### What you get

Each dataset item is one CPSC recall with nested products / manufacturers / hazards flattened:

| Field | Example |
| --- | --- |
| `recallId` / `recallNumber` | `9829` / `24-094` |
| `recallDate` | `2024-01-11` |
| `title` | Pacific Cycle Recalls E-Bikes Due to Fire Hazard |
| `description` | Full recall narrative |
| `productNames[]` | Ascend Cabrillo and Minaret Electric Bikes |
| `manufacturers[]` / `retailers[]` / `importers[]` | Party names when present |
| `hazards[]` / `remedies[]` | Hazard and remedy text |
| `upcs[]` | Product UPCs when published |
| `manufacturerCountries[]` | e.g. China |
| `injuries` | Injury summary text |
| `url` | Deep link to CPSC recall page |

#### Sample output

```json
{
  "recallId": 9829,
  "recallNumber": "24-094",
  "recallDate": "2024-01-11",
  "title": "Pacific Cycle Recalls E-Bikes Due to Fire Hazard",
  "productNames": ["Ascend Cabrillo and Minaret Electric Bikes"],
  "hazards": ["…risk of overheating and fire while charging."],
  "manufacturerCountries": ["China"],
  "url": "https://www.cpsc.gov/Recalls/...",
  "source": "cpsc-saferproducts"
}
```

### How to run

1. Set a **recall date window** (`recallDateStart` / `recallDateEnd`, YYYY-MM-DD) — strongly recommended.
2. Optionally filter by **productName**, **manufacturer**, **hazard**, or **upc**.
3. Set **maxItems**.
4. Run. Schedule weekly for a standing consumer-product recall feed.

#### Example inputs

**January 2024 recalls**

```json
{
  "recallDateStart": "2024-01-01",
  "recallDateEnd": "2024-01-31",
  "maxItems": 200
}
```

**Fire / lithium hazard watch**

```json
{
  "recallDateStart": "2024-01-01",
  "recallDateEnd": "2024-12-31",
  "hazard": "fire",
  "maxItems": 500
}
```

### Pricing (PPE recommendation)

Use **pay-per-event** with synthetic `apify-default-dataset-item` (one charge per recall row) plus default `apify-actor-start`.

| Event | Suggested FREE-tier price | Notes |
| --- | --- | --- |
| `apify-actor-start` | $0.00005 (platform default) | Keep default |
| `apify-default-dataset-item` | **$0.002 / recall** ($2 / 1,000) | Primary event |

Why this band: SaferProducts is HTTP JSON (cheap compute). Matches the openFDA recalls Actor pricing for a consistent **US Recall Suite**.

### Why SaferProducts (legal / ToS)

- Data is published by the U.S. CPSC via [SaferProducts.gov RestWebServices](https://www.saferproducts.gov/RestWebServices/Recall).
- This Actor calls documented JSON (`format=json`) with official query params.
- Fixture mode (`useFixture: true`) is for local/CI validation only.

### Limits & honesty

- CPSC field completeness follows the agency feed; some recalls omit UPCs or manufacturer rows.
- Very wide date ranges can return large payloads — always set `maxItems` and prefer date windows.
- Not a substitute for legal counsel on product liability.

### Related Actors (catalog)

- **FDA Recalls Monitor (openFDA)** — food, drug & device enforcement
- **NHTSA Vehicle Recalls Monitor** — vehicle safety campaigns
- **Federal Register Monitor** — U.S. rules & notices

### Support

Open an issue on the Actor page. Target response: same business day.

# Actor input Schema

## `recallDateStart` (type: `string`):

Inclusive start for RecallDateStart. Recommended for live runs.

## `recallDateEnd` (type: `string`):

Inclusive end for RecallDateEnd.

## `productName` (type: `string`):

Optional ProductName filter (partial match supported by CPSC API).

## `manufacturer` (type: `string`):

Optional Manufacturer filter.

## `hazard` (type: `string`):

Optional Hazard keyword filter (e.g. fire, lead).

## `upc` (type: `string`):

Optional Product UPC filter.

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

Maximum recall records to return.

## `useFixture` (type: `boolean`):

When true, read fixtures/sample-cpsc-response.json instead of calling SaferProducts. For local validation only.

## `fixturePath` (type: `string`):

Path to a fixture JSON file (relative to the Actor root).

## Actor input object example

```json
{
  "recallDateStart": "2024-01-01",
  "recallDateEnd": "2024-01-31",
  "productName": "",
  "manufacturer": "",
  "hazard": "",
  "upc": "",
  "maxItems": 100,
  "useFixture": false,
  "fixturePath": "fixtures/sample-cpsc-response.json"
}
```

# Actor output Schema

## `overview` (type: `string`):

Tabular overview of the most useful dataset fields.

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

All normalized CPSC recall records in the default dataset.

## `summary` (type: `string`):

JSON summary of items pushed and run metadata, stored in the default key-value store as OUTPUT_SUMMARY.

# 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 = {
    "recallDateStart": "2024-01-01",
    "recallDateEnd": "2024-01-31",
    "productName": "",
    "manufacturer": "",
    "hazard": "",
    "upc": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("reverential_haw/cpsc-product-recalls-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 = {
    "recallDateStart": "2024-01-01",
    "recallDateEnd": "2024-01-31",
    "productName": "",
    "manufacturer": "",
    "hazard": "",
    "upc": "",
}

# Run the Actor and wait for it to finish
run = client.actor("reverential_haw/cpsc-product-recalls-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 '{
  "recallDateStart": "2024-01-01",
  "recallDateEnd": "2024-01-31",
  "productName": "",
  "manufacturer": "",
  "hazard": "",
  "upc": ""
}' |
apify call reverential_haw/cpsc-product-recalls-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reverential_haw/cpsc-product-recalls-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/NaFRkVv1y7huXYcy6/builds/RWf6UnwbpEZWgXxbf/openapi.json
