{
  "openapi": "3.0.1",
  "info": {
    "title": "ClinicalTrials.gov Sponsor, Location & NCT Lookup Tool",
    "description": "Look up ClinicalTrials.gov studies by lead sponsor, trial site location, or a list of NCT IDs, plus condition/intervention search, with status, phase, demographic and date filters.",
    "version": "1.1",
    "x-build-id": "SKvvznYMTZF5b9Hiq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~clinicaltrials-gov-sponsor-location-and-nct-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-clinicaltrials-gov-sponsor-location-and-nct-lookup",
        "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/vexaloom-labs~clinicaltrials-gov-sponsor-location-and-nct-lookup/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-clinicaltrials-gov-sponsor-location-and-nct-lookup",
        "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/vexaloom-labs~clinicaltrials-gov-sponsor-location-and-nct-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-clinicaltrials-gov-sponsor-location-and-nct-lookup",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byNctIds",
              "byCondition",
              "byIntervention",
              "byLocation",
              "bySponsor",
              "byTitle",
              "byOutcome",
              "byStudyId",
              "byFacility"
            ],
            "type": "string",
            "description": "Which lookup axis to use.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text query against the full study record. Used by mode=search; also serves as a fallback for the other browse modes if their specific query is empty.",
            "default": "cancer immunotherapy"
          },
          "conditionQuery": {
            "title": "Condition / disease (mode=byCondition)",
            "type": "string",
            "description": "Disease, condition, or medical term (e.g. `diabetes`, `breast cancer`, `Alzheimer disease`)."
          },
          "interventionQuery": {
            "title": "Intervention / drug (mode=byIntervention)",
            "type": "string",
            "description": "Drug name, device, biological, or therapy (e.g. `metformin`, `pembrolizumab`, `CAR-T`)."
          },
          "interventionTypes": {
            "title": "Intervention types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep studies with any of the selected intervention types. Empty = no intervention-type filter.",
            "items": {
              "type": "string",
              "enum": [
                "DRUG",
                "DEVICE",
                "BIOLOGICAL",
                "PROCEDURE",
                "BEHAVIORAL",
                "DIETARY_SUPPLEMENT",
                "COMBINATION_PRODUCT",
                "DIAGNOSTIC_TEST",
                "GENETIC",
                "OTHER"
              ],
              "enumTitles": [
                "Drug",
                "Device",
                "Biological",
                "Procedure",
                "Behavioral",
                "Dietary supplement",
                "Combination product",
                "Diagnostic test",
                "Genetic",
                "Other"
              ]
            },
            "default": []
          },
          "locationQuery": {
            "title": "Location (mode=byLocation)",
            "type": "string",
            "description": "Geographic location text (city, state, country) — e.g. `Boston`, `California`, `United States`."
          },
          "sponsorQuery": {
            "title": "Sponsor (mode=bySponsor)",
            "type": "string",
            "description": "Lead sponsor or collaborator name. Use `sponsorScope` to choose which one. Exact registered names work best (e.g. `Pfizer Inc.`, `Mayo Clinic`); partial names usually still match."
          },
          "sponsorScope": {
            "title": "Sponsor scope",
            "enum": [
              "lead",
              "all"
            ],
            "type": "string",
            "description": "Match `sponsorQuery` against the lead sponsor only or against lead sponsor plus collaborators.",
            "default": "lead"
          },
          "titleQuery": {
            "title": "Title / acronym (mode=byTitle)",
            "type": "string",
            "description": "Words from the brief title, official title or acronym (e.g. `remdesivir`, `ACTT`)."
          },
          "outcomeQuery": {
            "title": "Outcome measure (mode=byOutcome)",
            "type": "string",
            "description": "Words from a primary or secondary outcome measure (e.g. `quality of life`, `progression-free survival`)."
          },
          "studyIdQuery": {
            "title": "Sponsor study ID (mode=byStudyId)",
            "type": "string",
            "description": "The sponsor's own study identifier (e.g. `20-0006`, `SC2900`). Exact identifier only."
          },
          "facilityQuery": {
            "title": "Facility name (mode=byFacility)",
            "type": "string",
            "description": "Trial-site facility name (e.g. `Mayo Clinic`, `Johns Hopkins`)."
          },
          "nctIds": {
            "title": "NCT IDs (mode=byNctIds)",
            "type": "array",
            "description": "List of NCT identifiers like `NCT04280705`. Full URLs (`https://clinicaltrials.gov/study/NCT...`) are also accepted.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrl": {
            "title": "Start from a ClinicalTrials.gov URL",
            "type": "string",
            "description": "Paste a study URL (`https://clinicaltrials.gov/study/NCT...`), a search-results URL, or an `https://clinicaltrials.gov/api/v2/studies?...` URL. Values in the URL take precedence over the matching input fields; the remaining filters still apply."
          },
          "statuses": {
            "title": "Recruitment / overall status",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep studies with any of the selected statuses. Empty = no status filter.",
            "items": {
              "type": "string",
              "enum": [
                "NOT_YET_RECRUITING",
                "RECRUITING",
                "ENROLLING_BY_INVITATION",
                "ACTIVE_NOT_RECRUITING",
                "SUSPENDED",
                "TERMINATED",
                "COMPLETED",
                "WITHDRAWN",
                "UNKNOWN",
                "AVAILABLE",
                "NO_LONGER_AVAILABLE",
                "TEMPORARILY_NOT_AVAILABLE",
                "APPROVED_FOR_MARKETING",
                "WITHHELD"
              ],
              "enumTitles": [
                "Not yet recruiting",
                "Recruiting",
                "Enrolling by invitation",
                "Active, not recruiting",
                "Suspended",
                "Terminated",
                "Completed",
                "Withdrawn",
                "Unknown",
                "Available (expanded access)",
                "No longer available (expanded access)",
                "Temporarily not available (expanded access)",
                "Approved for marketing (expanded access)",
                "Withheld"
              ]
            },
            "default": []
          },
          "studyTypes": {
            "title": "Study type",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep studies of any of the selected types. Empty = no study-type filter.",
            "items": {
              "type": "string",
              "enum": [
                "INTERVENTIONAL",
                "OBSERVATIONAL",
                "EXPANDED_ACCESS"
              ],
              "enumTitles": [
                "Interventional (clinical trial)",
                "Observational",
                "Expanded access (compassionate use)"
              ]
            },
            "default": []
          },
          "phases": {
            "title": "Phases",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep studies in any of the selected trial phases. Empty = no phase filter.",
            "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"
              ]
            },
            "default": []
          },
          "sex": {
            "title": "Eligible sex",
            "enum": [
              "",
              "ALL",
              "MALE",
              "FEMALE"
            ],
            "type": "string",
            "description": "Restrict by the sex a study enrolls. `ALL` keeps only studies open to both sexes; `MALE`/`FEMALE` keep studies open to that sex (including both-sex studies)."
          },
          "ageGroups": {
            "title": "Age groups",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep studies that enroll any of the selected age groups. Empty = no age-group filter.",
            "items": {
              "type": "string",
              "enum": [
                "CHILD",
                "ADULT",
                "OLDER_ADULT"
              ],
              "enumTitles": [
                "Child (birth-17)",
                "Adult (18-64)",
                "Older Adult (65+)"
              ]
            },
            "default": []
          },
          "healthyVolunteersFilter": {
            "title": "Accepts healthy volunteers",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Keep studies that do or do not accept healthy volunteers. Empty = no filter."
          },
          "ageRangeUnit": {
            "title": "Age range unit",
            "enum": [
              "years",
              "months"
            ],
            "type": "string",
            "description": "Unit for ageRangeFrom/ageRangeTo.",
            "default": "years"
          },
          "ageRangeFrom": {
            "title": "Age range — from (years)",
            "minimum": 0,
            "maximum": 1440,
            "type": "integer",
            "description": "Keep studies whose eligibility age window overlaps this lower bound, expressed in `ageRangeUnit` (years by default). Studies with no age limit are treated as 0-120 years."
          },
          "ageRangeTo": {
            "title": "Age range — to (years)",
            "minimum": 0,
            "maximum": 1440,
            "type": "integer",
            "description": "Keep studies whose eligibility age window overlaps this upper bound, expressed in `ageRangeUnit`."
          },
          "country": {
            "title": "Country",
            "enum": [
              "",
              "United States",
              "Canada",
              "United Kingdom",
              "Germany",
              "France",
              "Italy",
              "Spain",
              "Netherlands",
              "Belgium",
              "Sweden",
              "Norway",
              "Denmark",
              "Finland",
              "Switzerland",
              "Austria",
              "Poland",
              "Czechia",
              "Hungary",
              "Romania",
              "Bulgaria",
              "Greece",
              "Portugal",
              "Ireland",
              "Iceland",
              "Russia",
              "Ukraine",
              "Turkey",
              "Israel",
              "Saudi Arabia",
              "United Arab Emirates",
              "Egypt",
              "South Africa",
              "China",
              "Japan",
              "Korea, Republic of",
              "Taiwan",
              "Hong Kong",
              "India",
              "Pakistan",
              "Bangladesh",
              "Thailand",
              "Vietnam",
              "Indonesia",
              "Malaysia",
              "Singapore",
              "Philippines",
              "Australia",
              "New Zealand",
              "Mexico",
              "Brazil",
              "Argentina",
              "Chile",
              "Colombia",
              "Peru"
            ],
            "type": "string",
            "description": "Keep studies with a trial location in this country."
          },
          "countryText": {
            "title": "Country name (any)",
            "type": "string",
            "description": "Any country name, including countries not in the dropdown. Takes precedence over `country`."
          },
          "state": {
            "title": "State / region",
            "type": "string",
            "description": "Trial-site state or region as registered on ClinicalTrials.gov (e.g. `California`, `Ontario`). Exact name, not a two-letter code."
          },
          "sponsorClass": {
            "title": "Funder type",
            "enum": [
              "",
              "NIH",
              "FED",
              "INDUSTRY",
              "NETWORK",
              "INDIV",
              "OTHER",
              "OTHER_GOV",
              "UNKNOWN",
              "AMBIG"
            ],
            "type": "string",
            "description": "Keep studies by lead-sponsor class. Empty = no funder filter."
          },
          "fdaRegulated": {
            "title": "FDA-regulated",
            "enum": [
              "",
              "drug",
              "device"
            ],
            "type": "string",
            "description": "Keep studies that are FDA-regulated drug or device trials. Empty = no filter."
          },
          "onlyPatientRegistries": {
            "title": "Patient registries only",
            "type": "boolean",
            "description": "When enabled, keep only studies flagged as patient registries.",
            "default": false
          },
          "onlyFdaaaViolations": {
            "title": "FDAAA 801 violations only",
            "type": "boolean",
            "description": "When enabled, keep only studies with an FDAAA 801 violation.",
            "default": false
          },
          "resultsAvailability": {
            "title": "Study results",
            "enum": [
              "",
              "with_results",
              "without_results"
            ],
            "type": "string",
            "description": "Keep studies with or without posted results. Empty = no filter."
          },
          "startDateFrom": {
            "title": "Study start — from",
            "type": "string",
            "description": "Drop studies that started before this date. ISO 8601 partial dates accepted (e.g. `2020`, `2020-01`, `2020-01-15`)."
          },
          "startDateTo": {
            "title": "Study start — to",
            "type": "string",
            "description": "Drop studies that started after this date."
          },
          "primaryCompletionDateFrom": {
            "title": "Primary completion — from",
            "type": "string",
            "description": "Drop studies whose primary completion date is before this date."
          },
          "primaryCompletionDateTo": {
            "title": "Primary completion — to",
            "type": "string",
            "description": "Drop studies whose primary completion date is after this date."
          },
          "completionDateFrom": {
            "title": "Study completion — from",
            "type": "string",
            "description": "Drop studies whose completion date is before this date."
          },
          "completionDateTo": {
            "title": "Study completion — to",
            "type": "string",
            "description": "Drop studies whose completion date is after this date."
          },
          "firstPostedDateFrom": {
            "title": "First posted — from",
            "type": "string",
            "description": "Drop studies first posted before this date."
          },
          "firstPostedDateTo": {
            "title": "First posted — to",
            "type": "string",
            "description": "Drop studies first posted after this date."
          },
          "resultsFirstPostedDateFrom": {
            "title": "Results first posted — from",
            "type": "string",
            "description": "Drop studies whose results were first posted before this date."
          },
          "resultsFirstPostedDateTo": {
            "title": "Results first posted — to",
            "type": "string",
            "description": "Drop studies whose results were first posted after this date."
          },
          "lastUpdatePostedDateFrom": {
            "title": "Last update posted — from",
            "type": "string",
            "description": "Drop studies last updated before this date."
          },
          "lastUpdatePostedDateTo": {
            "title": "Last update posted — to",
            "type": "string",
            "description": "Drop studies last updated after this date."
          },
          "enrollmentFrom": {
            "title": "Enrollment — minimum",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop studies whose planned or actual enrollment is below this number."
          },
          "enrollmentTo": {
            "title": "Enrollment — maximum",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop studies whose planned or actual enrollment is above this number."
          },
          "containsKeyword": {
            "title": "Contains keyword",
            "type": "string",
            "description": "Client-side filter: keep only records whose title, summary, eligibility, conditions, keywords, or interventions contain this substring (case-insensitive)."
          },
          "documentTypes": {
            "title": "Study documents",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep studies that have any of these documents posted. Empty = no document filter.",
            "items": {
              "type": "string",
              "enum": [
                "PROTOCOL",
                "SAP",
                "ICF"
              ],
              "enumTitles": [
                "Study protocol",
                "Statistical analysis plan (SAP)",
                "Informed consent form (ICF)"
              ]
            },
            "default": []
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lastUpdateDesc",
              "lastUpdateAsc",
              "startDateDesc",
              "startDateAsc",
              "completionDateDesc",
              "completionDateAsc",
              "firstPostedDesc",
              "firstPostedAsc",
              "resultsFirstPostedDesc",
              "resultsFirstPostedAsc",
              "enrollmentDesc",
              "enrollmentAsc"
            ],
            "type": "string",
            "description": "Order of the results returned by ClinicalTrials.gov.",
            "default": "relevance"
          },
          "includeResults": {
            "title": "Include posted results summary",
            "type": "boolean",
            "description": "When enabled, add a compact `results` object (participant-flow/baseline group counts, outcome-measure counts and a 5-item sample, adverse-event counts, limitations) for studies with posted results.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}