{
  "openapi": "3.0.1",
  "info": {
    "title": "ClinicalTrials.gov Scraper - Studies, Sites & Contacts $1/1K",
    "description": "Export clinical trials from the official ClinicalTrials.gov API by condition, drug, sponsor, phase, status and location: sponsors, dates, enrollment, eligibility, sites and published contacts. One row per study or per site. $1 per 1,000.",
    "version": "0.1",
    "x-build-id": "iZKwmRUPOQPJXTq2s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plotpointtech~clinicaltrials-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plotpointtech-clinicaltrials-gov-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/plotpointtech~clinicaltrials-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-plotpointtech-clinicaltrials-gov-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/plotpointtech~clinicaltrials-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-plotpointtech-clinicaltrials-gov-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": {
          "condition": {
            "title": "Condition or disease",
            "type": "string",
            "description": "Disease or condition, e.g. Melanoma, Type 2 Diabetes, Alzheimer Disease. ClinicalTrials.gov also matches synonyms."
          },
          "intervention": {
            "title": "Intervention / drug",
            "type": "string",
            "description": "Drug, device, biologic or procedure name, e.g. pembrolizumab, semaglutide, CAR-T."
          },
          "sponsor": {
            "title": "Sponsor or collaborator",
            "type": "string",
            "description": "Company or institution name, e.g. Pfizer, Novartis, National Cancer Institute. Matches lead sponsors and collaborators unless 'Lead sponsor only' is on."
          },
          "leadSponsorOnly": {
            "title": "Lead sponsor only",
            "type": "boolean",
            "description": "Match the sponsor name against the lead sponsor only (not collaborators).",
            "default": false
          },
          "keywords": {
            "title": "Other keywords",
            "type": "string",
            "description": "Free-text search across the whole record (titles, summaries, keywords, outcomes), e.g. biosimilar, \"decentralized\"."
          },
          "nctIds": {
            "title": "NCT IDs",
            "type": "array",
            "description": "Look up specific studies by NCT number, e.g. NCT04280705. Combine with no other filters (or clear Status) to get exactly these studies.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Overall study status",
            "type": "array",
            "description": "Keep studies with these statuses. Leave empty for all statuses.",
            "items": {
              "type": "string",
              "enum": [
                "RECRUITING",
                "NOT_YET_RECRUITING",
                "ENROLLING_BY_INVITATION",
                "ACTIVE_NOT_RECRUITING",
                "COMPLETED",
                "SUSPENDED",
                "TERMINATED",
                "WITHDRAWN",
                "UNKNOWN",
                "AVAILABLE",
                "NO_LONGER_AVAILABLE",
                "TEMPORARILY_NOT_AVAILABLE",
                "APPROVED_FOR_MARKETING",
                "WITHHELD"
              ],
              "enumTitles": [
                "Recruiting",
                "Not yet recruiting",
                "Enrolling by invitation",
                "Active, not recruiting",
                "Completed",
                "Suspended",
                "Terminated",
                "Withdrawn",
                "Unknown",
                "Expanded access: available",
                "Expanded access: no longer available",
                "Expanded access: temporarily not available",
                "Expanded access: approved for marketing",
                "Withheld"
              ]
            }
          },
          "phase": {
            "title": "Phase",
            "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"
              ]
            }
          },
          "studyType": {
            "title": "Study type",
            "type": "array",
            "description": "Interventional (clinical trials), observational studies or expanded access. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "INTERVENTIONAL",
                "OBSERVATIONAL",
                "EXPANDED_ACCESS"
              ],
              "enumTitles": [
                "Interventional",
                "Observational",
                "Expanded access"
              ]
            }
          },
          "hasResults": {
            "title": "Results posted",
            "enum": [
              "any",
              "with",
              "without"
            ],
            "type": "string",
            "description": "Filter by whether results have been posted on ClinicalTrials.gov.",
            "default": "any"
          },
          "startDateFrom": {
            "title": "Start date from",
            "type": "string",
            "description": "Study start date on or after (YYYY-MM-DD)."
          },
          "startDateTo": {
            "title": "Start date to",
            "type": "string",
            "description": "Study start date on or before (YYYY-MM-DD)."
          },
          "updatedFrom": {
            "title": "Last updated from",
            "type": "string",
            "description": "Record last updated (posted) on or after (YYYY-MM-DD). Useful for weekly monitoring."
          },
          "updatedTo": {
            "title": "Last updated to",
            "type": "string",
            "description": "Record last updated (posted) on or before (YYYY-MM-DD)."
          },
          "country": {
            "title": "Site country",
            "type": "string",
            "description": "Keep studies with at least one site in this country, e.g. United States, Germany, Japan (US, USA and UK are understood)."
          },
          "state": {
            "title": "Site state / region",
            "type": "string",
            "description": "State or region of a site, e.g. California or CA, Ontario, Bavaria."
          },
          "city": {
            "title": "Site city",
            "type": "string",
            "description": "City of a site, e.g. Boston. Combine with state or country to avoid same-named cities."
          },
          "locationText": {
            "title": "Location free text",
            "type": "string",
            "description": "Free-text location search (facility, city, state, country), e.g. \"Mayo Clinic\" or \"Houston, Texas\"."
          },
          "latitude": {
            "title": "Geo search: latitude",
            "type": "string",
            "description": "Find studies with a site within a distance of this point, e.g. 42.3601. Requires longitude."
          },
          "longitude": {
            "title": "Geo search: longitude",
            "type": "string",
            "description": "e.g. -71.0589"
          },
          "distanceMiles": {
            "title": "Geo search: distance (miles)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Radius around the point.",
            "default": 50
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "studies",
              "sites"
            ],
            "type": "string",
            "description": "'One row per study' (sites nested in a list), or 'One row per study site' for site-selection and CRO lead lists.",
            "default": "studies"
          },
          "sitesMatchFiltersOnly": {
            "title": "Sites mode: only sites matching the location filters",
            "type": "boolean",
            "description": "In sites mode, output only the sites that match your city/state/country/geo and site-status filters (not every site of a matching study).",
            "default": true
          },
          "siteStatus": {
            "title": "Sites mode: site recruitment status",
            "type": "array",
            "description": "In sites mode, keep only sites with these statuses, e.g. Recruiting. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "RECRUITING",
                "NOT_YET_RECRUITING",
                "ENROLLING_BY_INVITATION",
                "ACTIVE_NOT_RECRUITING",
                "COMPLETED",
                "SUSPENDED",
                "TERMINATED",
                "WITHDRAWN"
              ],
              "enumTitles": [
                "Recruiting",
                "Not yet recruiting",
                "Enrolling by invitation",
                "Active, not recruiting",
                "Completed",
                "Suspended",
                "Terminated",
                "Withdrawn"
              ]
            }
          },
          "includeContacts": {
            "title": "Include published contacts",
            "type": "boolean",
            "description": "Central and site contacts (names, phones, emails) as the sponsor published them for recruitment. See the README on appropriate use.",
            "default": true
          },
          "includeEligibilityCriteria": {
            "title": "Include full eligibility criteria text",
            "type": "boolean",
            "description": "Add the full inclusion/exclusion criteria text (long).",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lastUpdated",
              "newestStart",
              "oldestStart",
              "enrollment",
              "firstPosted"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many records (studies, or sites in sites mode). You pay per record. 0 = no limit.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}