{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA Recall Scraper: Food, Drug & Device Alerts",
    "description": "Get FDA food, drug and device recalls with class, status, hazard (listeria, salmonella, allergens), undeclared allergen, states reached, UPC codes and the company announcement link. Filter by state, hazard or company and monitor new recalls.",
    "version": "1.0",
    "x-build-id": "V5HSRKJuLDW4yD0cc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamole~fda-recalls-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamole-fda-recalls-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/datamole~fda-recalls-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datamole-fda-recalls-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/datamole~fda-recalls-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datamole-fda-recalls-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",
        "properties": {
          "productTypes": {
            "title": "Product types",
            "type": "array",
            "description": "Which FDA areas to search. Animal & veterinary and cosmetics only exist as company announcements.",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "drug",
                "device",
                "animal",
                "cosmetics"
              ],
              "enumTitles": [
                "Food & dietary supplements",
                "Drugs",
                "Medical devices",
                "Animal & veterinary (press releases only)",
                "Cosmetics (press releases only)"
              ]
            },
            "default": [
              "food"
            ]
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Enforcement reports = every recall FDA classifies (class, status, distribution, firm address). Company announcements = the press releases firms publish on fda.gov, usually days or weeks before FDA classifies the recall.",
            "items": {
              "type": "string",
              "enum": [
                "enforcement",
                "pressReleases"
              ],
              "enumTitles": [
                "Enforcement reports (openFDA)",
                "Company announcements (fda.gov)"
              ]
            },
            "default": [
              "enforcement"
            ]
          },
          "classifications": {
            "title": "Recall class",
            "type": "array",
            "description": "Class I = serious health risk or death. Class II = temporary or reversible. Class III = unlikely to harm. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "Class I",
                "Class II",
                "Class III"
              ],
              "enumTitles": [
                "Class I",
                "Class II",
                "Class III"
              ]
            }
          },
          "statuses": {
            "title": "Recall status",
            "type": "array",
            "description": "Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "Ongoing",
                "Completed",
                "Terminated"
              ],
              "enumTitles": [
                "Ongoing",
                "Completed",
                "Terminated"
              ]
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "YYYY-MM-DD or relative: \"30 days\", \"6 months\", \"1 year\". Empty = no limit."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "YYYY-MM-DD or relative. Empty = today."
          },
          "dateField": {
            "title": "Date to filter by",
            "enum": [
              "report_date",
              "recall_initiation_date"
            ],
            "type": "string",
            "description": "Company announcements always use their publication date.",
            "default": "report_date"
          },
          "hazards": {
            "title": "Hazards",
            "type": "array",
            "description": "Recall cause computed from the reason text. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "allergen",
                "listeria",
                "salmonella",
                "e-coli",
                "botulism",
                "other-pathogen",
                "microbial",
                "foreign-material",
                "chemical",
                "undeclared-drug",
                "ingredient-issue",
                "pest-filth",
                "process-failure",
                "labeling",
                "quality-defect",
                "sterility",
                "impurity",
                "potency",
                "failed-specification",
                "mix-up",
                "packaging",
                "cgmp",
                "unapproved",
                "software",
                "inaccurate-results",
                "electrical",
                "mechanical",
                "manufacturing"
              ],
              "enumTitles": [
                "Undeclared allergen",
                "Listeria",
                "Salmonella",
                "E. coli",
                "Botulism (C. botulinum)",
                "Other pathogen (Cyclospora, hepatitis A, norovirus, Cronobacter, Vibrio...)",
                "Mold, yeast or microbial contamination",
                "Foreign material (metal, glass, plastic...)",
                "Chemical or toxin (lead, arsenic, aflatoxin, pesticide...)",
                "Undeclared or unapproved drug ingredient",
                "Undeclared or unapproved non-allergen ingredient (colors, additives, sweeteners...)",
                "Insects, rodents, pests or filth",
                "Processing, temperature or sanitation failure",
                "Mislabeling or misbranding",
                "Other product defect or quality issue",
                "Sterility not assured (drugs, devices)",
                "Impurity or nitrosamine (drugs)",
                "Wrong potency or content uniformity (drugs)",
                "Failed specifications: dissolution, stability, pH, appearance (drugs)",
                "Product mix-up or cross contamination (drugs, devices)",
                "Container, closure or packaging defect (drugs)",
                "CGMP deviations (drugs)",
                "Marketed without FDA approval or clearance (drugs, devices)",
                "Software, cybersecurity or display issue (devices)",
                "Inaccurate or false test results (devices)",
                "Battery, power or electrical issue (devices)",
                "Mechanical failure: breaks, detaches, leaks, fails to deploy (devices)",
                "Design or manufacturing nonconformance (devices)"
              ]
            }
          },
          "allergens": {
            "title": "Undeclared allergens",
            "type": "array",
            "description": "Only recalls for these undeclared allergens (FDA major allergens). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "milk",
                "egg",
                "peanut",
                "tree-nuts",
                "soy",
                "wheat",
                "fish",
                "shellfish",
                "sesame",
                "sulfites"
              ],
              "enumTitles": [
                "Milk",
                "Egg",
                "Peanut",
                "Tree nuts",
                "Soy",
                "Wheat / gluten",
                "Fish",
                "Shellfish",
                "Sesame",
                "Sulfites"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Any of these words in the product or reason, e.g. \"cheese\", \"infant formula\", \"insulin\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "firms": {
            "title": "Companies",
            "type": "array",
            "description": "Recalling firm or brand owner name contains any of these. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "distributedTo": {
            "title": "Distributed to state",
            "type": "array",
            "description": "Recalls whose product reached these states. Nationwide recalls count for every state. Enforcement reports only.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "PR",
                "GU",
                "VI"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Arizona",
                "Arkansas",
                "California",
                "Colorado",
                "Connecticut",
                "Delaware",
                "District of Columbia",
                "Florida",
                "Georgia",
                "Hawaii",
                "Idaho",
                "Illinois",
                "Indiana",
                "Iowa",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Maine",
                "Maryland",
                "Massachusetts",
                "Michigan",
                "Minnesota",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Hampshire",
                "New Jersey",
                "New Mexico",
                "New York",
                "North Carolina",
                "North Dakota",
                "Ohio",
                "Oklahoma",
                "Oregon",
                "Pennsylvania",
                "Rhode Island",
                "South Carolina",
                "South Dakota",
                "Tennessee",
                "Texas",
                "Utah",
                "Vermont",
                "Virginia",
                "Washington",
                "West Virginia",
                "Wisconsin",
                "Wyoming",
                "Puerto Rico",
                "Guam",
                "Virgin Islands"
              ]
            }
          },
          "firmStates": {
            "title": "Recalling firm state",
            "type": "array",
            "description": "Where the recalling company is based. Enforcement reports only.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "PR",
                "GU",
                "VI"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Arizona",
                "Arkansas",
                "California",
                "Colorado",
                "Connecticut",
                "Delaware",
                "District of Columbia",
                "Florida",
                "Georgia",
                "Hawaii",
                "Idaho",
                "Illinois",
                "Indiana",
                "Iowa",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Maine",
                "Maryland",
                "Massachusetts",
                "Michigan",
                "Minnesota",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Hampshire",
                "New Jersey",
                "New Mexico",
                "New York",
                "North Carolina",
                "North Dakota",
                "Ohio",
                "Oklahoma",
                "Oregon",
                "Pennsylvania",
                "Rhode Island",
                "South Carolina",
                "South Dakota",
                "Tennessee",
                "Texas",
                "Utah",
                "Vermont",
                "Virginia",
                "Washington",
                "West Virginia",
                "Wisconsin",
                "Wyoming",
                "Puerto Rico",
                "Guam",
                "Virgin Islands"
              ]
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many records. Empty = all matches. Free plan: 10 results per run."
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remembers recalls between runs. Next runs return only new recalls and recalls whose class, status or termination date changed, with the previous values. The first run returns everything. Schedule it daily or weekly.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Same name = same memory across different inputs. Empty = identified by the filters."
          },
          "apiKey": {
            "title": "openFDA API key",
            "type": "string",
            "description": "Optional. Free at open.fda.gov/apis/authentication. Without it the actor uses the public quota and falls back to the official full file (food and drugs) if the quota runs out."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}