{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA 510(k) / PMA Clearance Monitor (medical devices)",
    "description": "Watch openFDA 510(k) and PMA clearances filtered by product code, applicant, panel, or keywords. Charges once per matched clearance; only-new mode skips repeats.",
    "version": "0.1",
    "x-build-id": "HrFNifiViIEwAcTyd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sovereign_workspace~fda-510k-pma-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sovereign_workspace-fda-510k-pma-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/sovereign_workspace~fda-510k-pma-monitor/runs": {
      "post": {
        "operationId": "runs-sync-sovereign_workspace-fda-510k-pma-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/sovereign_workspace~fda-510k-pma-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-sovereign_workspace-fda-510k-pma-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": {
          "profile": {
            "title": "Operator profile",
            "enum": [
              "standard",
              "smoke"
            ],
            "type": "string",
            "description": "Named config preset applied at start. Any field you set explicitly below overrides the preset."
          },
          "sources": {
            "title": "Decision types",
            "enum": [
              "both",
              "510k",
              "pma"
            ],
            "type": "string",
            "description": "Which FDA device decision databases to watch.",
            "default": "both"
          },
          "product_codes": {
            "title": "Product codes",
            "type": "array",
            "description": "3-letter FDA product codes to watch (e.g. DQY, NHL). Up to 20. At least one of product codes, applicants, device keywords or advisory committees is required.",
            "items": {
              "type": "string"
            }
          },
          "applicants": {
            "title": "Applicant keywords",
            "type": "array",
            "description": "Company names or name fragments to watch, matched as phrases (e.g. medtronic, boston scientific). Up to 5.",
            "items": {
              "type": "string"
            }
          },
          "device_keywords": {
            "title": "Device name keywords",
            "type": "array",
            "description": "Words or phrases matched against the 510(k) device name and the PMA trade and generic names (e.g. catheter, deep brain). Up to 5.",
            "items": {
              "type": "string"
            }
          },
          "advisory_committees": {
            "title": "Advisory committees (panels)",
            "type": "array",
            "description": "2-letter review panel codes (e.g. CV cardiovascular, NE neurology, SU general and plastic surgery). Up to 10.",
            "items": {
              "type": "string"
            }
          },
          "since_days": {
            "title": "Window (days back)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How many days back to search by decision date (1-365). FDA decisions reach openFDA days to weeks after the decision, so keep this at 30 or more on a schedule; 'Only decisions not seen before' stops repeats.",
            "default": 30
          },
          "exclude_30_day_notices": {
            "title": "Skip PMA 30-day notices",
            "type": "boolean",
            "description": "Leave out PMA '30-Day Notice' supplements (routine manufacturing-change notices, most PMA decisions in a typical year).",
            "default": true
          },
          "pma_originals_only": {
            "title": "PMA original approvals only",
            "type": "boolean",
            "description": "Return only original PMA approvals, not PMA supplements.",
            "default": false
          },
          "only_new": {
            "title": "Only decisions not seen before",
            "type": "boolean",
            "description": "Skip decisions this same watch (same filters) already returned in an earlier run, so overlapping scheduled windows never charge twice. Kept in a named key-value store in your account.",
            "default": true
          },
          "api_key": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Optional free openFDA key. Without one, openFDA allows 1,000 requests per day per IP, and Apify IPs are shared."
          },
          "limit": {
            "title": "Max decisions",
            "type": "integer",
            "description": "Maximum number of decisions to return per run (up to 1000).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}