{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA, CPSC & NHTSA Recall API: Product, Food & Car Recalls",
    "description": "Product, food, vehicle, drug and medical-device recalls from FDA, CPSC, NHTSA, Health Canada, UK OPSS/MHRA/FSA and EU Safety Gate in one normalised schema. Keyword and brand watchlists, date filter and 'only new since last run' mode. Source and licence on every record.",
    "version": "1.0",
    "x-build-id": "Q9LfYdkc7HpYP4y8A"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wooden_scanner_c1n~cross-border-recall-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wooden_scanner_c1n-cross-border-recall-watch",
        "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/wooden_scanner_c1n~cross-border-recall-watch/runs": {
      "post": {
        "operationId": "runs-sync-wooden_scanner_c1n-cross-border-recall-watch",
        "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/wooden_scanner_c1n~cross-border-recall-watch/run-sync": {
      "post": {
        "operationId": "run-sync-wooden_scanner_c1n-cross-border-recall-watch",
        "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": {
          "countries": {
            "title": "Countries / regions",
            "type": "array",
            "description": "Which regulators to search. US = FDA (food, drugs, devices), CPSC (consumer products), NHTSA (vehicles). CA = Health Canada, CFIA and Transport Canada. GB = OPSS (products), MHRA (medicines, devices), FSA (food). EU = Safety Gate (dangerous non-food products, incl. vehicles). Default: all four.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "GB",
                "EU"
              ],
              "enumTitles": [
                "United States",
                "Canada",
                "United Kingdom",
                "European Union (Safety Gate)"
              ]
            },
            "default": [
              "US",
              "CA",
              "GB",
              "EU"
            ]
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Recall categories to include. Default: all.",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "drug",
                "device",
                "vehicle",
                "consumer_product"
              ],
              "enumTitles": [
                "Food",
                "Drugs & health products",
                "Medical devices",
                "Vehicles & vehicle equipment",
                "Consumer products"
              ]
            },
            "default": [
              "food",
              "drug",
              "device",
              "vehicle",
              "consumer_product"
            ]
          },
          "keywords": {
            "title": "Keywords (watchlist)",
            "type": "array",
            "description": "Optional. A recall matches if any keyword appears as a whole word in its title, product, brand, firm, hazard, description or product codes. Works for hazards ('listeria'), products ('baby walker') and barcodes / GTINs ('5059206404971').",
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brands / manufacturers (watchlist)",
            "type": "array",
            "description": "Optional. A recall matches if any of these names appears as a whole word in its brand, firm, title or product (e.g. 'Toyota', 'Bodum'). Combined with keywords using AND.",
            "items": {
              "type": "string"
            }
          },
          "sinceDate": {
            "title": "Since date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}.*)?$",
            "type": "string",
            "description": "Optional. Only recalls dated on or after this day (YYYY-MM-DD). Overrides 'Days back'. Up to about 3 years back."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 1098,
            "type": "integer",
            "description": "Look back this many days when 'Since date' is empty. Default 14.",
            "default": 14
          },
          "maxItems": {
            "title": "Max recalls",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum recalls returned in total, newest first. You pay per recall returned.",
            "default": 100
          },
          "onlyNew": {
            "title": "Only recalls not delivered before",
            "type": "boolean",
            "description": "For scheduled runs: skip recalls this watchlist already returned in an earlier run (remembered in a key-value store in your account), so you only pay for new ones.",
            "default": false
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Optional. Name for the 'only new' memory. Runs with the same name share it; without a name the memory is keyed on your countries, categories, keywords and brands."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}