{
  "openapi": "3.0.1",
  "info": {
    "title": "US Product Recalls Monitor - FDA, NHTSA & CPSC Feed",
    "description": "Monitor official US recalls in one feed: FDA food, drug & medical device enforcement reports, NHTSA vehicle recalls, CPSC consumer product recalls. Filter by date, brand/keyword or vehicle make/model/year; only-new mode for alerts. Public-domain data, no API key.",
    "version": "0.1",
    "x-build-id": "queqgssi0ZnSbC7wf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cheremikin~us-recalls-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cheremikin-us-recalls-monitor",
        "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/cheremikin~us-recalls-monitor/runs": {
      "post": {
        "operationId": "runs-sync-cheremikin-us-recalls-monitor",
        "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/cheremikin~us-recalls-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-cheremikin-us-recalls-monitor",
        "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": "Sources",
            "type": "array",
            "description": "Which agencies/datasets to query. FDA = openFDA enforcement reports (food, drugs, medical devices); NHTSA = vehicle & equipment recalls; CPSC = consumer product recalls.",
            "items": {
              "type": "string",
              "enum": [
                "fda_food",
                "fda_drug",
                "fda_device",
                "nhtsa_vehicle",
                "cpsc_consumer"
              ],
              "enumTitles": [
                "FDA food",
                "FDA drugs",
                "FDA medical devices",
                "NHTSA vehicles & equipment",
                "CPSC consumer products"
              ]
            },
            "default": [
              "fda_food",
              "fda_drug",
              "fda_device",
              "nhtsa_vehicle",
              "cpsc_consumer"
            ]
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Start of the window, YYYY-MM-DD, or a relative number of days like -30. Empty = 30 days before 'Date to'. FDA uses the enforcement report date, NHTSA the date the defect report was received, CPSC the recall date."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "End of the window, YYYY-MM-DD or relative days (0 = today). Empty = today."
          },
          "keyword": {
            "title": "Keyword / brand filter",
            "type": "string",
            "description": "Optional. Keep only recalls whose product, firm, reason or codes contain this text (case-insensitive; also matches retailers/distribution, e.g. Amazon). Separate several terms with commas (any match), e.g. 'listeria, peanut' or 'Ford, Toyota'."
          },
          "nhtsaVehicles": {
            "title": "NHTSA vehicles (Make/Model/Year)",
            "type": "array",
            "description": "Optional. Look up the full recall history of specific vehicles, one per line as Make/Model/Year, e.g. Honda/Accord/2023. When set, NHTSA results come from these vehicles instead of the date window.",
            "items": {
              "type": "string"
            }
          },
          "vehicleApplyDates": {
            "title": "Apply date window to vehicle lookups",
            "type": "boolean",
            "description": "If on, vehicle lookups only return recalls received inside the date window. Off = full recall history of each vehicle.",
            "default": false
          },
          "maxItems": {
            "title": "Max recalls",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum records in the output (all sources together). Newest records from every source are taken in turn so each selected source is represented.",
            "default": 200
          },
          "onlyNew": {
            "title": "Only new recalls (monitoring mode)",
            "type": "boolean",
            "description": "Skip recalls already delivered by earlier runs of this Actor in your account (remembered in a named key-value store). Ideal for a daily/weekly schedule with alerts.",
            "default": false
          },
          "includeRaw": {
            "title": "Include extra source fields",
            "type": "boolean",
            "description": "Add a small 'raw' object with extra source-specific fields (e.g. FDA event id, NHTSA manufacturer campaign number, CPSC image and remedy options).",
            "default": false
          },
          "openFdaApiKey": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Optional free key from open.fda.gov/apis/authentication. Without a key openFDA allows 1,000 requests/day per IP; with a key 120,000/day. Only needed for very large date ranges."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}