# CPSC API

> CPSC provides consumer product recalls as a workflow and API, including hazards, remedies, incidents, and sale details.

CPSC, also known as the U.S. Consumer Product Safety Commission, returns matching consumer product recalls through Search recalls. Search recalls needs a product type or brand and optionally an earliest recall date and result count.

- Page: https://fous.com/workflows/cpsc
- Handle: `@cpsc`
- Category: [Government](https://fous.com/workflows/category/government)
- Source website: https://cpsc.gov
- Last verified: Sep 29, 2026
- Fous is not affiliated with CPSC.

## Methods

### Search recalls

Operation `search_recalls`, version 1. 1 credit per call.

Find U.S. consumer product recalls matching a product type or brand, newest first. Includes hazards, remedies, reported incidents, sale details and product photos when published. Dates default to the past five years.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `since` | string | no | `"2024-01-01"` | Earliest recall date, for example "2024-01-01". Defaults to five years before today. |
| `product` | string | yes | `"crib"` | Product type or brand to find, for example "crib" or "IKEA". |
| `max_results` | integer | no | `5` | Most recent matching recalls to return, for example 20. Defaults to 20; maximum 100. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "product"
  ],
  "properties": {
    "since": {
      "type": "string",
      "format": "date",
      "description": "Earliest recall date, for example \"2024-01-01\". Defaults to five years before today.",
      "examples": [
        "2024-01-01",
        "2022-01-01"
      ]
    },
    "product": {
      "type": "string",
      "minLength": 1,
      "description": "Product type or brand to find, for example \"crib\" or \"IKEA\".",
      "examples": [
        "crib",
        "IKEA",
        "definitelynotaproductxyz"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "description": "Most recent matching recalls to return, for example 20. Defaults to 20; maximum 100.",
      "x-fous-developer": true,
      "examples": [
        5,
        2
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "product": "crib"
    },
    {
      "since": "2024-01-01",
      "product": "IKEA",
      "max_results": 5
    },
    {
      "product": "definitelynotaproductxyz"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `recalls` | array |  | Matching recalls, newest first. |
| `recalls[].link` | string | `"https://www.cpsc.gov/Recalls/2025/IKEA-Recalls-Garlic-Presses-Due-to-Laceration-and-Ingestion-Hazards"` | CPSC recall page link. |
| `recalls[].hazard` | string or null | `"Small metal pieces can detach from the garlic press, posing a laceration or ingestion hazard to consumers."` | Description of the hazard. |
| `recalls[].remedy` | string or null | `"Refund"` | Remedy offered, such as refund or repair. |
| `recalls[].photo_url` | string or null | `"https://www.cpsc.gov/s3fs-public/vardefull-1.png"` | Link to the first product photo. |
| `recalls[].recall_id` | integer or null | `10371` | CPSC recall ID. |
| `recalls[].what_to_do` | string or null | `"Consumers should immediately stop using the recalled garlic press and return it to any IKEA store for a full refund. If` | Instructions for consumers. |
| `recalls[].recall_date` | string | `"2025-07-31"` | Recall announcement date, YYYY-MM-DD. |
| `recalls[].recall_title` | string | `"IKEA Recalls Garlic Presses Due to Laceration and Ingestion Hazards"` | Published recall headline. |
| `recalls[].product_names` | string or null | `"IKEA 365+ VÄRDEFULL garlic presses"` | Names of the recalled products. |
| `recalls[].recall_number` | string or null | `"25420"` | CPSC recall number. |
| `recalls[].number_of_units` | string or null | `"About 43,830 (in addition, about 10,700 were sold in Canada)"` | Published quantity, including any approximations or separately noted countries. |
| `recalls[].where_and_when_sold` | string or null | `"IKEA stores nationwide and online at IKEA.com from March 2025 through May 2025 for about $8."` | Where and when products were sold, as published. |
| `recalls[].brand_or_manufacturer` | string or null | `"IKEA Supply AG, of Switzerland"` | Brand, manufacturer, importer or distributor named in the recall. |
| `recalls[].incidents_or_injuries` | string or null | `"IKEA has received a total of 10 incident reports globally, including three reports of lacerations and finger splinters.` | Reported incidents or injuries, if stated. |
| `recalls[].country_of_manufacture` | string or null | `"China"` | Country or countries of manufacture. |

**Example input**

```json
{
  "since": "2024-01-01",
  "product": "IKEA",
  "max_results": 5
}
```

**Example output**

```json
{
  "recalls": [
    {
      "link": "https://www.cpsc.gov/Recalls/2025/IKEA-Recalls-Garlic-Presses-Due-to-Laceration-and-Ingestion-Hazards",
      "hazard": "Small metal pieces can detach from the garlic press, posing a laceration or ingestion hazard to consumers.",
      "remedy": "Refund",
      "photo_url": "https://www.cpsc.gov/s3fs-public/vardefull-1.png",
      "recall_id": 10371,
      "what_to_do": "Consumers should immediately stop using the recalled garlic press and return it to any IKEA store for a full refund. If you are unable to return it to one of their stores, please contact IKEA for inst…",
      "recall_date": "2025-07-31",
      "recall_title": "IKEA Recalls Garlic Presses Due to Laceration and Ingestion Hazards",
      "product_names": "IKEA 365+ VÄRDEFULL garlic presses",
      "recall_number": "25420",
      "number_of_units": "About 43,830 (in addition, about 10,700 were sold in Canada)",
      "where_and_when_sold": "IKEA stores nationwide and online at IKEA.com from March 2025 through May 2025 for about $8.",
      "brand_or_manufacturer": "IKEA Supply AG, of Switzerland",
      "incidents_or_injuries": "IKEA has received a total of 10 incident reports globally, including three reports of lacerations and finger splinters. No incidents or injuries have been reported in the U.S.",
      "country_of_manufacture": "China"
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@cpsc",
  "visibility": "public",
  "operation": "search_recalls",
  "version": 1,
  "input": {
    "product": "crib"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@cpsc\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_recalls\",\n  \"version\": 1,\n  \"input\": {\n    \"product\": \"crib\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@cpsc",
  "visibility": "public",
  "operation": "search_recalls",
  "version": 1,
  "input": {
    "product": "crib"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@cpsc","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Track recent recalls for a product type or brand
- Review reported hazards and consumer remedies
- Check where and when recalled products were sold
- Identify reported incidents or injuries
- Share consumer instructions for recalled products

## FAQ

### Is Fous affiliated with CPSC?

No. Fous is not affiliated with CPSC. This workflow reads the public cpsc.gov website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a CPSC account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from cpsc.gov when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What products have been recalled for a brand?

Search recalls finds matching recalls when given a brand or product type.

### What hazards and remedies were reported?

Search recalls returns published hazard descriptions and offered remedies for matching recalls.

### When and where was a recalled product sold?

Search recalls returns published sale locations and dates for matching recalls.

## Related

- [FDA API](https://fous.com/workflows/fda.md): FDA provides drug safety data, latest matching drug labels, common reported side effects, and newest-first drug, food, and device recalls; recent drug and device recalls may be missing, and weekly food statuses may lag.
- [NHTSA API](https://fous.com/workflows/nhtsa.md): NHTSA provides vehicle details, model-level recalls, 5-Star Safety Ratings, owner complaints, and listed car, SUV, and truck models; data may be missing, and recalls do not confirm repairs.
- [Carfax API](https://fous.com/workflows/carfax.md): Carfax provides used-car listings near a US ZIP code with free history highlights, plus open safety recalls reported by CARFAX for a VIN or US plate.
- [OSHA API](https://fous.com/workflows/osha.md): Public workplace safety inspection and enforcement records.
- [USPTO API](https://fous.com/workflows/uspto.md): USPTO provides U.S. trademark records, name searches for matching filings, and current status and prosecution history for selected marks.
- [Costco API](https://fous.com/workflows/costco.md): Costco returns US product prices/details and warehouse hours/services/gas prices; delivery affects availability, member prices may be hidden, and posted gas and holiday hours may differ.
- [Best Buy API](https://fous.com/workflows/best-buy.md): Best Buy returns US electronics and appliance listings, prices, deals, specifications, images, reviews, and nearby store pickup and shipping details; prices and availability can change by location and before checkout.
- [Kohl's API](https://fous.com/workflows/kohls.md): Shop products and deals on Kohl's.
- [All Government workflows](https://fous.com/workflows/category/government)
