{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Recall Alerts: CPSC, FDA, NHTSA, EU, Canada, Australia",
    "description": "New product safety recalls from US CPSC, FDA (food, drugs, devices), NHTSA, EU Safety Gate, Canada and Australia in one flat schema: product, brand, firm, hazard, remedy, units, barcodes, Amazon ASINs, images. Match your catalogue and get alerts on new recalls.",
    "version": "0.1",
    "x-build-id": "j0IXtI7sd6zw0XtHW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~product-recall-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-product-recall-radar",
        "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/dottti~product-recall-radar/runs": {
      "post": {
        "operationId": "runs-sync-dottti-product-recall-radar",
        "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/dottti~product-recall-radar/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-product-recall-radar",
        "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": "Official recall sources to read. Empty = all of them. cpsc = US consumer products, fda_food / fda_drug / fda_device = US FDA enforcement reports, nhtsa = US vehicles and car parts, eu_safety_gate = EU dangerous non-food products, health_canada = Canada (consumer products, food, drugs, medical devices, vehicles), accc_australia = Australia consumer products.",
            "items": {
              "type": "string",
              "enum": [
                "cpsc",
                "fda_food",
                "fda_drug",
                "fda_device",
                "nhtsa",
                "eu_safety_gate",
                "health_canada",
                "accc_australia"
              ],
              "enumTitles": [
                "US CPSC consumer products",
                "US FDA food",
                "US FDA drugs",
                "US FDA medical devices",
                "US NHTSA vehicles and parts",
                "EU Safety Gate",
                "Canada recalls and safety alerts",
                "Australia ACCC product safety"
              ]
            }
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Recalls published in the last N days. 14 = the last two weeks. Ignored when Since date is set.",
            "default": 14
          },
          "sinceDate": {
            "title": "Since date",
            "type": "string",
            "description": "Recalls published on or after this date (YYYY-MM-DD), for example 2026-10-01. Empty = use Days back."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words searched in the title, product, brand, firm, category, hazard and description, for example stroller, power bank, magnet, listeria, airbag. Case and accents are ignored; \"charger\" also finds \"chargers\".",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Keyword match mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any: at least one keyword. all: every keyword.",
            "default": "any"
          },
          "brands": {
            "title": "Brands or firms",
            "type": "array",
            "description": "Keep recalls that name one of these as brand, firm, maker, product or model (whole words), for example Ford, Bose, IKEA, Fisher-Price.",
            "items": {
              "type": "string"
            }
          },
          "catalogue": {
            "title": "Your catalogue (flag matches)",
            "type": "array",
            "description": "Your own brand names, product names or model numbers, up to 5,000. Every recall that mentions one of them (whole words) gets isCatalogueMatch = true and the names in catalogueMatches. Other recalls are still returned unless Only catalogue matches is on.",
            "items": {
              "type": "string"
            }
          },
          "onlyCatalogueMatches": {
            "title": "Only catalogue matches",
            "type": "boolean",
            "description": "Return only recalls that match your catalogue list.",
            "default": false
          },
          "categories": {
            "title": "Product categories",
            "type": "array",
            "description": "Keep recalls whose category contains one of these words, for example toys, food, cosmetics, electrical, clothing, devices, vehicle. Each source names categories in its own words, so use simple words.",
            "items": {
              "type": "string"
            }
          },
          "hazards": {
            "title": "Hazards",
            "type": "array",
            "description": "Keep recalls whose hazard text or hazard type contains one of these words, for example fire, choking, chemical, lead, salmonella, undeclared, strangulation, crash.",
            "items": {
              "type": "string"
            }
          },
          "seriousOnly": {
            "title": "Serious only",
            "type": "boolean",
            "description": "Keep only serious recalls: FDA Class I, EU serious risk, Canada Class 1 or Type I, NHTSA do-not-drive or park-outside warnings, and CPSC recalls that name a risk of death or serious injury.",
            "default": false
          },
          "includeArchived": {
            "title": "Include archived (Canada)",
            "type": "boolean",
            "description": "Canada marks some old notices as archived when they are updated. Off = skip them.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many recalls. When there are more, the run takes recalls from every source in turn (newest first), so a small run still shows each source.",
            "default": 40
          },
          "onlyNew": {
            "title": "Only new (alerts)",
            "type": "boolean",
            "description": "Skip recalls this Actor already delivered in earlier runs with the same filters. Use with a daily or weekly schedule to get only new recalls.",
            "default": false
          },
          "openFdaApiKey": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Optional free key from openFDA. Without it, FDA requests share the public limit (1,000 requests a day per IP address), which is enough for normal runs. Add one for very long date ranges."
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause before each request to an official server.",
            "default": 150
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries per request on network errors, 429 and 5xx responses.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}