{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA & EMA Drug Approvals and Clinical Trial Tracker",
    "description": "Track FDA and EMA drug approvals and ClinicalTrials.gov trial changes for any drug, company or disease. AI summaries of approvals, CHMP opinions, new indications, safety alerts, terminated trials and endpoint changes. Pharma competitive intelligence, pay per update.",
    "version": "0.0",
    "x-build-id": "ww7A3QFWaNu9DSSEq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fiveyears~fda-ema-drug-approvals-and-clinical-trial-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fiveyears-fda-ema-drug-approvals-and-clinical-trial-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/fiveyears~fda-ema-drug-approvals-and-clinical-trial-tracker/runs": {
      "post": {
        "operationId": "runs-sync-fiveyears-fda-ema-drug-approvals-and-clinical-trial-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/fiveyears~fda-ema-drug-approvals-and-clinical-trial-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-fiveyears-fda-ema-drug-approvals-and-clinical-trial-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": {
          "watchlist": {
            "title": "Watchlist",
            "type": "array",
            "description": "Drug names, active substances, companies or therapeutic areas to follow, for example multiple sclerosis, semaglutide, Biogen. An update is included if it mentions any of them. Leave empty to get the most important decisions across all areas (capped by Maximum updates).",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official sources to check. ClinicalTrials.gov compares each run with the previous one for the same watchlist, so trial changes appear from the second run; the first run reports newly registered, stopped and newly reported trials.",
            "items": {
              "type": "string",
              "enum": [
                "ema_medicines",
                "ema_post_authorisation",
                "ema_safety",
                "fda_new",
                "fda_supplements",
                "ctgov"
              ],
              "enumTitles": [
                "EMA centralised medicines (opinions, approvals, refusals, withdrawals)",
                "EMA post-authorisation procedures (new indications, variations)",
                "EMA safety communications to healthcare professionals (DHPC)",
                "FDA new approvals (Drugs@FDA)",
                "FDA supplemental approvals (labeling, efficacy, new uses)",
                "ClinicalTrials.gov changes (new trials, terminations, endpoint and enrolment changes, results)"
              ]
            },
            "default": [
              "ema_medicines",
              "ema_post_authorisation",
              "ema_safety",
              "fda_new",
              "fda_supplements",
              "ctgov"
            ]
          },
          "daysBack": {
            "title": "Look back N days",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Use 7 for a weekly digest.",
            "default": 7
          },
          "maxUpdates": {
            "title": "Maximum updates to summarise",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "You are charged per decision summarised, so this caps your cost per run. The most important decisions (approvals of new medicines, refusals, new indications) are summarised first.",
            "default": 5
          },
          "minImportance": {
            "title": "Only save updates with importance at least",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Importance runs from 1 (routine) to 5 (major approval, refusal or safety action). Every summarised update is charged; this only filters what is saved.",
            "default": 1
          },
          "includeRoutineUpdates": {
            "title": "Also list routine updates (free)",
            "type": "boolean",
            "description": "EMA and FDA record hundreds of routine changes a month (EU product information updates, FDA labeling and manufacturing supplements) without saying what changed. Turn this on to list the ones matching your watchlist as short lines with a link. They are not summarised by AI and are not charged.",
            "default": false
          },
          "outputLanguage": {
            "title": "Language of briefings",
            "enum": [
              "en",
              "de",
              "fr",
              "it"
            ],
            "type": "string",
            "description": "Language used for headlines, summaries and relevance notes.",
            "default": "en"
          },
          "resetTrialBaseline": {
            "title": "Start trial tracking from scratch",
            "type": "boolean",
            "description": "Ignore the saved trial baseline for this watchlist and build a new one. The run then reports trials as on a first run.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}