# CPSC Product Recall Marketplace Watch Scraper (`taroyamada/cpsc-product-recall-marketplace-watch-scraper`) Actor

Track official CPSC recall records by product, brand, category, and marketplace watch terms with source-linked alert and report rows.

- **URL**: https://apify.com/taroyamada/cpsc-product-recall-marketplace-watch-scraper.md
- **Developed by:** [太郎 山田](https://apify.com/taroyamada) (community)
- **Categories:** Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $80.00 / 1,000 cpsc recall alerts

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## CPSC Product Recall Marketplace Watch Scraper

Marketplace, resale, compliance operations, and product teams use this actor to monitor public CPSC recall updates.

Input product names, categories, brands, and recall keywords from the official CPSC Recall API.

Get source-linked recall alert, digest, and report rows for marketplace and product review workflows.

### Store Quickstart

1. Use the first input example with `dryRun=false`.
2. Keep `notifyOnNoNew=false` so unchanged scheduled checks emit zero rows and zero charges.
3. Review `billingEventName` in the output before increasing feed count.

### Input Examples

```json
{
  "feeds": [
    {
      "id": "children-products",
      "name": "Children product recall watch",
      "productNames": "toy",
      "brands": "",
      "categories": "children,toy",
      "keywords": "choking,burn,laceration"
    }
  ],
  "watchTerms": "choking,burn,laceration,injury",
  "lookbackDays": 30,
  "datasetMode": "action_needed",
  "notifyOnNoNew": false,
  "emitReport": true,
  "dryRun": false
}
````

```json
{
  "feeds": [
    {
      "id": "children-products",
      "name": "Children product recall watch",
      "productNames": "toy",
      "brands": "",
      "categories": "children,toy",
      "keywords": "choking,burn,laceration"
    }
  ],
  "watchTerms": "choking,burn,laceration,injury",
  "lookbackDays": 30,
  "datasetMode": "new_only",
  "notifyOnNoNew": false,
  "emitReport": false,
  "dryRun": false
}
```

```json
{
  "feeds": [
    {
      "id": "children-products",
      "name": "Children product recall watch",
      "productNames": "toy",
      "brands": "",
      "categories": "children,toy",
      "keywords": "choking,burn,laceration"
    }
  ],
  "watchTerms": "choking,burn,laceration,injury",
  "lookbackDays": 30,
  "datasetMode": "action_needed",
  "notifyOnNoNew": false,
  "emitReport": true,
  "dryRun": true
}
```

### Sample Output

```json
{
  "actorName": "cpsc-product-recall-marketplace-watch-scraper",
  "rowType": "cpsc_recall_digest",
  "feedId": "children-products",
  "feedName": "Children product recall watch",
  "checkedAt": "2026-05-11T00:00:00.000Z",
  "fetchedAt": "2026-05-11T00:00:00.000Z",
  "sourceUrl": "https://www.cpsc.gov/Recalls/2026/example-recall",
  "warnings": [],
  "status": "action_needed",
  "newDocCount": 1,
  "totalDocCount": 1,
  "changedSinceLastRun": true,
  "actionNeeded": true,
  "reviewNote": "Review the source-linked public record and update the watchlist if needed.",
  "signalTags": [
    "watch_term_hit"
  ],
  "watchTermHits": [
    {
      "term": "recall",
      "docNumber": "cpsc-26472",
      "title": "Rainbow wall toy recalled due to choking hazard"
    }
  ],
  "documents": [
    {
      "docNumber": "cpsc-26472",
      "title": "Rainbow wall toy recalled due to choking hazard",
      "docType": "CPSC_RECALL",
      "publicationDate": "2026-05-07",
      "primaryAgency": "CPSC",
      "productName": "Rainbow Wall Toy",
      "companyName": "Example importer",
      "sourceUrl": "https://www.cpsc.gov/Recalls/2026/example-recall"
    }
  ],
  "billingEventName": "cpsc-recall-alert"
}
```

### Output fields

- `rowType`: `cpsc_recall_digest`
- `billingEventName`: one of `cpsc-recall-alert`, `cpsc-recall-digest`, or `cpsc-recall-report`
- `documents[]`: nested official public records with source URLs
- `watchTermHits[]`: matched public-record terms for review
- `reviewNote`: source-linked review note, not agency guidance or certification

### Pricing

This actor charges only when it emits a billable alert, digest, or report row:

- `cpsc-recall-alert`: $0.08 per watchlist alert row
- `cpsc-recall-digest`: $0.25 per non-empty digest row
- `cpsc-recall-report`: $5.00 per generated report row

No-change runs emit zero default dataset rows and zero charges when `notifyOnNoNew=false`.

### Compliance

- Uses official public data from cpsc-recall-api.
- Do not present rows as product certification, CPSC approval, risk scoring, or agency endorsement.
- No login, API key, cookie, credential, CAPTCHA bypass, private data, or agency mark is used.
- Rows are source-linked observations for review workflows, not professional guidance or agency determinations.

### See Also

- `nhtsa-recall-complaint-watch-scraper`
- `epa-echo-enforcement-facility-watch-scraper`
- `sec-edgar-material-disclosure-watch-scraper`

# Actor input Schema

## `feeds` (type: `array`):

One watch target per product, vehicle, facility, company, program, or keyword group.

## `watchTerms` (type: `string`):

Global watch terms.

## `lookbackDays` (type: `integer`):

Lookback days.

## `datasetMode` (type: `string`):

Dataset output mode.

## `notifyOnNoNew` (type: `boolean`):

Emit no-change rows.

## `emitReport` (type: `boolean`):

Emit report row.

## `snapshotKey` (type: `string`):

Snapshot key.

## `requestTimeoutSeconds` (type: `integer`):

HTTP timeout seconds.

## `dryRun` (type: `boolean`):

Dry run.

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

Fixture path.

## `nowIso` (type: `string`):

Override current time.

## `initialRunMode` (type: `string`):

Controls first-run behavior. emit\_current\_window only bills records inside lookbackDays; baseline\_only saves state with zero rows; emit\_backfill is for explicit setup/canary runs.

## Actor input object example

```json
{
  "feeds": [
    {
      "id": "children-products",
      "name": "Children product recall watch",
      "productNames": "toy",
      "brands": "",
      "categories": "children,toy",
      "keywords": "choking,burn,laceration"
    }
  ],
  "lookbackDays": 30,
  "datasetMode": "action_needed",
  "notifyOnNoNew": false,
  "emitReport": true,
  "snapshotKey": "cpsc-product-recall-watch-state",
  "requestTimeoutSeconds": 30,
  "dryRun": false,
  "initialRunMode": "emit_current_window"
}
```

# 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 = {
    "feeds": [
        {
            "id": "children-products",
            "name": "Children product recall watch",
            "productNames": "toy",
            "brands": "",
            "categories": "children,toy",
            "keywords": "choking,burn,laceration"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("taroyamada/cpsc-product-recall-marketplace-watch-scraper").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 = { "feeds": [{
            "id": "children-products",
            "name": "Children product recall watch",
            "productNames": "toy",
            "brands": "",
            "categories": "children,toy",
            "keywords": "choking,burn,laceration",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("taroyamada/cpsc-product-recall-marketplace-watch-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "feeds": [
    {
      "id": "children-products",
      "name": "Children product recall watch",
      "productNames": "toy",
      "brands": "",
      "categories": "children,toy",
      "keywords": "choking,burn,laceration"
    }
  ]
}' |
apify call taroyamada/cpsc-product-recall-marketplace-watch-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=taroyamada/cpsc-product-recall-marketplace-watch-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CPSC Product Recall Marketplace Watch Scraper",
        "description": "Track official CPSC recall records by product, brand, category, and marketplace watch terms with source-linked alert and report rows.",
        "version": "0.1",
        "x-build-id": "dlvTosVRhga8MTQr5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/taroyamada~cpsc-product-recall-marketplace-watch-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-taroyamada-cpsc-product-recall-marketplace-watch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/taroyamada~cpsc-product-recall-marketplace-watch-scraper/runs": {
            "post": {
                "operationId": "runs-sync-taroyamada-cpsc-product-recall-marketplace-watch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/taroyamada~cpsc-product-recall-marketplace-watch-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-taroyamada-cpsc-product-recall-marketplace-watch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "feeds"
                ],
                "properties": {
                    "feeds": {
                        "title": "Watch feeds",
                        "type": "array",
                        "description": "One watch target per product, vehicle, facility, company, program, or keyword group.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "title": "Feed ID",
                                    "type": "string",
                                    "description": "Feed ID."
                                },
                                "name": {
                                    "title": "Feed name",
                                    "type": "string",
                                    "description": "Feed name."
                                },
                                "productNames": {
                                    "title": "Product names",
                                    "type": "string",
                                    "description": "Product names."
                                },
                                "brands": {
                                    "title": "Brands or company names",
                                    "type": "string",
                                    "description": "Brands or company names."
                                },
                                "categories": {
                                    "title": "Categories",
                                    "type": "string",
                                    "description": "Categories."
                                },
                                "keywords": {
                                    "title": "Keywords",
                                    "type": "string",
                                    "description": "Keywords."
                                }
                            }
                        }
                    },
                    "watchTerms": {
                        "title": "Global watch terms",
                        "type": "string",
                        "description": "Global watch terms."
                    },
                    "lookbackDays": {
                        "title": "Lookback days",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Lookback days.",
                        "default": 30
                    },
                    "datasetMode": {
                        "title": "Dataset output mode",
                        "enum": [
                            "all",
                            "action_needed",
                            "new_only"
                        ],
                        "type": "string",
                        "description": "Dataset output mode.",
                        "default": "action_needed"
                    },
                    "notifyOnNoNew": {
                        "title": "Emit no-change rows",
                        "type": "boolean",
                        "description": "Emit no-change rows.",
                        "default": false
                    },
                    "emitReport": {
                        "title": "Emit report row",
                        "type": "boolean",
                        "description": "Emit report row.",
                        "default": true
                    },
                    "snapshotKey": {
                        "title": "Snapshot key",
                        "type": "string",
                        "description": "Snapshot key.",
                        "default": "cpsc-product-recall-watch-state"
                    },
                    "requestTimeoutSeconds": {
                        "title": "HTTP timeout seconds",
                        "minimum": 5,
                        "maximum": 120,
                        "type": "integer",
                        "description": "HTTP timeout seconds.",
                        "default": 30
                    },
                    "dryRun": {
                        "title": "Dry run",
                        "type": "boolean",
                        "description": "Dry run.",
                        "default": false
                    },
                    "fixturePath": {
                        "title": "Fixture path",
                        "type": "string",
                        "description": "Fixture path."
                    },
                    "nowIso": {
                        "title": "Override current time",
                        "type": "string",
                        "description": "Override current time."
                    },
                    "initialRunMode": {
                        "title": "Initial run mode",
                        "enum": [
                            "emit_current_window",
                            "baseline_only",
                            "emit_backfill"
                        ],
                        "type": "string",
                        "description": "Controls first-run behavior. emit_current_window only bills records inside lookbackDays; baseline_only saves state with zero rows; emit_backfill is for explicit setup/canary runs.",
                        "default": "emit_current_window"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
