# CPSC Recalls Search: U.S. Consumer Product Recalls (`fecklesspleb/cpsc-recalls-search`) Actor

Search official U.S. Consumer Product Safety Commission recall announcements by keyword, product, company, hazard, date and recall number. Phone numbers and e-mail addresses are removed. Unofficial, not affiliated with or endorsed by the CPSC.

- **URL**: https://apify.com/fecklesspleb/cpsc-recalls-search.md
- **Developed by:** [fecklesspleb](https://apify.com/fecklesspleb) (community)
- **Categories:** Business, Open source, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.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

## CPSC Recalls Search

Search recall announcements published by the U.S. Consumer Product Safety Commission (CPSC) through the public Recalls REST API on SaferProducts.gov, by keyword (title), description, product name, manufacturer, retailer, importer, distributor, country of manufacture, hazard, remedy, recall number, UPC, and a date range. Each result has the recall id and number, dates, title, description, CPSC page URL, a redacted consumer-contact line, product names and details, hazards, remedies, injury summaries, company names, country of manufacture, UPCs, image URLs, and a source URL.

Data provided by the U.S. Consumer Product Safety Commission (https://www.cpsc.gov, https://www.saferproducts.gov). Unofficial, not affiliated with or endorsed by the U.S. Consumer Product Safety Commission (CPSC).

### Disclaimer (verbatim from SaferProducts.gov)

From https://www.saferproducts.gov/Business/Acknowledge (Limitation of Liability, Disclaimer, Statement of Ownership, and Terms of Use for the Publicly Available Consumer Product Safety Information Database). That page covers SaferProducts.gov, including the publicly available consumer product safety information database and the business portal. The Recalls API is co-located on saferproducts.gov (CPSC Recalls Retrieval Web Services Programmers Guide, Version 1.4, 17 September 2018).

Under "Limitation of Liability":

> The CPSC makes no claims, promises, or guarantees about the accuracy, completeness, or adequacy of the contents of SaferProducts.gov. The CPSC expressly disclaims liability for errors and omissions in the contents of SaferProducts.gov.

Under "Ownership":

> Information publicly posted on Saferproducts.gov is considered public information and may be distributed or copied. This does not include personally identifiable information.

At the end of the page:

> All materials on the site are presented by the CPSC for general informational purposes only. These materials do not, and are not intended to, constitute legal advice.

### What you get

| Field | Meaning |
|---|---|
| `recordType` | `item` for a recall record, `status` for a free status row (see below) |
| `recallId`, `recallNumber` | CPSC identifiers |
| `recallDate`, `lastPublishDate` | Dates as YYYY-MM-DD |
| `title`, `description` | Announcement text, with e-mail addresses and phone numbers removed |
| `url`, `sourceUrl` | CPSC recall page |
| `consumerContact` | How to reach the firm, with phone numbers and e-mail addresses removed. Full contact details are on the CPSC recall page (`url`) |
| `products`, `productNames` | Product list (name, model, type, units) and a flat name list |
| `hazards`, `remedies`, `remedyOptions` | Hazard and remedy text |
| `injuries` | Injury summary text as published by CPSC (phones and e-mail addresses removed) |
| `manufacturers`, `retailers`, `importers`, `distributors`, `manufacturerCountries` | Company and country names |
| `productUPCs`, `images`, `inconjunctions` | UPCs, image URLs and captions, related-jurisdiction URLs |
| `dataSource` | Attribution and the unofficial note |
| `disclaimer` | The required short disclaimer, with the source URL |

Phone numbers and e-mail addresses are removed from free-text fields, including `consumerContact`. This Actor does not run name recognition on free text.

### Input

| Field | Default | Notes |
|---|---|---|
| `keyword` | none | Wildcard match on the recall title (`RecallTitle`) |
| `description` | none | Wildcard match on the description (`RecallDescription`) |
| `productName` | none | Product name |
| `manufacturer`, `retailer`, `importer`, `distributor` | none | Company name filters |
| `manufacturerCountry` | none | Country of manufacture |
| `hazard`, `remedy`, `remedyOption` | none | Hazard and remedy filters |
| `recallNumber`, `recallId`, `upc` | none | Precise identifiers; when `recallNumber` or `recallId` is set, the default date window is not applied |
| `dateField` | `recallDate` | Or `lastPublishDate`; used for the date range and sort |
| `dateFrom`, `dateTo` | last 90 days when no identifier is set | Inclusive YYYY-MM-DD. The default `{}` run sends `RecallDateStart` for 90 days ago so it does not request the entire catalog |
| `sort` | `newest` | Applied after the response is received (`newest` or `oldest`) |
| `maxItems` | `10` | Applied after the response is received. The API has no page size |
| `onlyNew` | `false` | When true, returns only records not seen in previous runs, identified by `recallId` and `recallNumber` |
| `stateKey` | `default` | Name of the seen-record list used when `onlyNew` is true |

The default input (`{}`) returns about 10 recent recalls from the last 90 days, finishes in seconds, costs at most $0.01, and is never empty.

The CPSC Recalls API does not offer an API key, and this Actor does not accept one. It does not use a proxy or rotate IP addresses. If the API answers HTTP 429, the Actor backs off and retries a few times, then stops and writes a free status row.

### Status rows (free)

The dataset is never empty. When nothing could be saved (no matches, invalid input, rate limit, robots.txt refusal, a response larger than 8 MB, or a maximum cost per run too low for one record), the run writes one row with `recordType: "status"` and a `message`. Status rows are never charged. Skip them in your code as shown below. Invalid input ends SUCCEEDED with a status row; nothing is requested or charged.

### Pricing

Pay per event: **$0.001 per record** saved ($1 per 1,000). No start fee; status rows are free. The default input saves at most 10 records ($0.01). The run stops at your maximum cost per run.

### Use it from code

Python (apify-client 3.x):

```python
from apify_client import ApifyClient

client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('<USERNAME>/cpsc-recalls-search').call(run_input={
    'keyword': 'stroller',
    'dateFrom': '2024-01-01',
    'maxItems': 50,
})
for item in client.dataset(run.default_dataset_id).iterate_items():
    if item.get('recordType') != 'item':
        print('status:', item.get('message'))
        continue
    print(item['recallDate'], item['recallNumber'], item['title'])
```

JavaScript (apify-client):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('<USERNAME>/cpsc-recalls-search').call({
    keyword: 'stroller',
    dateFrom: '2024-01-01',
    maxItems: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) {
    if (item.recordType !== 'item') continue; // free status rows
    console.log(item.recallDate, item.recallNumber, item.title);
}
```

### Data source and licence

Data comes from the CPSC Recalls REST API only (`https://www.saferproducts.gov/RestWebServices/Recall`). The incident-report database on SaferProducts.gov is not queried. The Actor sends `format=json` and only parameter names listed in the CPSC Recalls Retrieval Web Services Programmers Guide, Version 1.4 (17 September 2018). The guide says:

> Please note that the serch parameters must be spelled exactly as in the above list. Any attempt to use made-up search parameters, such as, for instance, "product=HVAC" or "brand=Trane" will result in a vast waste of time, as the API will retrieve ALL exiting recall records, a count exceedinf 8,000, as of September, 2018.

(The typographical errors are in the source.) This Actor never sends a made-up parameter, never sends `ConsumerContact` or `Injury` as a search field, and, for the default input, always includes a `RecallDateStart`. Responses larger than 8 MB are refused with a free status row.

U.S. government works are not subject to copyright in the United States (17 U.S.C. 105). The ownership sentence quoted above also states that information publicly posted on Saferproducts.gov may be distributed or copied, not including personally identifiable information.

From the CPSC Privacy and Security Notice (https://www.cpsc.gov/About-CPSC/Policies-Statements-and-Directives/Privacy-Policy), under "Copyright" (fetched 2026-11-13):

> Web page text, brochures, and posters presented on CPSC websites are public information. You may freely distribute, copy, or link to any of this information. However, the information may not be used in a way that states or implies CPSC endorsement. If you distribute, copy or link to any of this information, please credit CPSC.

> Images on this website may have been licensed for use by CPSC from a stock photography service or other copyright holder and the copyright holder may prohibit republication, retransmission, reproduction or other use of the images.

> You may freely copy and distribute recall notices, including photographs of recalled items, without permission. Any other use of photographs found in recall notices and elsewhere on CPSC websites may require permission from a copyright holder.

This Actor is unofficial and is not affiliated with or endorsed by the CPSC. No CPSC logos are used. This Actor outputs image URLs only, not the image files.

Each row records the source in `dataSource` and the short disclaimer in `disclaimer`.

### Limits

- The API has no `limit` or `skip` parameter. Every matching record is returned in one response. Use a date range or a precise identifier. The default 90-day window keeps the default run small.
- A response larger than 8 MB is not saved; narrow the date range.
- `www.saferproducts.gov/robots.txt` is checked before the first request. A 4xx response counts as no rules (allowed).
- There is no API key and no team key.

# Changelog

This Actor's version history is a separate document: https://apify.com/fecklesspleb/cpsc-recalls-search/changelog.md

# Actor input Schema

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

Optional. Case-insensitive wildcard match against the recall title (RecallTitle). Leave empty, with no other identifier, to list recent recalls (see dateFrom).

## `description` (type: `string`):

Optional. Case-insensitive wildcard match against the recall description (RecallDescription).

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

Optional. Match against product names (ProductName).

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

Optional. Manufacturer name.

## `retailer` (type: `string`):

Optional. Retailer name.

## `importer` (type: `string`):

Optional. Importer name.

## `distributor` (type: `string`):

Optional. Distributor name.

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

Optional. Country of manufacture (ManufacturerCountry).

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

Optional. Hazard text.

## `remedy` (type: `string`):

Optional. Remedy text.

## `remedyOption` (type: `string`):

Optional. Remedy option, for example Refund, Repair or Replace.

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

Optional. CPSC recall number (for example 27082). When set, the default 90-day date window is not applied.

## `recallId` (type: `string`):

Optional. CPSC RecallID. When set, the default 90-day date window is not applied.

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

Optional. Product UPC.

## `dateField` (type: `string`):

Which date the date range and the in-memory newest/oldest sort use.

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

Optional. Inclusive start of the date range (YYYY-MM-DD). If you omit this and also omit recallNumber and recallId, the Actor sends the last 90 days so the default run does not request the entire catalog.

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

Optional. Inclusive end of the date range (YYYY-MM-DD).

## `sort` (type: `string`):

Order by the selected date field, applied after the API response is received (the API has no sort or page-size parameter). Default is newest first.

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

Stop after this many records are saved. The CPSC API has no page size and returns every match in one response; this cap is applied after the response is received, and responses larger than 8 MB are refused.

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

When true, returns only records not seen in previous runs, identified by recallId and recallNumber and stored in a named key-value store. Off by default. Use stateKey to keep more than one independent list.

## `stateKey` (type: `string`):

Optional. Name of the seen-record list used when onlyNew is true (letters, digits, hyphen and underscore). Default is default.

## Actor input object example

```json
{
  "dateField": "recallDate",
  "sort": "newest",
  "maxItems": 10,
  "onlyNew": false
}
```

# Actor output Schema

## `recalls` (type: `string`):

No description

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

No description

# 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 = {
    "maxItems": 10
};

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

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

```

## MCP server setup

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

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/8u0ISejvLQcqHaP3j/builds/7Lg6mcVhNGfUj2pfj/openapi.json
