{
  "openapi": "3.0.1",
  "info": {
    "title": "ClinicalTrials.gov Scraper: New Clinical Trial Alerts",
    "description": "Search and monitor clinical trials from ClinicalTrials.gov, the official US registry. Filter by condition, drug, sponsor, phase, status and country. Flat JSON with sponsor, sites, contacts and enrollment. 'Only new' mode for daily new-trial alerts. No API key.",
    "version": "0.1",
    "x-build-id": "d41BUTaOxhX5z6gLF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/radiant_opuntia~clinical-trials-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-radiant_opuntia-clinical-trials-alerts",
        "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/radiant_opuntia~clinical-trials-alerts/runs": {
      "post": {
        "operationId": "runs-sync-radiant_opuntia-clinical-trials-alerts",
        "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/radiant_opuntia~clinical-trials-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-radiant_opuntia-clinical-trials-alerts",
        "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": {
          "condition": {
            "title": "Condition or disease",
            "type": "string",
            "description": "Disease or condition studied. Synonyms are matched automatically. Examples: 'lung cancer', 'type 2 diabetes', 'alzheimer'."
          },
          "intervention": {
            "title": "Drug, device or intervention",
            "type": "string",
            "description": "Treatment being tested. Examples: 'pembrolizumab', 'semaglutide', 'CAR-T'."
          },
          "sponsor": {
            "title": "Sponsor or collaborator",
            "type": "string",
            "description": "Company, university or agency running the trial. Examples: 'Pfizer', 'Mayo Clinic', 'National Cancer Institute'."
          },
          "keyword": {
            "title": "Other keywords",
            "type": "string",
            "description": "Free-text search across the whole study record."
          },
          "location": {
            "title": "Location search",
            "type": "string",
            "description": "City, state or facility name where the study recruits. Example: 'Houston', 'Texas', 'MD Anderson'."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Only studies with a site in this country, e.g. 'United States', 'Germany', 'Japan'."
          },
          "statuses": {
            "title": "Recruitment status",
            "type": "array",
            "description": "Leave empty for all statuses.",
            "items": {
              "type": "string",
              "enum": [
                "NOT_YET_RECRUITING",
                "RECRUITING",
                "ENROLLING_BY_INVITATION",
                "ACTIVE_NOT_RECRUITING",
                "COMPLETED",
                "SUSPENDED",
                "TERMINATED",
                "WITHDRAWN",
                "UNKNOWN"
              ],
              "enumTitles": [
                "Not yet recruiting",
                "Recruiting",
                "Enrolling by invitation",
                "Active, not recruiting",
                "Completed",
                "Suspended",
                "Terminated",
                "Withdrawn",
                "Unknown"
              ]
            },
            "default": [
              "RECRUITING",
              "NOT_YET_RECRUITING"
            ]
          },
          "phases": {
            "title": "Trial phase",
            "type": "array",
            "description": "Leave empty for all phases.",
            "items": {
              "type": "string",
              "enum": [
                "EARLY_PHASE1",
                "PHASE1",
                "PHASE2",
                "PHASE3",
                "PHASE4",
                "NA"
              ],
              "enumTitles": [
                "Early Phase 1",
                "Phase 1",
                "Phase 2",
                "Phase 3",
                "Phase 4",
                "Not applicable (devices, behavioral)"
              ]
            },
            "default": []
          },
          "studyType": {
            "title": "Study type",
            "enum": [
              "ANY",
              "INTERVENTIONAL",
              "OBSERVATIONAL",
              "EXPANDED_ACCESS"
            ],
            "type": "string",
            "description": "Interventional trials test a treatment; observational studies don't.",
            "default": "ANY"
          },
          "sex": {
            "title": "Eligible sex",
            "enum": [
              "ANY",
              "ALL",
              "FEMALE",
              "MALE"
            ],
            "type": "string",
            "description": "Only studies open to this group.",
            "default": "ANY"
          },
          "industryOnly": {
            "title": "Industry-sponsored only",
            "type": "boolean",
            "description": "Only studies led by a company (pharma / biotech / device). Useful for sales and competitive intelligence.",
            "default": false
          },
          "hasResultsOnly": {
            "title": "Only studies with posted results",
            "type": "boolean",
            "description": "Only studies that have published results.",
            "default": false
          },
          "postedWithinDays": {
            "title": "First posted within last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Newly registered studies. 0 = off. Ignored if a start date is set.",
            "default": 30
          },
          "updatedWithinDays": {
            "title": "Updated within last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Studies whose record changed recently (status, sites, results). 0 = off. Only used when 'First posted within' is 0.",
            "default": 0
          },
          "startDate": {
            "title": "Start date (optional)",
            "type": "string",
            "description": "YYYY-MM-DD. Applies to the field chosen under 'Date field'."
          },
          "endDate": {
            "title": "End date (optional)",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "dateField": {
            "title": "Date field for start/end dates",
            "enum": [
              "firstPosted",
              "lastUpdated",
              "start"
            ],
            "type": "string",
            "description": "Which date the explicit start and end dates apply to.",
            "default": "firstPosted"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "updated"
            ],
            "type": "string",
            "description": "Order of results. Matters when you set a low max results.",
            "default": "newest"
          },
          "includeLocations": {
            "title": "Include sites",
            "type": "boolean",
            "description": "Adds a short list of study sites (up to 15) and the number of currently recruiting sites.",
            "default": true
          },
          "includeEligibility": {
            "title": "Include full eligibility criteria",
            "type": "boolean",
            "description": "Adds the long inclusion/exclusion criteria text.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new since last run (alerts mode)",
            "type": "boolean",
            "description": "Remember which studies were already returned and output only new ones. Use with a daily Schedule + email/Slack/webhook integration.",
            "default": false
          },
          "alertOn": {
            "title": "Alert on",
            "enum": [
              "newStudies",
              "newOrUpdated"
            ],
            "type": "string",
            "description": "Used with 'Only new'. 'New studies' alerts once per study. 'New or updated' also alerts again each time a study's record is updated (status change, results posted...). Pair that with 'Updated within last N days'.",
            "default": "newStudies"
          },
          "stateKey": {
            "title": "Alert name (optional)",
            "type": "string",
            "description": "Separate memory for 'only new' mode. Defaults to a key derived from your filters."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many studies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}