# CPSC Product Recalls Scraper – US Recall Alerts API (`fayaz-data/cpsc-recalls`) Actor

Get US consumer product recalls from the official CPSC API: product, hazard, remedy, number of units, where it was sold, country of manufacture, UPC codes and the CPSC link. Filter by date, keyword, product type, country or retailer. US$4 per 1,000 recalls.

- **URL**: https://apify.com/fayaz-data/cpsc-recalls.md
- **Developed by:** [Fayaz](https://apify.com/fayaz-data) (community)
- **Categories:** E-commerce, Business, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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 Scraper – US Recall Alerts API

**Get US consumer product recalls from the official CPSC (Consumer Product Safety Commission) API as one clean table.**

Get every **US consumer product recall** from the official **CPSC** (U.S. Consumer Product Safety Commission) recalls API in one clean table: product, hazard, remedy, number of units, where it was sold, country of manufacture, UPC codes and the CPSC page link. Filter by date, product type, keyword, country or retailer. Turn on **Only new recalls** and schedule it daily for an alert feed.

### Who it is for

Amazon, Walmart and Shopify sellers, importers and sourcing agents, product-safety and liability professionals, and anyone who needs a feed of US product recalls.

### Use cases

1. **Seller check**: search a keyword such as `magnet`, `battery` or `crib` with *Sold at* `Amazon` to see recalls of products like the ones you sell.
2. **Sourcing watch**: filter by *Country of manufacture* and *Product type* to follow recalls in your category.
3. **Daily alert feed**: schedule it with *Only new recalls* on and send new rows to Slack, email or a sheet.

### Input

| Field | What it does | Default |
|---|---|---|
| Recalled from / until | Recall date range, `YYYY-MM-DD` | last 30 days |
| Keyword | Searched in title, description, product names, hazard and remedy (e.g. `magnet`, `battery`, `crib`) | none |
| Product type | CPSC product type, e.g. `Toys`, `Furniture` | any |
| Country of manufacture | e.g. `China` | any |
| Sold at | Retailer text, e.g. `Amazon`, `Walmart` | any |
| Max results | Up to 50,000 | 500 |
| Only new recalls | Skip recalls already returned by earlier runs on your account | off |

Example input (battery recalls sold on Amazon since 2025):

```json
{ "dateFrom": "2025-01-01", "keyword": "battery", "soldAt": "amazon", "maxResults": 100 }
```

The input the form starts with (this is what the example output below came from):

```json
{
  "maxResults": 20,
  "onlyNew": false
}
```

### Output

Recall number, recall date, title, description, product names, types and models, number of units, hazard, injuries, remedy and remedy options (refund, repair, replace), where it was sold, manufacturers, importers, distributors, country of manufacture, UPC codes, consumer contact, image links and the CPSC page link.

Real output from a run with the default input on 22 Nov 2026 (long text shortened with …):

```json
{
  "recallNumber": "27096",
  "recallId": 11068,
  "recallDate": "2026-11-19",
  "lastPublishDate": "2026-11-19",
  "title": "CHE-US Recalls Magnetic Robot Toys Due to Risk of Serious Injury or Death from Magnet Ingestion; Violate Mandatory Standard for Toys",
  "description": "This recall involves CHE-US magnetic stick figure toys. The robot-shaped toys were sold in sets of five or 10 purple, blue, yellow, red and green stick figures. Each stick figure has four small magnets, one in each hand and foot. “X004N3MGCB” is printed on the back of the product…",
  "productNames": [
    "CHE-US Magnetic Robot Toys"
  ],
  "productTypes": [
    "Toy Figures"
  ],
  "productModels": [],
  "units": "About 101,282",
  "hazard": "The recalled magnetic stick figures violate the mandatory standard for toys because when pulled apart, the figures’ arms and legs liberate high-powered magnets posing an ingestion hazard to children. When high-powered magnets are swallowed, the ingested magnets can attract each o…",
  "injuries": "None reported.",
  "remedy": "Consumers should stop using the stick figures immediately, take them away from children and contact CHE-US for a full refund. Consumers will be asked to send a photo of the toys in the trash to CHE-USMagneticRobotToysRecall@outlook.com. Consumers should then dispose of the recall…",
  "remedyOptions": [
    "Refund"
  ],
  "soldAt": "Sold Online At:\nAmazon.com from April 2025 through August 2026 for between t $9 and $18. | Guangzhou Shian Trading Co., Ltd., dba CHE-US/CHESLICR, of China.",
  "manufacturers": [],
  "importers": [],
  "distributors": [],
  "manufacturerCountries": [
    "China"
  ],
  "upcs": [],
  "consumerContact": "CHE-US by email at CHE-USMagneticRobotToysRecall@outlook.com.",
  "imageUrls": [
    "https://www.cpsc.gov/s3fs-public/CHE-US1_0.png?VersionId=hd_X3virMdw1i3M3SIhCpNLt1znSh53a",
    "https://www.cpsc.gov/s3fs-public/CHE-US2_0.png?VersionId=OE4B0sUpYZJ9gTzBrvKDobARsfiaoeqo"
  ],
  "url": "https://cpsc.gov/Recalls/2027/CHE-US-Recalls-Magnetic-Robot-Toys-Due-to-Risk-of-Serious-Injury-or-Death-from-Magnet-Ingestion-Violate-Mandatory-Standard-for-Toys"
}
```

Download as JSON, CSV or Excel, or send the results to Google Sheets, Slack, Make, Zapier, n8n or a webhook from the Apify console.

### Price

You pay **US$4 for every 1,000 recalls** saved, which is 0.4 US cents per recall. The default run (20 recalls) costs about 8 US cents. There is also an Apify start fee of US$0.00005 per run (per GB of memory). There is no monthly fee.

### FAQ

**Is this official CPSC data?**
Yes. It reads the public CPSC recalls API (saferproducts.gov). This tool is not made by, linked to or endorsed by CPSC.

**Does it include pictures?**
It gives links to the CPSC images, not the image files, because images may belong to others.

**Can I search by UPC?**
UPC codes are returned when CPSC lists them, so you can filter the exported table by UPC.

**How do I get only new recalls?**
Turn on *Only new recalls*. The tool skips recalls that earlier runs on your account already returned.

### Limits

1. Only US recalls published by CPSC. Food, drugs, cars and medical devices are covered by FDA and NHTSA, not CPSC (see our FDA and NHTSA tools).
2. Fields such as UPC, units and retailers are only filled when CPSC publishes them.
3. Check the CPSC notice for anything important.

### Data source and licence

Data comes from the official CPSC recalls API (https://www.saferproducts.gov/RestWebServices/Recall). CPSC says its web text "is public information. You may freely distribute, copy, or link to any of this information" (https://www.cpsc.gov/About-CPSC/Policies-Statements-and-Directives/Privacy-Policy). Images may belong to others, so this actor gives image **links** only. This actor is not made by, linked to or endorsed by CPSC. Check the CPSC notice for anything important.

### For the developer

- Run locally: `npm install && apify run --input '{"maxResults":20}'`
- Test: `npm test` (checks the URL builder, the field mapping and the filters)

# Actor input Schema

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

Only recalls announced on or after this day. Empty = last 30 days.

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

Empty = today.

## `keyword` (type: `string`):

Words to find in the title, description, product names, hazard or remedy, e.g. 'magnet', 'battery', 'crib'. Case does not matter.

## `productType` (type: `string`):

CPSC product type, e.g. 'Toys', 'Furniture', 'Clothing'. Partial words work.

## `manufacturerCountry` (type: `string`):

e.g. 'China', 'Vietnam'.

## `soldAt` (type: `string`):

Only recalls whose retailer text mentions this, e.g. 'Amazon', 'Walmart', 'Target'.

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

Stop after this many recalls.

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

Skip recalls this actor already returned in earlier runs on your account. Use with a daily schedule for alerts.

## Actor input object example

```json
{
  "maxResults": 20,
  "onlyNew": false
}
```

# Actor output Schema

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

All results in the default dataset, shown with the overview view.

# 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 = {
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("fayaz-data/cpsc-recalls").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 = { "maxResults": 20 }

# Run the Actor and wait for it to finish
run = client.actor("fayaz-data/cpsc-recalls").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 '{
  "maxResults": 20
}' |
apify call fayaz-data/cpsc-recalls --silent --output-dataset

```

## MCP server setup

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

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/AZ33uSfFaVPFubLVX/builds/Fzhp3Yld0vxBsqrbJ/openapi.json
