{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA 510(k) Device Clearance Landscape Report",
    "description": "Analyze official openFDA 510(k) clearance records by applicant, device name, product code, specialty, and decision date. Receive source-linked clearance change alerts, landscape reports, and exports from public records. Baselines and unchanged checks are free.",
    "version": "0.1",
    "x-build-id": "TOyIyRrbenXbH2hMv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taroyamada~fda-510k-device-clearance-landscape-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taroyamada-fda-510k-device-clearance-landscape-report",
        "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/taroyamada~fda-510k-device-clearance-landscape-report/runs": {
      "post": {
        "operationId": "runs-sync-taroyamada-fda-510k-device-clearance-landscape-report",
        "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/taroyamada~fda-510k-device-clearance-landscape-report/run-sync": {
      "post": {
        "operationId": "run-sync-taroyamada-fda-510k-device-clearance-landscape-report",
        "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": [
          "watches"
        ],
        "properties": {
          "watches": {
            "title": "510(k) watches",
            "type": "array",
            "description": "Bounded saved searches by applicant, product code, device name, medical specialty, review panel, clearance type, decision code, regulation number, or decision date.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "title": "Watch ID",
                  "description": "Stable identifier for this recurring watch.",
                  "type": "string"
                },
                "applicants": {
                  "title": "Applicants",
                  "description": "Public applicant/company names as recorded in openFDA.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "productCodes": {
                  "title": "Product codes",
                  "description": "FDA three-character product codes, for example OVE or DQY.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "deviceNames": {
                  "title": "Device names",
                  "description": "Public device-name fragments.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "medicalSpecialties": {
                  "title": "Medical specialties",
                  "description": "Public openFDA medical specialty values.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "reviewPanels": {
                  "title": "Review panels",
                  "description": "Public 510(k) review panel values.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "clearanceTypes": {
                  "title": "Clearance types",
                  "description": "Public clearance type values.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "decisionCodes": {
                  "title": "Decision codes",
                  "description": "Public 510(k) decision codes.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "regulationNumbers": {
                  "title": "Regulation numbers",
                  "description": "Exact openFDA regulation numbers.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "terms": {
                  "title": "Search terms",
                  "description": "Public device-name or statement fragments searched across the 510(k) record.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "decisionDateFrom": {
                  "title": "Decision date from",
                  "description": "Inclusive ISO date, YYYY-MM-DD.",
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                },
                "decisionDateTo": {
                  "title": "Decision date to",
                  "description": "Inclusive ISO date, YYYY-MM-DD.",
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                }
              },
              "additionalProperties": false
            },
            "default": []
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Stable isolated state namespace for a recurring saved clearance watch.",
            "default": "fda-510k-clearance-watch"
          },
          "initialRunMode": {
            "title": "Initial run mode",
            "enum": [
              "baseline_only",
              "emit_backfill"
            ],
            "type": "string",
            "description": "baseline_only stores the first observation with zero rows; emit_backfill emits current matches for an explicit first report.",
            "default": "baseline_only"
          },
          "generateReport": {
            "title": "Generate clearance landscape report",
            "type": "boolean",
            "description": "Generate one aggregate applicant/product-code/specialty landscape report when new or changed observations are emitted.",
            "default": true
          },
          "emitRawRows": {
            "title": "Emit 510(k) rows",
            "type": "boolean",
            "description": "Emit one normalized public 510(k) row for each new or changed record. This is the low-priced row event.",
            "default": false
          },
          "emitExport": {
            "title": "Generate clearance export",
            "type": "boolean",
            "description": "Generate a compact JSON-ready export when new or changed observations are emitted.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Emit unchanged observations",
            "type": "boolean",
            "description": "Accepted for compatibility, but unchanged observations always remain zero rows and zero charge for billing safety.",
            "default": false
          },
          "maxRecordsPerWatch": {
            "title": "Maximum records per watch",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum records requested from openFDA per watch. The official API maximum is 1000.",
            "default": 100
          },
          "maxChargeUsd": {
            "title": "Maximum charge USD",
            "minimum": 0.004,
            "maximum": 250,
            "type": "number",
            "description": "Fail closed before pushing any row if planned PPE charges exceed this cap.",
            "default": 25
          },
          "openfdaApiKey": {
            "title": "Optional openFDA API key",
            "type": "string",
            "description": "Optional user-supplied free openFDA key. Leave blank: normal use does not require a key. The key is never written to output or state."
          },
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Return representative event rows without calling openFDA, saving state, or charging PPE events.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}