{
  "openapi": "3.0.1",
  "info": {
    "title": "US Product Recalls API - FDA, CPSC & NHTSA in One Feed",
    "description": "FDA food, drug and device recalls, CPSC consumer-product recalls and NHTSA vehicle recalls in one normalized feed. Filter by date, hazard, company, class and state; only-new mode for alerts.",
    "version": "0.1",
    "x-build-id": "MeliBp8059PbkSvFN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/onomatopoeia_dev~us-product-recalls/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-onomatopoeia_dev-us-product-recalls",
        "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/onomatopoeia_dev~us-product-recalls/runs": {
      "post": {
        "operationId": "runs-sync-onomatopoeia_dev-us-product-recalls",
        "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/onomatopoeia_dev~us-product-recalls/run-sync": {
      "post": {
        "operationId": "run-sync-onomatopoeia_dev-us-product-recalls",
        "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",
        "properties": {
          "sources": {
            "title": "Agencies",
            "type": "array",
            "description": "Which recall feeds to read. All of them come out in the same normalized columns.",
            "items": {
              "type": "string",
              "enum": [
                "fda-food",
                "fda-drug",
                "fda-device",
                "cpsc",
                "nhtsa"
              ],
              "enumTitles": [
                "FDA - Food",
                "FDA - Drugs",
                "FDA - Medical devices",
                "CPSC - Consumer products",
                "NHTSA - Vehicles"
              ]
            }
          },
          "dateFrom": {
            "title": "Recalls published on or after",
            "type": "string",
            "description": "Absolute date (2026-11-01) or relative (`7 days`, `2 weeks`, `3 months`). Empty means the last 30 days. FDA uses the enforcement report date, CPSC the recall date and NHTSA the report-received date."
          },
          "dateTo": {
            "title": "Recalls published on or before",
            "type": "string",
            "description": "Absolute or relative date. Empty means today."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep recalls whose title, product, firm, reason, risk or remedy contains any of these words (for example `peanut`, `lithium`, `airbag`).",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop recalls that contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "firms": {
            "title": "Company or brand",
            "type": "array",
            "description": "Keep recalls where the recalling firm, brand or title contains any of these names (for example `Walmart`, `Ford`, `Kraft`).",
            "items": {
              "type": "string"
            }
          },
          "classifications": {
            "title": "FDA risk class",
            "type": "array",
            "description": "Class I is the most serious. Only FDA recalls have a class, so CPSC and NHTSA recalls are left out when this is set.",
            "items": {
              "type": "string",
              "enum": [
                "Class I",
                "Class II",
                "Class III"
              ]
            }
          },
          "hazards": {
            "title": "Hazard types",
            "type": "array",
            "description": "Keep recalls tagged with any of these hazards. Tags are derived from the recall text (see the `hazardTags` column).",
            "items": {
              "type": "string",
              "enum": [
                "fire",
                "burn",
                "electric-shock",
                "laceration",
                "choking",
                "strangulation",
                "suffocation",
                "fall",
                "drowning",
                "poisoning",
                "chemical",
                "undeclared-allergen",
                "salmonella",
                "listeria",
                "e-coli",
                "contamination",
                "sterility",
                "mislabeling",
                "potency",
                "crash",
                "vehicle-fire",
                "airbag",
                "injury",
                "software"
              ],
              "enumTitles": [
                "Fire / overheating / explosion",
                "Burn",
                "Electric shock",
                "Laceration / cut",
                "Choking",
                "Strangulation / entrapment",
                "Suffocation",
                "Fall / tip-over",
                "Drowning",
                "Poisoning / toxic / lead / ingestion",
                "Chemical exposure",
                "Undeclared allergen",
                "Salmonella",
                "Listeria",
                "E. coli",
                "Contamination / foreign material",
                "Sterility / microbial",
                "Mislabeling",
                "Potency / out of specification",
                "Crash / loss of control",
                "Vehicle fire",
                "Airbag",
                "Serious injury or death",
                "Software / firmware"
              ]
            }
          },
          "states": {
            "title": "Distributed in these states",
            "type": "array",
            "description": "Keep recalls distributed in any of these US states, using each recall's distribution text. NHTSA recalls count as nationwide.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "KS",
                "MS",
                "PA",
                "VT",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MO",
                "MT",
                "NE",
                "NV",
                "OH",
                "OK",
                "OR",
                "TN",
                "TX",
                "UT",
                "VA",
                "WA",
                "WI",
                "WY",
                "DC",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "PR",
                "RI",
                "SC",
                "SD",
                "WV"
              ],
              "enumTitles": [
                "    Alabama",
                "    Kansas",
                "    Mississippi",
                "    Pennsylvania",
                "    Vermont",
                " Alaska",
                " Arizona",
                " Arkansas",
                " California",
                " Colorado",
                " Connecticut",
                " Delaware",
                " Florida",
                " Georgia",
                " Hawaii",
                " Idaho",
                " Illinois",
                " Indiana",
                " Iowa",
                " Kentucky",
                " Louisiana",
                " Maine",
                " Maryland",
                " Massachusetts",
                " Michigan",
                " Minnesota",
                " Missouri",
                " Montana",
                " Nebraska",
                " Nevada",
                " Ohio",
                " Oklahoma",
                " Oregon",
                " Tennessee",
                " Texas",
                " Utah",
                " Virginia",
                " Washington",
                " Wisconsin",
                " Wyoming",
                "District Of Columbia",
                "New Hampshire",
                "New Jersey",
                "New Mexico",
                "New York",
                "North Carolina",
                "North Dakota",
                "Puerto Rico",
                "Rhode Island",
                "South Carolina",
                "South Dakota",
                "West Virginia"
              ]
            }
          },
          "includeNationwide": {
            "title": "Include nationwide recalls when filtering by state",
            "type": "boolean",
            "description": "Recalls that say they were distributed nationwide are kept even when the state is not named.",
            "default": true
          },
          "vehicleMake": {
            "title": "Vehicle make",
            "type": "string",
            "description": "For NHTSA recalls, for example `Ford`. With make, model and model year all set, the recalls of that exact vehicle are looked up directly (all of time unless you set dates). With make (and optionally model) only, recent recalls are filtered by text."
          },
          "vehicleModel": {
            "title": "Vehicle model",
            "type": "string",
            "description": "For example `F-150`."
          },
          "vehicleModelYear": {
            "title": "Vehicle model year",
            "minimum": 1950,
            "maximum": 2100,
            "type": "integer",
            "description": "For example 2022. Needed, with make and model, for the direct vehicle lookup."
          },
          "onlyNew": {
            "title": "Only new recalls since the last run",
            "type": "boolean",
            "description": "Delivers only recalls you have not received in an earlier run with the same memory name. Re-checks the last 14 days because agencies add records late. You are never billed twice for the same recall.",
            "default": false
          },
          "stateKey": {
            "title": "Memory name for \"only new\"",
            "type": "string",
            "description": "Name of this saved search. Use a different name for each schedule.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum recalls (all agencies)",
            "minimum": 1,
            "type": "integer",
            "description": "Total recalls to store. Every recall is one billed item.",
            "default": 100
          },
          "maxItemsPerSource": {
            "title": "Maximum recalls per agency feed",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap per feed (FDA food, FDA drug, FDA device, CPSC, NHTSA), so one busy feed does not use the whole budget."
          },
          "maxScannedPerSource": {
            "title": "Maximum records scanned per feed",
            "minimum": 50,
            "maximum": 100000,
            "type": "integer",
            "description": "Safety limit on how many records are scanned per feed when filters are narrow. For NHTSA it caps the number of requests.",
            "default": 5000
          },
          "openFdaApiKey": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Not needed. Without a key the Actor stays within openFDA's limit of 40 requests per minute. A free key from open.fda.gov allows 240 per minute."
          },
          "includeRawRecord": {
            "title": "Include the original record",
            "type": "boolean",
            "description": "Adds the agency's original record as `raw` (contact fields removed; e-mail addresses and phone numbers masked).",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}