Product Recalls (CPSC and FDA)
US product recalls across agencies in one schema: CPSC consumer-product recalls and FDA drug, device and food enforcement reports, newest first, filtered by agency, firm, text and date.
- Price per call
- 1 credit
- per successful call
- Price ceiling
- 1 credit
- every call, same price
- Failed calls
- Free
- retried automatically
- Billed
- Per call
- only on success
Endpoint
api.primaryapi.com/ v1/ run/ recalls. searchAuth: API key with run or full access, or a dashboard session
Send the input below as a JSON body. The call is routed to a healthy upstream; if an attempt fails, it is retried automatically inside the same request and you pay only for the answer you get. To check an input and see the exact price without running anything, call POST /v1/quote/recalls.search with the same body (free).
Example request
curl -sS -X POST "https://api.primaryapi.com/v1/run/recalls.search" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agency":"cpsc","firm":"Allstar","dateFrom":"2026-10-15","dateTo":"2026-11-15","limit":1}'const res = await fetch('https://api.primaryapi.com/v1/run/recalls.search', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
agency: 'cpsc',
firm: 'Allstar',
dateFrom: '2026-10-15',
dateTo: '2026-11-15',
limit: 1,
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/recalls.search",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"agency": "cpsc",
"firm": "Allstar",
"dateFrom": "2026-10-15",
"dateTo": "2026-11-15",
"limit": 1,
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"]){
"name": "run_api",
"arguments": {
"sku": "recalls.search",
"input": {
"agency": "cpsc",
"firm": "Allstar",
"dateFrom": "2026-10-15",
"dateTo": "2026-11-15",
"limit": 1
}
}
}Price this exact input first (free)
curl -sS -X POST "https://api.primaryapi.com/v1/quote/recalls.search" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agency":"cpsc","firm":"Allstar","dateFrom":"2026-10-15","dateTo":"2026-11-15","limit":1}'Returns credits (what the call is expected to cost) and maxCredits (the most it can cost, which is set aside while it runs). Invalid input fails here the same way it would on run.
Input
JSON body fields. Unknown fields are rejected with 400 invalid_input (never silently ignored). You may add the routing controls preferLatencyUnderMs and maxCredits to the same object.
agencyenum- Only this agency: cpsc (consumer products) or fda (drugs, medical devices, foods). Omit for every agency.one of: cpsc, fda
firmstring- Firm name: for CPSC the recall title, manufacturer, importer or distributor contains it; for FDA a phrase match on the recalling firm.max 120 chars
querystring- Text to find: for CPSC every word must appear in the title, product, description or hazard; for FDA a phrase match on the product description or the reason for recall.max 120 chars
dateFromstring- Only records whose recall date is on or after this date (YYYY-MM-DD). Default: 90 days before dateTo.pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$
dateTostring- Only records whose recall date is on or before this date (YYYY-MM-DD). Default: today (UTC).pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$
limitintegerdefault25- Maximum number of results to return (1-100, default 25).1–100
cursorstring- Opaque pagination cursor: pass the previous response's nextCursor.
Output
When output.found is true, output.data has these fields (a list under recalls, billed per item returned).
recallsobject[]- Matching recalls from every agency in scope, newest first
recalls[].agencyenum- Agency that published the recallone of: cpsc, fda, nhtsa
recalls[].recallIdstring- Agency recall id: CPSC recall number, FDA recall number, NHTSA campaign number
recalls[].datestring- Recall date (CPSC), report date (FDA) or report received date (NHTSA), YYYY-MM-DD
recalls[].titlestring- Recall title (CPSC), "<firm>: <product>" (FDA) or the component (NHTSA)
recalls[].categorystring | null- CPSC product type, FDA category (drug, device, food) or "vehicle" (NHTSA)
recalls[].classificationstring | null- FDA recall class (Class I is the most serious); null for other agencies
recalls[].statusstring | null- FDA recall status (Ongoing, Completed, Terminated); null for other agencies
recalls[].firmsstring[]- Recalling firm(s): manufacturer, importer or distributor names
recalls[].productsstring[]- Product names (NHTSA: "MAKE MODEL YEAR")
recalls[].hazardstring | null- Hazard (CPSC), reason for recall (FDA) or consequence (NHTSA)
recalls[].remedystring | null- What owners should do (CPSC, NHTSA); null for FDA
recalls[].descriptionstring | null- Description (CPSC), product description (FDA) or summary (NHTSA)
recalls[].unitsstring | null- Units affected as published, e.g. "About 265,000" or "18,991 vials"
recalls[].urlstring | null- Agency recall notice URL when the agency publishes one (CPSC)
nextCursorstring | null
TypeScript type
/** output.data when output.found is true */
type RecallsSearch = {
/** Matching recalls from every agency in scope, newest first */
recalls: {
/** Agency that published the recall */
agency: "cpsc" | "fda" | "nhtsa";
/** Agency recall id: CPSC recall number, FDA recall number, NHTSA campaign number */
recallId: string;
/** Recall date (CPSC), report date (FDA) or report received date (NHTSA), YYYY-MM-DD */
date: string;
/** Recall title (CPSC), "<firm>: <product>" (FDA) or the component (NHTSA) */
title: string;
/** CPSC product type, FDA category (drug, device, food) or "vehicle" (NHTSA) */
category: string | null;
/** FDA recall class (Class I is the most serious); null for other agencies */
classification: string | null;
/** FDA recall status (Ongoing, Completed, Terminated); null for other agencies */
status: string | null;
/** Recalling firm(s): manufacturer, importer or distributor names */
firms: string[];
/** Product names (NHTSA: "MAKE MODEL YEAR") */
products: string[];
/** Hazard (CPSC), reason for recall (FDA) or consequence (NHTSA) */
hazard: string | null;
/** What owners should do (CPSC, NHTSA); null for FDA */
remedy: string | null;
/** Description (CPSC), product description (FDA) or summary (NHTSA) */
description: string | null;
/** Units affected as published, e.g. "About 265,000" or "18,991 vials" */
units: string | null;
/** Agency recall notice URL when the agency publishes one (CPSC) */
url: string | null;
}[];
nextCursor: string | null;
};If what you asked about does not exist, is private, or a search matches nothing, the call still succeeds: output.found is false, output.data is null and output.reason says why. Such misses are free unless the notes below say misses are billed, in which case a miss costs the price of one call.
Pagination. Pass the previous response’s nextCursor as cursor to get the next page. nextCursor: null means there is nothing more. See Pagination.
Example response
Values are placeholders that follow the output schema (strings as "string", numbers as 0); credits shows what this call would cost at the usual price.
{
"output": {
"found": true,
"data": {
"recalls": [
{
"agency": "cpsc",
"recallId": "27082",
"date": "2026-11-12",
"title": "Allstar Recalls Sharper Image Tabletop and Infinity Fire Pits Due to Risk of Serious Injury from Burn and Fire Hazards",
"category": "Outdoor Patio Heaters or Firepits (Manufactured)",
"classification": null,
"status": null,
"firms": [
"Allstar Marketing Group, LLC, of Winston-Salem, North Carolina"
],
"products": [
"Sharper Image Tabletop Fire Pits and Sharper Image Tabletop Infinity Fire Pits"
],
"hazard": "Ignited flammable liquid can escape from the recalled fire pits or trigger flame jetting from the fuel containers, posing a risk of serious injury from burn and fire hazards.",
"remedy": "Consumers should stop using the recalled fire pits immediately and contact Allstar for a full refund. Consumers will be asked to register at www.firepitrecall.expertinquiry.com, write “RECALLED – DO NOT USE” in permanent marker, and submit three photographs following the instructions on Allstar’s recall page. After registration is confirmed, consumers should dispose of any remaining fuel in accordance with local hazardous-waste requirements and discard the recalled fire pits safely.",
"description": "This recall involves outdoor Sharper Image-Branded Tabletop Fire Pits and Sharper Image-Branded Tabletop Infinity Fire Pits. The units have a “77” logo on the front, a Lot Code sticker in the center of the base, a round black sticker marked “CHINA” with a 5-digit code, the letters KS-CY or KS-FC, and a date code in YYYY-MM-DD format. The Sharper Image-Branded Tabletop Fire Pits feature a small cylindrical concrete body with a removable snuffing lid and an open burn chamber at the top. The Sharper Image-Branded Tabletop Infinity Fire Pits feature a steel base and tempered‑glass side panels.",
"units": "About 265,000",
"url": "https://www.cpsc.gov/Recalls/2027/Allstar-Recalls-Sharper-Image-Tabletop-and-Infinity-Fire-Pits-Due-to-Risk-of-Serious-Injury-from-Burn-and-Fire-Hazards"
}
],
"nextCursor": null
}
},
"provider": "PrimaryAPI",
"credits": 1,
"items": 1,
"requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z",
"nextCursor": null
}Pricing and reliability
Calls go only to upstreams that are healthy right now. If an attempt fails, the call is retried automatically inside the same request; a failed attempt costs nothing, and a call never costs more than its quote’s maxCredits. Live figures below are measured on real traffic.
Success rate, uptime, latency and call counts are measured live from real traffic over 30 days and show “—” until there is data.
Errors
Errors are JSON { code, error, requestId } and are never charged. The ones to handle for this endpoint:
- invalid_inputThe request failed validation before anything ran.
- unauthorizedNo valid API key or session was presented.
- insufficient_balanceThe balance cannot cover the most this call could cost.
- key_limit_reachedThe key’s own spend limit is used up for the current window.
- trial_cap_reachedAn agent trial key has used its whole trial budget.
- forbiddenThe credential is valid but may not do this.
- not_foundThe thing addressed by the URL does not exist for you.
- idempotency_conflictThe
Idempotency-Keyis already bound to a different request. - rate_limitedToo many requests in the current window.
- all_sources_failedThe call could not be answered, even after automatic retries.
- service_unavailableThis API cannot run in this deployment right now.
- timeoutThe request passed its deadline before it finished.
Notes
CPSC publishes recalls as they are announced; FDA enforcement reports are weekly. Newest first across agencies (date, then recall id, descending). Without dateFrom the window is the 90 days up to dateTo (default today, UTC); the response hint says so. For a monitor, pin dateFrom to a fixed date (for example the day you create it): the output then changes only when a record is added or updated, never because an old one ages out of a rolling window. One call covers at most 1096 days (CPSC returns every match of a window at once). For vehicles use vin.recalls (same item shape). Empty results are free.
Sources: U.S. Consumer Product Safety Commission recalls (https://www.cpsc.gov) and U.S. Food and Drug Administration enforcement reports (openFDA, https://open.fda.gov), US government public data. openFDA: "Do not rely on openFDA to make decisions regarding medical care. While we make every effort to ensure that data is accurate, you should assume all results are unvalidated." Check the agency notice before acting on a recall.
Generated from the PrimaryAPI catalog. Machine-readable contract: GET https://api.primaryapi.com/v1/apis/recalls.search.