# Sourcing Recall Evidence Checker (`xman-workbook/my-actor-2`) Actor

Check product model numbers against US CPSC recall notices before you buy or list. Returns only notices where your number appears, with the quoted text, recall date, hazard, remedy and official link. No match, no charge.

- **URL**: https://apify.com/xman-workbook/my-actor-2.md
- **Developed by:** [X-man Tools](https://apify.com/xman-workbook) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 matches

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

## Sourcing Recall Evidence Checker - US CPSC recall match by model number

Before you buy or list a product for the US market, check whether its **model number** appears in a US Consumer Product Safety Commission (CPSC) recall notice. Give up to 20 model numbers (and optionally a brand); the Actor returns only the recalls whose notice text contains that exact number, with the quoted evidence and the link to the official notice.

Built for importers, resellers and AI agents that screen sourcing candidates.

### Input

| Field | Required | Meaning |
|---|---|---|
| `modelNumbers` | yes | 1 to 20 model or product identification numbers. Each needs at least 4 letters or digits and at least one digit. |
| `brand` | no | If given, a match is confirmed only when the brand name also appears in the notice. |
| `dateStart`, `dateEnd` | no | Limit by recall date, `YYYY-MM-DD`. |
| `maxMatches` | no | Upper limit of results (default 20, at most 100). |

```json
{ "modelNumbers": ["20-01437"], "brand": "Stanley" }
```

### Output

One dataset item per confirmed match (one model number in one recall):

```json
{
  "inputModel": "20-01437",
  "inputBrand": "Stanley",
  "matchBasis": "brand_and_number_string_in_notice",
  "matchType": "exact_text",
  "labelHint": "after a model/item/identification-number label in the same sentence",
  "matchedText": "20-01437",
  "matchedField": "Description",
  "evidenceSnippet": "... Product Identification Number Switchback 12 ounces 20-01437 16 ounces 20-01436, 20-02211 ...",
  "recallNumber": "25063",
  "recallDate": "2024-12-12",
  "title": "Stanley Recalls 2.6 Million Switchback and Trigger Action Travel Mugs Due to Burn Hazard",
  "hazards": ["... posing a burn hazard."],
  "remedies": ["... free replacement lid ..."],
  "sourceUrl": "https://www.cpsc.gov/Recalls/2025/Stanley-Recalls-2-6-Million-Switchback-and-Trigger-Action-Travel-Mugs-Due-to-Burn-Hazard",
  "retrievedAt": "2026-10-14T01:54:00Z"
}
```

The key-value store record `OUTPUT` always holds a run summary: `ok`, `errorCode` (`NO_MATCH`, `INVALID_INPUT`, `SOURCE_ERROR`), `checkedModels`, `noMatchModels`, `failedModels`, and `reviewCandidates`.

### What a result means

A result states one checked fact: **a string matching your number was found in this CPSC recall notice**, and (if you gave one) the brand appears in the notice too. `matchType` says whether the string equals what you typed, ignoring letter case and spaces before or after your input (`exact_text`), or differs only in hyphens, dots, slashes, underscores or spaces (`separators_ignored`); `matchedText` is the notice's own spelling and `evidenceSnippet` quotes the place. The Actor does **not** decide what that string refers to or whether the recalled product is yours; read the notice at `sourceUrl`.

To keep useless hits out, a string found in the notice text is returned only when it follows a model, item or identification-number label in the same sentence (`labelHint`). This is a text heuristic, not a verified fact: a price or other number placed right after such a label can still pass, and a real model number written differently can be left out. In CPSC data the model numbers sit in the notice text (the structured model field was empty in all 1,204 recalls since 2024 we checked on 2026-10-14), so a text check is the only way to find them.

### How it matches, and its limits

- A match needs the **same model number** in the notice; one different character is not a match, and a longer identifier (`AB-1234_REV2`) is not matched by its first part (`AB-1234`). Product names alone are never matched.
- **Type the number as printed, hyphens included, and give the brand.** The CPSC search finds text only as typed (`2001437` does not find `20-01437`). When you give `brand`, the Actor also reads the recalls that have the brand in their title and compares numbers with hyphens, dots, slashes, underscores and spaces ignored, so a differently written number can still be found. Without `brand`, a differently written number is missed.
- With `brand`, the brand must also appear in the notice. If the number is found but the brand is not, the recall is listed under `reviewCandidates` in `OUTPUT` and is **not** written to the dataset.
- Strings that look like a date, a phone number or a measurement, or that do not follow a label as described above, go to `reviewCandidates` in `OUTPUT`, not to the dataset. Some real model numbers will land there, so read `reviewCandidates` too.
- **No match is not a safety clearance.** It only means these numbers were not found in CPSC notices for the dates given. Many notices describe products without model numbers; those cannot be found by this Actor.
- US CPSC recalls only. No other country or agency, no unpublished defects. The physical product is not inspected.
- Short or common numbers can coincide across unrelated products. Give the brand, and open `sourceUrl` before acting.
- If the CPSC service cannot be read, the run reports `SOURCE_ERROR` and writes nothing to the dataset. It never substitutes sample data.

### Pricing

Pay per event, one event only:

- **Match**: $0.02 per match written to the dataset ($20 per 1,000 matches). Runs with no match, invalid input or a source error write nothing to the dataset, so nothing is charged. There is no start fee and no platform usage fee for users.

Example: checking 50 model numbers in one run that finds 1 match costs $0.02.

### Data source

US CPSC Recall REST API (`https://www.saferproducts.gov/RestWebServices/Recall`), described at https://www.cpsc.gov/Recalls/CPSC-Recalls-Application-Program-Interface-API-Information. Data is read at run time (`retrievedAt`); nothing is cached. This Actor is not affiliated with or endorsed by the CPSC. One request per model number, plus one for the brand, two seconds apart.

Seller: X-man Tools

# Actor input Schema

## `modelNumbers` (type: `array`):

Model or product identification numbers as printed on the product or listing (1 to 20). Each needs at least 4 letters or digits and at least one digit. Type them as printed, hyphens included.

## `brand` (type: `string`):

Recommended. A match is then confirmed only when this brand name also appears in the recall notice, and numbers written with different hyphens or spaces can still be found.

## `dateStart` (type: `string`):

Only recalls announced on or after this date. Format YYYY-MM-DD.

## `dateEnd` (type: `string`):

Only recalls announced on or before this date. Format YYYY-MM-DD.

## `maxMatches` (type: `integer`):

Upper limit of confirmed matches written to the dataset (each one is a charged result).

## Actor input object example

```json
{
  "modelNumbers": [
    "20-01437"
  ],
  "brand": "Stanley",
  "maxMatches": 20
}
```

# Actor output Schema

## `results` (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 = {
    "modelNumbers": [
        "20-01437"
    ],
    "brand": "Stanley"
};

// Run the Actor and wait for it to finish
const run = await client.actor("xman-workbook/my-actor-2").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 = {
    "modelNumbers": ["20-01437"],
    "brand": "Stanley",
}

# Run the Actor and wait for it to finish
run = client.actor("xman-workbook/my-actor-2").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 '{
  "modelNumbers": [
    "20-01437"
  ],
  "brand": "Stanley"
}' |
apify call xman-workbook/my-actor-2 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xman-workbook/my-actor-2"
        }
    }
}
```

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/JTTS16Cwwfqm4996x/builds/tfK8w3SkOMVdwJaBs/openapi.json
