{
  "openapi": "3.0.1",
  "info": {
    "title": "ClinicalTrials.gov Scraper | Sponsors & Research Sites",
    "description": "Export ClinicalTrials.gov study records with sponsors, eligibility, outcomes, available contacts, complete nested locations and explicit source dates.",
    "version": "0.1",
    "x-build-id": "ApqB3oJ9LayOIyqNE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/peerless_columbine~clinical-trial-sponsor-site-export/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-peerless_columbine-clinical-trial-sponsor-site-export",
        "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/peerless_columbine~clinical-trial-sponsor-site-export/runs": {
      "post": {
        "operationId": "runs-sync-peerless_columbine-clinical-trial-sponsor-site-export",
        "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/peerless_columbine~clinical-trial-sponsor-site-export/run-sync": {
      "post": {
        "operationId": "run-sync-peerless_columbine-clinical-trial-sponsor-site-export",
        "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": {
          "startUrl": {
            "title": "Search URL override",
            "type": "string",
            "description": "Optional ClinicalTrials.gov search or studies-API URL. Its query replaces the separate search filters. The study limit and safety settings still apply. No credentials or other hosts."
          },
          "maxItems": {
            "title": "Study row limit",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many distinct study rows. This is separate from page size and request budget. A large accepted value does not guarantee that a run will finish within its time or charge limit.",
            "default": 10
          },
          "condition": {
            "title": "Condition query",
            "type": "string",
            "description": "Search diseases or conditions, for example type 2 diabetes. Can be combined with the other search fields."
          },
          "otherTerms": {
            "title": "Additional query",
            "type": "string",
            "description": "Search other terms in registry records. Leave empty to omit this query."
          },
          "intervention": {
            "title": "Treatment query",
            "type": "string",
            "description": "Search an intervention, medicine, device or procedure reported in a study."
          },
          "location": {
            "title": "Geographic query",
            "type": "string",
            "description": "Search the registry by place, such as city, region, postal code or country. This filters studies; it does not remove other listed sites from a matching study."
          },
          "studyStatusFilter": {
            "title": "Recruitment selection",
            "enum": [
              "all",
              "recruitingAndNotYetRecruiting"
            ],
            "type": "string",
            "description": "Choose all study statuses or the recruiting and not-yet-recruiting study statuses. A study status does not imply the same status at each site.",
            "default": "all"
          },
          "sex": {
            "title": "Eligible sex",
            "enum": [
              "all",
              "female",
              "male"
            ],
            "type": "string",
            "description": "Restrict study eligibility by sex, or leave unrestricted. This is registry eligibility data, not participant-level data.",
            "default": "all"
          },
          "ageGroups": {
            "title": "Standard age buckets",
            "uniqueItems": true,
            "type": "array",
            "description": "Select any standard age buckets to match. An empty list leaves this filter unset. Manual age bounds are separate filters.",
            "items": {
              "type": "string",
              "enum": [
                "child",
                "adult",
                "older"
              ]
            }
          },
          "ageRangeFrom": {
            "title": "Lower age bound",
            "minimum": 0,
            "type": "number",
            "description": "Optional nonnegative lower eligibility-age bound, expressed in the chosen lower-bound unit."
          },
          "ageRangeFromUnit": {
            "title": "Lower age unit",
            "enum": [
              "years",
              "months",
              "weeks",
              "days",
              "hours",
              "minutes"
            ],
            "type": "string",
            "description": "Unit for the lower age bound. Subyear units remain available.",
            "default": "years"
          },
          "ageRangeTo": {
            "title": "Upper age bound",
            "minimum": 0,
            "type": "number",
            "description": "Optional nonnegative upper eligibility-age bound, expressed in the chosen upper-bound unit. Reversed bounds must be corrected."
          },
          "ageRangeToUnit": {
            "title": "Upper age unit",
            "enum": [
              "years",
              "months",
              "weeks",
              "days",
              "hours",
              "minutes"
            ],
            "type": "string",
            "description": "Unit for the upper age bound. It may differ from the lower-bound unit.",
            "default": "years"
          },
          "acceptsHealthyVolunteers": {
            "title": "Healthy volunteers only",
            "type": "boolean",
            "description": "Enable to require studies that accept healthy volunteers. Leaving this off adds no healthy-volunteer restriction."
          },
          "phases": {
            "title": "Phase selection",
            "uniqueItems": true,
            "type": "array",
            "description": "Choose one or more trial phases. Early Phase 1 uses phase0; notApplicable preserves the registry not-applicable category.",
            "items": {
              "type": "string",
              "enum": [
                "phase0",
                "phase1",
                "phase2",
                "phase3",
                "phase4",
                "notApplicable"
              ]
            }
          },
          "studyTypes": {
            "title": "Study design selection",
            "uniqueItems": true,
            "type": "array",
            "description": "Select study categories, including patient registries and individual, intermediate-size or treatment expanded-access categories. An empty selection adds no type restriction.",
            "items": {
              "type": "string",
              "enum": [
                "interventional",
                "observational",
                "patientRegistry",
                "expandedAccess",
                "expandedAccessIndividual",
                "expandedAccessIntermediate",
                "expandedAccessTreatment"
              ]
            }
          },
          "resultsAvailability": {
            "title": "Posted-results selection",
            "enum": [
              "any",
              "withResults",
              "withoutResults"
            ],
            "type": "string",
            "description": "Require posted results, require their absence, or leave unrestricted. This does not request extraction of results tables.",
            "default": "any"
          },
          "documentTypes": {
            "title": "Uploaded-document selection",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter for uploaded protocol, statistical-analysis-plan or informed-consent documents. Returned document metadata does not download attachment bytes.",
            "items": {
              "type": "string",
              "enum": [
                "protocol",
                "sap",
                "consent"
              ]
            }
          },
          "funderTypes": {
            "title": "Lead sponsor class",
            "uniqueItems": true,
            "type": "array",
            "description": "Select reported sponsor or funder categories. This does not infer an organisation category from its name.",
            "items": {
              "type": "string",
              "enum": [
                "nih",
                "federal",
                "industry",
                "other"
              ]
            }
          },
          "studyStartDateFrom": {
            "title": "Study start from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional from bound for study start, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "studyStartDateTo": {
            "title": "Study start through",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional through bound for study start, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "primaryCompletionDateFrom": {
            "title": "Primary completion from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional from bound for primary completion, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "primaryCompletionDateTo": {
            "title": "Primary completion through",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional through bound for primary completion, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "studyCompletionDateFrom": {
            "title": "Study completion from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional from bound for study completion, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "studyCompletionDateTo": {
            "title": "Study completion through",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional through bound for study completion, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "firstPostedDateFrom": {
            "title": "First registration posting from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional from bound for first registration posting, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "firstPostedDateTo": {
            "title": "First registration posting through",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional through bound for first registration posting, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "resultsFirstPostedDateFrom": {
            "title": "First results posting from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional from bound for first results posting, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "resultsFirstPostedDateTo": {
            "title": "First results posting through",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional through bound for first results posting, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "lastUpdatePostedDateFrom": {
            "title": "Latest study update posting from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional from bound for latest study update posting, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "lastUpdatePostedDateTo": {
            "title": "Latest study update posting through",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional through bound for latest study update posting, written YYYY-MM-DD. Source dates keep their published precision; do not enter a fabricated day into source output."
          },
          "titleOrAcronym": {
            "title": "Study title query",
            "type": "string",
            "description": "Search a study title or acronym."
          },
          "outcomeMeasure": {
            "title": "Outcome query",
            "type": "string",
            "description": "Search reported outcome-measure text."
          },
          "sponsorOrCollaborator": {
            "title": "Sponsor or collaborator query",
            "type": "string",
            "description": "Search organisations named as lead sponsors or collaborators."
          },
          "leadSponsor": {
            "title": "Lead sponsor query",
            "type": "string",
            "description": "Search lead-sponsor names only."
          },
          "studyIds": {
            "title": "Study identifier query",
            "type": "string",
            "description": "Search NCT identifiers or other registry-reported protocol identifiers."
          },
          "facilityName": {
            "title": "Site facility query",
            "type": "string",
            "description": "Search a named study facility. Matching a facility must not discard the other locations of the study."
          },
          "fdaRegulationViolation": {
            "title": "FDAAA annotation filter",
            "type": "boolean",
            "description": "Enable to require the registry FDAAA results-submission violation annotation. This is not an independent legal compliance assessment."
          },
          "sortBy": {
            "title": "Study ordering",
            "enum": [
              "relevance",
              "newestFirst"
            ],
            "type": "string",
            "description": "Choose relevance or newest registrations first. Source sorting and any remaining continuation are recorded by the runtime; this is not a live change-monitoring service.",
            "default": "relevance"
          },
          "pageSize": {
            "title": "Studies per API page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum study count requested per API page. It is not the output limit; a source page may return fewer studies.",
            "default": 5
          },
          "maxRequests": {
            "title": "Total source transport budget",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Limit all source-side transport attempts, including DNS resolution and the registry version request. Stop with explicit coverage status if another page would exceed the budget.",
            "default": 5
          },
          "runTimeoutSecs": {
            "title": "Runtime deadline",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Time budget in seconds for this collection. The platform run timeout may be shorter; completed rows must not be labelled a complete source export after interruption.",
            "default": 240
          },
          "maxResponseBytes": {
            "title": "Response byte limit",
            "minimum": 1024,
            "maximum": 8388608,
            "type": "integer",
            "description": "Maximum accepted response bytes, with streaming and decoded-content checks. An oversized response is an explicit error, not silent field truncation.",
            "default": 8388608
          },
          "maxRecordBytes": {
            "title": "Study row byte limit",
            "minimum": 1024,
            "maximum": 8388608,
            "type": "integer",
            "description": "Maximum encoded bytes for one complete study row, including nested locations and contacts. Oversize rows are reported; fields or sites must not be silently removed to fit.",
            "default": 8388608
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}