{
  "openapi": "3.0.1",
  "info": {
    "title": "CPSC Recall Matcher: Models, UPCs & Manufacturers",
    "description": "Compare your product catalog with official CPSC recalls using model, UPC and manufacturer evidence. Get recall candidates, source links and changes against a supplied snapshot. Includes no-match results. Candidates require human review; no-match is not a safety clearance.",
    "version": "0.0",
    "x-build-id": "N1oNOSiXlKnRUA88y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/felixgoldwin~cpsc-recall-catalog-matcher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-felixgoldwin-cpsc-recall-catalog-matcher",
        "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/felixgoldwin~cpsc-recall-catalog-matcher/runs": {
      "post": {
        "operationId": "runs-sync-felixgoldwin-cpsc-recall-catalog-matcher",
        "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/felixgoldwin~cpsc-recall-catalog-matcher/run-sync": {
      "post": {
        "operationId": "run-sync-felixgoldwin-cpsc-recall-catalog-matcher",
        "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",
        "required": [
          "catalog",
          "recallDateStart",
          "recallDateEnd"
        ],
        "properties": {
          "recallDateStart": {
            "title": "Recall date start",
            "type": "string",
            "description": "Required YYYY-MM-DD. Inclusive local filtering. Maximum 366 calendar days. Prefilled dates are a fixed historical demonstration (October 1–2, 2026), not current recall coverage."
          },
          "recallDateEnd": {
            "title": "Recall date end",
            "type": "string",
            "description": "Required YYYY-MM-DD. Inclusive local filtering. Maximum 366 calendar days. Prefilled dates are a fixed historical demonstration (October 1–2, 2026), not current recall coverage."
          },
          "catalog": {
            "title": "Nonsecret product catalog",
            "type": "array",
            "description": "1–250 objects with unique productId, optional manufacturer, models and/or upcs string arrays (up to 10 each). No customer, health, contact or secret data. Preserve UPC leading zeros as strings. Prefilled Agrish model is a public historical recall demonstration; replace it with your own nonsecret catalog.",
            "items": {
              "type": "object"
            }
          },
          "partitionDays": {
            "title": "Days per partition",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 7
          },
          "maxRecalls": {
            "title": "Maximum unique recalls",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 500
          },
          "maxResults": {
            "title": "Maximum catalog result rows",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 100
          },
          "maxCandidatesPerProduct": {
            "title": "Maximum candidates per product",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 25
          },
          "maxRequests": {
            "title": "Maximum HTTP attempts",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 30
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 2
          },
          "maxSeconds": {
            "title": "Maximum scan seconds",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 90
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 1024,
            "maximum": 10000000,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 3000000
          },
          "maxTotalBytes": {
            "title": "Maximum aggregate bytes",
            "minimum": 1024,
            "maximum": 20000000,
            "type": "integer",
            "description": "Hard bound. Incomplete scans suppress comparisons and reusable snapshots.",
            "default": 12000000
          },
          "maxBudgetUsd": {
            "title": "Maximum event budget USD",
            "minimum": 0,
            "maximum": 20,
            "type": "number",
            "description": "Local estimated or configured event budget including automatic start reserve per 1 GB memory unit. Excludes compute and storage. Automatic start may already be charged before code runs.",
            "default": 0.25
          },
          "previousSnapshot": {
            "title": "Previous complete snapshot",
            "type": "object",
            "description": "Paste OUTPUT.previousSnapshot for exact same catalog and dates. Maximum total input 1.5 MB."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}