{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA Drug Approvals Monitor: EMA & Health Canada",
    "description": "FDA drug approvals, European Medicines Agency (EMA) decisions and Health Canada product status in one pharma regulatory feed. New approvals, generics, biosimilars, label changes, withdrawals and suspensions with company, active ingredient and application number. Monitor mode returns only new events.",
    "version": "0.1",
    "x-build-id": "60RAwwo2BL4DnT8mc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maliksaid~drug-approvals-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maliksaid-drug-approvals-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/maliksaid~drug-approvals-monitor/runs": {
      "post": {
        "operationId": "runs-sync-maliksaid-drug-approvals-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/maliksaid~drug-approvals-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-maliksaid-drug-approvals-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": {
          "regulators": {
            "title": "Regulators",
            "type": "array",
            "description": "Which medicine regulators to read. Leave empty for FDA, EMA and Health Canada. Add FDA drug recalls to also get recall notices.",
            "items": {
              "type": "string",
              "enum": [
                "fda",
                "ema",
                "hc",
                "fda-recalls"
              ],
              "enumTitles": [
                "FDA (United States, Drugs@FDA)",
                "EMA (European Union)",
                "Health Canada (Drug Product Database)",
                "FDA drug recalls (openFDA enforcement reports)"
              ]
            },
            "default": [
              "fda",
              "ema",
              "hc"
            ]
          },
          "recallClasses": {
            "title": "Recall classes",
            "type": "array",
            "description": "Used with FDA drug recalls. Class I is the most serious: a product that can cause serious harm or death. Leave empty for all three.",
            "items": {
              "type": "string",
              "enum": [
                "Class I",
                "Class II",
                "Class III"
              ]
            },
            "default": [
              "Class I",
              "Class II",
              "Class III"
            ]
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Return events from this many days before the end date. Ignored when you set a start date.",
            "default": 30
          },
          "dateFrom": {
            "title": "Start date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional. First event date to include, as YYYY-MM-DD. Overrides days back."
          },
          "dateTo": {
            "title": "End date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional. Last event date to include, as YYYY-MM-DD. Default is today."
          },
          "keywords": {
            "title": "Ingredient, company or product keywords",
            "type": "array",
            "description": "Keep only events whose product name, active ingredient, company, application number, therapeutic area, ATC code or EMA therapeutic indication contains at least one keyword. Keywords match whole words. Leave empty to keep every event.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "humanOnly": {
            "title": "Human medicines only",
            "type": "boolean",
            "description": "Skip veterinary medicines, disinfectants and radiopharmaceuticals. FDA data in this Actor covers human drugs only.",
            "default": true
          },
          "flags": {
            "title": "Only events with these flags",
            "type": "array",
            "description": "Keep only events that carry at least one of these flags. Orphan, priority review and generic work for FDA and EMA. Novel and new molecular entity are FDA. Conditional approval, PRIME, advanced therapy and the other EMA flags are EMA. Leave empty to keep every event.",
            "items": {
              "type": "string",
              "enum": [
                "novel",
                "new-molecular-entity",
                "orphan",
                "priority-review",
                "generic",
                "biosimilar",
                "conditional-approval",
                "exceptional-circumstances",
                "advanced-therapy",
                "prime",
                "accelerated-assessment",
                "additional-monitoring"
              ],
              "enumTitles": [
                "Novel approval (FDA new molecular entity, original approval)",
                "New molecular entity (FDA)",
                "Orphan medicine (FDA and EMA)",
                "Priority review (FDA)",
                "Generic (FDA ANDA, EMA generic)",
                "Biosimilar (FDA and EMA)",
                "Conditional approval (EMA)",
                "Exceptional circumstances (EMA)",
                "Advanced therapy (EMA)",
                "PRIME priority medicine (EMA)",
                "Accelerated assessment (EMA)",
                "Additional monitoring (EMA)"
              ]
            },
            "default": []
          },
          "monitorMode": {
            "title": "Monitor mode (only new events)",
            "type": "boolean",
            "description": "Return only events that earlier monitor-mode runs with the same monitor name did not return. Schedule the Actor with this on to get a feed of new approvals and status changes.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the memory that monitor mode uses. Use a different name for each separate watch list. Inputs that still send the old field `stateKey` keep working.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum events",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after saving this many events, newest first. The default keeps test runs short and cheap. Set 0 for no limit.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}