{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA 510(k) Clearance Tracker",
    "description": "Live openFDA 510(k) rows. Try includes Electrical Muscle Stimulator K261131. Not a predicate decision. $0.02 / row.",
    "version": "1.0",
    "x-build-id": "6RfUnAP3CHSlEMJcp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zentrafoundry~fda-510k-competitor-clearance-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zentrafoundry-fda-510k-competitor-clearance-tracker",
        "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/zentrafoundry~fda-510k-competitor-clearance-tracker/runs": {
      "post": {
        "operationId": "runs-sync-zentrafoundry-fda-510k-competitor-clearance-tracker",
        "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/zentrafoundry~fda-510k-competitor-clearance-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-zentrafoundry-fda-510k-competitor-clearance-tracker",
        "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": {
          "sourceMode": {
            "title": "FDA clearance source",
            "enum": [
              "live",
              "capturedFixture",
              "sample"
            ],
            "type": "string",
            "description": "Live is the normal default and reads the official openFDA Device 510(k) API. Captured fixture is only for deterministic package verification. Sample remains a legacy saved-task alias and is not the Store default.",
            "default": "live"
          },
          "mode": {
            "title": "Legacy run mode",
            "enum": [
              "normal",
              "demo",
              "watchlist",
              "backfill"
            ],
            "type": "string",
            "description": "Normal uses the live official API. Demo is retained only for saved tasks and maps to the captured verification fixture.",
            "default": "normal"
          },
          "startUrls": {
            "title": "Official FDA API URL",
            "type": "array",
            "description": "Optional compatibility override. Only https://api.fda.gov/device/510k.json is accepted; other URLs are ignored.",
            "default": [
              {
                "url": "https://api.fda.gov/device/510k.json",
                "sourceId": "OPENFDA-DEVICE-510-K-API",
                "userData": {
                  "sourceId": "OPENFDA-DEVICE-510-K-API"
                }
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum clearance records",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum matching FDA 510(k) records to emit. The Store default is one live result to keep unattended runs bounded.",
            "default": 1
          },
          "applicantNames": {
            "title": "Applicant filters",
            "type": "array",
            "description": "Optional case-insensitive applicant filters. Leave empty to return the newest eligible clearance.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productCodes": {
            "title": "FDA product-code filters",
            "type": "array",
            "description": "Optional case-insensitive FDA product-code filters. Leave empty to return the newest eligible clearance.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "advisoryCommittees": {
            "title": "FDA advisory-committee filters",
            "type": "array",
            "description": "Optional case-insensitive advisory-committee filters. Leave empty to return the newest eligible clearance.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sinceLastRun": {
            "title": "Only newly seen clearances",
            "type": "boolean",
            "description": "When enabled, stores seen FDA K numbers under the state key and emits only newly observed matching clearances.",
            "default": false
          },
          "stateKey": {
            "title": "Clearance delta state key",
            "type": "string",
            "description": "Optional storage key for this Actor's FDA 510(k) delta state.",
            "default": "FDA_510K_CLEARANCES_SEEN"
          },
          "watchlistTerms": {
            "title": "Legacy keyword filters",
            "type": "array",
            "description": "Compatibility alias for saved tasks. Values are applied to K number, device, applicant, product code, and committee fields.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Legacy lookback window",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Compatibility setting for existing tasks. The public API query remains ordered by clearance decision date.",
            "default": 30
          },
          "baselineDatasetId": {
            "title": "Legacy baseline dataset ID",
            "type": "string",
            "description": "Compatibility setting retained for saved tasks; this Actor's official API delta state uses K numbers."
          },
          "sourceIds": {
            "title": "Legacy source IDs",
            "type": "array",
            "description": "Compatibility setting retained for saved tasks. The official source ID is OPENFDA-DEVICE-510-K-API.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pricingEvents": {
            "title": "Legacy pricing-event selector",
            "type": "array",
            "description": "Compatibility setting retained for saved tasks. Live delivered records use the existing result-delivered event configuration.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeSourceUrls": {
            "title": "Include source URLs",
            "type": "boolean",
            "description": "Compatibility setting. FDA source URLs remain part of every output record for provenance.",
            "default": true
          },
          "includeMatchReasons": {
            "title": "Include match reasons",
            "type": "boolean",
            "description": "Compatibility setting. Each output record includes its official-source match reason.",
            "default": true
          },
          "includeRaw": {
            "title": "Include raw source fragments",
            "type": "boolean",
            "description": "Compatibility setting. Raw provider fragments are not emitted by default.",
            "default": false
          },
          "emitDiagnostics": {
            "title": "Legacy diagnostic setting",
            "type": "boolean",
            "description": "Compatibility setting. A failed official API read fails transparently; no synthetic diagnostic record is emitted.",
            "default": true
          },
          "outputMode": {
            "title": "Legacy output mode",
            "enum": [
              "live-records",
              "buyer-ready-records",
              "sample-records"
            ],
            "type": "string",
            "description": "Live records is the normal default. Sample records is retained only as a legacy saved-task alias for the captured verification fixture.",
            "default": "buyer-ready-records"
          },
          "webhookUrl": {
            "title": "Completion webhook URL",
            "type": "string",
            "description": "Optional endpoint that receives a compact completion summary after a run."
          },
          "actorSlug": {
            "title": "Actor slug",
            "type": "string",
            "description": "Compatibility traceability field for saved tasks."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}