{
  "openapi": "3.0.1",
  "info": {
    "title": "ClinicalTrials.gov Scraper: Clinical Trials, Sites & Contacts",
    "description": "Clinical trials scraper for ClinicalTrials.gov. Search by condition, drug, sponsor, location, phase and status. One row per study: title, status, phase, sponsor, enrollment, dates, eligibility, outcomes, every study site with coordinates and recruitment contacts. Official API, no login, no proxies.",
    "version": "0.1",
    "x-build-id": "zDe5lJIWvFPI1WiCm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/best_celerytop~clinical-trials-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-best_celerytop-clinical-trials-scraper",
        "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/best_celerytop~clinical-trials-scraper/runs": {
      "post": {
        "operationId": "runs-sync-best_celerytop-clinical-trials-scraper",
        "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/best_celerytop~clinical-trials-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-best_celerytop-clinical-trials-scraper",
        "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": {
          "conditions": {
            "title": "Conditions or diseases",
            "type": "array",
            "description": "Diseases or conditions, one per line, for example `breast cancer`, `type 2 diabetes`, `Alzheimer`. Studies matching any of them are returned.",
            "items": {
              "type": "string"
            }
          },
          "interventions": {
            "title": "Interventions or treatments",
            "type": "array",
            "description": "Drugs, devices, procedures or other treatments, for example `pembrolizumab`, `semaglutide`, `CAR-T`.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Other keywords",
            "type": "array",
            "description": "Any other terms searched across the whole study record, for example `biomarker`, `telemedicine`, `NCT04280705`.",
            "items": {
              "type": "string"
            }
          },
          "sponsor": {
            "title": "Sponsor or collaborator",
            "type": "string",
            "description": "Name of the sponsor or collaborator, for example `Pfizer`, `National Cancer Institute`, `Mayo Clinic`."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, state or country of the study sites, for example `Germany`, `Boston`, `California`."
          },
          "statuses": {
            "title": "Recruitment status",
            "type": "array",
            "description": "Keep studies with any of these statuses. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "RECRUITING",
                "NOT_YET_RECRUITING",
                "ENROLLING_BY_INVITATION",
                "ACTIVE_NOT_RECRUITING",
                "COMPLETED",
                "SUSPENDED",
                "TERMINATED",
                "WITHDRAWN",
                "UNKNOWN"
              ],
              "enumTitles": [
                "Recruiting",
                "Not yet recruiting",
                "Enrolling by invitation",
                "Active, not recruiting",
                "Completed",
                "Suspended",
                "Terminated",
                "Withdrawn",
                "Unknown status"
              ]
            }
          },
          "phases": {
            "title": "Phases",
            "type": "array",
            "description": "Keep studies in any of these phases. Leave empty for all.",
            "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...)"
              ]
            }
          },
          "studyType": {
            "title": "Study type",
            "enum": [
              "ALL",
              "INTERVENTIONAL",
              "OBSERVATIONAL",
              "EXPANDED_ACCESS"
            ],
            "type": "string",
            "description": "Interventional studies test a treatment; observational studies only follow participants.",
            "default": "ALL"
          },
          "updatedSince": {
            "title": "Updated since (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}(-\\d{2})?$",
            "type": "string",
            "description": "Only studies whose record was updated on or after this date. Useful for scheduled runs that watch for changes."
          },
          "startedSince": {
            "title": "Started since (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}(-\\d{2})?$",
            "type": "string",
            "description": "Only studies with a start date on or after this date."
          },
          "withResultsOnly": {
            "title": "Only studies with posted results",
            "type": "boolean",
            "description": "Keep only studies that have posted results on the registry.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lastUpdated",
              "newestPosted",
              "startDate",
              "enrollment"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "relevance"
          },
          "nctIds": {
            "title": "NCT numbers",
            "type": "array",
            "description": "Fetch specific studies by their NCT number, for example `NCT04280705`. Can be combined with a search.",
            "items": {
              "type": "string"
            }
          },
          "includeLocations": {
            "title": "Include study sites",
            "type": "boolean",
            "description": "Add every study site with city, country, coordinates, recruitment status and site contacts.",
            "default": true
          },
          "maxLocationsPerStudy": {
            "title": "Max sites per study",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on the number of sites listed for one study. Large trials can have hundreds.",
            "default": 100
          },
          "includeEligibilityText": {
            "title": "Include full eligibility criteria text",
            "type": "boolean",
            "description": "Add the complete inclusion and exclusion criteria text to every study.",
            "default": true
          },
          "maxItems": {
            "title": "Max studies",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of studies saved in the run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}