{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Recall Catalog Exposure Monitor",
    "description": "Track product recall and catalog exposure changes. Get structured recall evidence for compliance, safety monitoring, and product risk workflows.",
    "version": "0.0",
    "x-build-id": "RKlEBVrkEwbcRiv28"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bread-kim~product-recall-catalog-exposure-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bread-kim-product-recall-catalog-exposure-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/bread-kim~product-recall-catalog-exposure-monitor/runs": {
      "post": {
        "operationId": "runs-sync-bread-kim-product-recall-catalog-exposure-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/bread-kim~product-recall-catalog-exposure-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-bread-kim-product-recall-catalog-exposure-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": {
          "demoMode": {
            "title": "Deterministic demo mode",
            "type": "boolean",
            "description": "Use the built-in matching recall fixture without any external HTTP requests. Production runs leave this disabled.",
            "default": false
          },
          "catalog": {
            "title": "Inline catalog",
            "minItems": 1,
            "maxItems": 50000,
            "type": "array",
            "description": "Catalog rows. IDs must be unique. Use manufactureDate to eliminate out-of-range products.",
            "items": {
              "type": "object",
              "required": [
                "id"
              ],
              "additionalProperties": false,
              "properties": {
                "id": {
                  "title": "Catalog ID",
                  "description": "Unique merchant catalog identifier.",
                  "type": "string",
                  "editor": "textfield",
                  "minLength": 1,
                  "maxLength": 256
                },
                "name": {
                  "title": "Product name",
                  "description": "Optional display name.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 1000
                },
                "brand": {
                  "title": "Brand",
                  "description": "Brand to compare exactly after normalization.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 500
                },
                "model": {
                  "title": "Model",
                  "description": "Model number to compare exactly after normalization.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 500
                },
                "upc": {
                  "title": "UPC/GTIN",
                  "description": "Barcode digits; leading zeroes are retained.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 500
                },
                "manufactureDate": {
                  "title": "Manufacture date",
                  "description": "Optional date used to exclude notices outside their mapped window.",
                  "type": "string",
                  "editor": "textfield"
                }
              }
            }
          },
          "catalogUrl": {
            "title": "Catalog URL",
            "pattern": "^https://",
            "type": "string",
            "description": "Public HTTPS URL of a JSON array or CSV catalog export."
          },
          "catalogFormat": {
            "title": "Catalog format",
            "enum": [
              "auto",
              "json",
              "csv"
            ],
            "type": "string",
            "description": "Select explicit parsing or infer CSV from content type/file extension; otherwise JSON.",
            "default": "auto"
          },
          "recallSources": {
            "title": "Recall sources",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Required when demoMode is false. Only add official sources you are authorized to retrieve. Every URL is fetched with SSRF and size controls.",
            "items": {
              "type": "object",
              "required": [
                "name",
                "url",
                "mapping"
              ],
              "additionalProperties": false,
              "properties": {
                "name": {
                  "title": "Source name",
                  "description": "Unique operator-assigned label for the official source.",
                  "type": "string",
                  "editor": "textfield",
                  "minLength": 1
                },
                "url": {
                  "title": "Source URL",
                  "description": "Public official JSON/CSV HTTPS feed URL.",
                  "type": "string",
                  "editor": "textfield",
                  "pattern": "^https://"
                },
                "format": {
                  "title": "Source format",
                  "description": "Explicit or automatically detected source format.",
                  "type": "string",
                  "editor": "select",
                  "enum": [
                    "auto",
                    "json",
                    "csv"
                  ],
                  "default": "auto"
                },
                "recordsPath": {
                  "title": "Records path",
                  "description": "Safe dot path selecting the JSON record array; omit for a root array or CSV.",
                  "type": "string",
                  "editor": "textfield"
                },
                "mapping": {
                  "title": "Field mapping",
                  "description": "Safe dot paths from each recall record to normalized fields.",
                  "type": "object",
                  "editor": "json",
                  "required": [
                    "id",
                    "title"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "title": "Recall ID path",
                      "description": "Path to the required recall identifier.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "title": {
                      "title": "Title path",
                      "description": "Path to the required notice title.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "description": {
                      "title": "Description path",
                      "description": "Optional notice description path.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "brand": {
                      "title": "Brand path",
                      "description": "Path to a brand or brand array/delimited string.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "models": {
                      "title": "Models path",
                      "description": "Path to model identifiers.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "upcs": {
                      "title": "UPCs path",
                      "description": "Path to UPC/GTIN identifiers.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "manufactureStart": {
                      "title": "Manufacture start path",
                      "description": "Path to the inclusive manufacturing-window start date.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "manufactureEnd": {
                      "title": "Manufacture end path",
                      "description": "Path to the inclusive manufacturing-window end date.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "publishedAt": {
                      "title": "Published date path",
                      "description": "Path to the notice publication date.",
                      "type": "string",
                      "editor": "textfield"
                    },
                    "noticeUrl": {
                      "title": "Notice URL path",
                      "description": "Path to the official HTTPS notice URL.",
                      "type": "string",
                      "editor": "textfield"
                    }
                  }
                }
              }
            }
          },
          "matching": {
            "title": "Matching controls",
            "type": "object",
            "description": "Conservative deterministic scoring options.",
            "properties": {
              "minScore": {
                "title": "Minimum score",
                "description": "Lowest deterministic score emitted as an exposure.",
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "default": 70
              },
              "requireBrandWithModel": {
                "title": "Require brand with model",
                "description": "Only count model evidence when the brand also matches.",
                "type": "boolean",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "limits": {
            "title": "Safety limits",
            "type": "object",
            "description": "Per-run resource limits, bounded by non-overridable hard maximums.",
            "properties": {
              "maxCatalogItems": {
                "title": "Maximum catalog items",
                "description": "Maximum parsed merchant catalog rows.",
                "type": "integer",
                "minimum": 1,
                "maximum": 50000,
                "default": 10000
              },
              "maxRecallsPerSource": {
                "title": "Maximum recalls per source",
                "description": "Maximum parsed recall rows from each feed.",
                "type": "integer",
                "minimum": 1,
                "maximum": 25000,
                "default": 5000
              },
              "maxMatches": {
                "title": "Maximum matches",
                "description": "Maximum dataset exposures before conservative truncation status.",
                "type": "integer",
                "minimum": 1,
                "maximum": 100000,
                "default": 10000
              },
              "maxResponseBytes": {
                "title": "Maximum response bytes",
                "description": "Maximum bytes accepted from each remote response.",
                "type": "integer",
                "minimum": 1024,
                "maximum": 25000000,
                "default": 5000000
              },
              "requestTimeoutSecs": {
                "title": "Request timeout seconds",
                "description": "DNS, connection, and response deadline per attempt.",
                "type": "integer",
                "minimum": 1,
                "maximum": 60,
                "default": 30
              },
              "concurrency": {
                "title": "Download concurrency",
                "description": "Maximum recall sources fetched concurrently.",
                "type": "integer",
                "minimum": 1,
                "maximum": 10,
                "default": 4
              }
            },
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}