{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Recall Monitor: EU Safety Gate, CPSC, FDA, UK, Canada",
    "description": "Monitor official product recalls and safety alerts from EU Safety Gate, UK OPSS, US CPSC, US FDA and Canada in one format. Match your brands, barcodes (EAN/UPC) or keywords. $3 per 1,000 recalls.",
    "version": "0.1",
    "x-build-id": "FMwO216sbsbcdhRAU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/henri_dewitte~product-recall-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-henri_dewitte-product-recall-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/henri_dewitte~product-recall-monitor/runs": {
      "post": {
        "operationId": "runs-sync-henri_dewitte-product-recall-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/henri_dewitte~product-recall-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-henri_dewitte-product-recall-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": "Official recall lists to read. EU Safety Gate (dangerous non-food products in 31 European countries), UK OPSS, US CPSC (consumer products), US FDA (food, drugs, medical devices; updated weekly) and Canada (all recalls incl. food and vehicles).",
            "items": {
              "type": "string",
              "enum": [
                "eu-safety-gate",
                "uk-opss",
                "us-cpsc",
                "us-fda",
                "canada"
              ],
              "enumTitles": [
                "EU Safety Gate",
                "UK Office for Product Safety (OPSS)",
                "US CPSC (consumer products)",
                "US FDA (food, drugs, devices)",
                "Canada (Health Canada, CFIA, Transport)"
              ]
            },
            "default": [
              "eu-safety-gate",
              "uk-opss",
              "us-cpsc",
              "us-fda",
              "canada"
            ]
          },
          "publishedWithinDays": {
            "title": "Published in the last X days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only recalls published or updated in the last X days. EU Safety Gate keeps the latest alerts online (about 1 to 2 months).",
            "default": 30
          },
          "brands": {
            "title": "Watch list: brands",
            "type": "array",
            "description": "Only recalls of these brands (whole words, not case-sensitive). Brands, barcodes and keywords work together: a recall is returned if it matches ANY of them. Leave all three empty for all recalls.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "barcodes": {
            "title": "Watch list: barcodes (EAN / UPC / GTIN)",
            "type": "array",
            "description": "Only recalls with one of these barcodes. Paste your whole catalogue (up to 50,000). Leading zeros don't matter: UPC 012345678905 = EAN 0012345678905.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Watch list: keywords",
            "type": "array",
            "description": "Only recalls that contain one of these words or phrases (title, product, description, hazard, brand, model, company). Whole words, not case- or accent-sensitive. Example: \"power bank\", \"baby walker\", \"listeria\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip recalls with these words",
            "type": "array",
            "description": "Skip recalls that contain one of these words or phrases.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productTypes": {
            "title": "Product types",
            "type": "array",
            "description": "Only these product types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "consumer-products",
                "food",
                "drugs",
                "medical-devices",
                "cosmetics",
                "vehicles",
                "other"
              ],
              "enumTitles": [
                "Consumer products",
                "Food",
                "Drugs",
                "Medical devices",
                "Cosmetics",
                "Vehicles",
                "Other"
              ]
            },
            "default": []
          },
          "fdaApiKey": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Optional free key from open.fda.gov. Without a key openFDA allows 1,000 requests per day per IP address, which is enough for normal use."
          },
          "maxResults": {
            "title": "Max recalls",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of recalls this run saves (and you pay for).",
            "default": 1000
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "Remember which recalls you already got and only return new ones. Schedule the Actor daily to get recall alerts for your products.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}