{
  "openapi": "3.0.1",
  "info": {
    "title": "ClinicalTrials.gov Trials Data - Sponsors, Phases & Sites",
    "description": "Clinical trials from the official ClinicalTrials.gov API v2 as flat rows, one per trial or per site: NCT number, titles, status, phase, conditions, drugs, sponsor, enrollment, dates, countries, results. Pharma pipeline filters. No investigator names or contacts. Unofficial; not affiliated with NLM.",
    "version": "0.1",
    "x-build-id": "B3Fw3QfcXS0w6B9nO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpopendata~us-clinical-trials/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpopendata-us-clinical-trials",
        "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/jpopendata~us-clinical-trials/runs": {
      "post": {
        "operationId": "runs-sync-jpopendata-us-clinical-trials",
        "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/jpopendata~us-clinical-trials/run-sync": {
      "post": {
        "operationId": "run-sync-jpopendata-us-clinical-trials",
        "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": {
          "outputMode": {
            "title": "Output: one row per",
            "enum": [
              "trials",
              "sites"
            ],
            "type": "string",
            "description": "trials = one row per study. sites = one row per study site (facility name, city, state, country and recruitment status of the site, plus the main study fields); with a countries filter only the sites in those countries are returned. You are charged per row, and a large trial can list hundreds of sites.",
            "default": "trials"
          },
          "conditions": {
            "title": "Conditions / diseases",
            "type": "array",
            "description": "Optional. Disease or condition, as on the ClinicalTrials.gov search form (synonyms included), e.g. \"breast cancer\", \"non-small cell lung cancer\", \"type 2 diabetes\". A study matches ANY entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "interventions": {
            "title": "Interventions / drugs",
            "type": "array",
            "description": "Optional. Drug, biologic, device or other intervention name (generic, brand or code names), e.g. \"pembrolizumab\", \"Keytruda\", \"semaglutide\". A study matches ANY entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sponsors": {
            "title": "Sponsors / collaborators",
            "type": "array",
            "description": "Optional. Sponsor or collaborator organisation, e.g. \"Pfizer\", \"Merck Sharp & Dohme LLC\", \"National Cancer Institute (NCI)\". A study matches ANY entry. Searches lead sponsors and collaborators unless 'Lead sponsor only' is on.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "leadSponsorOnly": {
            "title": "Lead sponsor only",
            "type": "boolean",
            "description": "Match Sponsors against the lead sponsor only (not collaborators).",
            "default": false
          },
          "keywords": {
            "title": "Other terms (any field)",
            "type": "array",
            "description": "Optional. Words searched across the whole study record, e.g. \"CAR-T\", \"biosimilar\", \"decentralized\". A study matches ANY entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nctIds": {
            "title": "NCT numbers",
            "type": "array",
            "description": "Optional. Fetch these studies, e.g. \"NCT04368728\" (up to 1,000; study URLs also work). Other filters still apply. NCT numbers that are not returned are listed in RUN_SUMMARY.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Overall status",
            "type": "array",
            "description": "Optional. RECRUITING, NOT_YET_RECRUITING, ENROLLING_BY_INVITATION, ACTIVE_NOT_RECRUITING, COMPLETED, SUSPENDED, TERMINATED, WITHDRAWN, UNKNOWN (and the expanded-access statuses AVAILABLE, NO_LONGER_AVAILABLE, TEMPORARILY_NOT_AVAILABLE, APPROVED_FOR_MARKETING, WITHHELD). Plain words work (\"recruiting\", \"Active, not recruiting\"), as do groups: open (recruiting + not yet recruiting), ongoing, stopped. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "phases": {
            "title": "Phases",
            "type": "array",
            "description": "Optional. EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4 or NA; \"Phase 3\", \"III\", \"3\" and \"1/2\" also work. A study matches if ANY of its phases is listed (a Phase 2/3 study matches PHASE3). Observational studies have no phase.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "studyTypes": {
            "title": "Study types",
            "type": "array",
            "description": "Optional. INTERVENTIONAL (clinical trials), OBSERVATIONAL, EXPANDED_ACCESS. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "interventionTypes": {
            "title": "Intervention types",
            "type": "array",
            "description": "Optional. DRUG, BIOLOGICAL, DEVICE, PROCEDURE, RADIATION, BEHAVIORAL, GENETIC, DIETARY_SUPPLEMENT, COMBINATION_PRODUCT, DIAGNOSTIC_TEST, OTHER (\"drug\", \"vaccine\" and \"biologic\" also work).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "leadSponsorClasses": {
            "title": "Lead sponsor type",
            "type": "array",
            "description": "Optional. INDUSTRY (\"pharma\" also works), NIH, FED (other U.S. federal), OTHER_GOV, NETWORK, OTHER (academic, hospital, non-profit), INDIV, AMBIG, UNKNOWN. Use INDUSTRY for company-sponsored trials.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries / regions",
            "type": "array",
            "description": "Optional. Studies with at least one site in ANY of these countries: names (\"United States\", \"Japan\", \"South Korea\") or ISO codes (\"US\", \"JP\", \"DEU\"), or regions: Europe, European Union (EU), Asia, Africa, North America, Latin America and the Caribbean, South America, Oceania, Middle East. In site mode only the sites in these countries are returned.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "City, state or facility words",
            "type": "array",
            "description": "Optional. Location search words, e.g. \"Boston\", \"Texas\", \"Mayo Clinic\". A study matches ANY entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hasResults": {
            "title": "Results posted",
            "enum": [
              "any",
              "with",
              "without"
            ],
            "type": "string",
            "description": "Filter by whether the study has results posted on ClinicalTrials.gov.",
            "default": "any"
          },
          "startDateFrom": {
            "title": "Study start from",
            "type": "string",
            "description": "Optional. YYYY-MM-DD, YYYY-MM or YYYY, \"today\" or \"30 days ago\". Planned (estimated) start dates count too.",
            "default": ""
          },
          "startDateTo": {
            "title": "Study start to",
            "type": "string",
            "description": "Optional. Last start date, same forms (a month or year means its last day).",
            "default": ""
          },
          "primaryCompletionFrom": {
            "title": "Primary completion from",
            "type": "string",
            "description": "Optional. Earliest primary completion date (estimated or actual), e.g. \"2026-01-01\" — useful for upcoming readouts.",
            "default": ""
          },
          "primaryCompletionTo": {
            "title": "Primary completion to",
            "type": "string",
            "description": "Optional. Latest primary completion date, e.g. \"2026-12-31\".",
            "default": ""
          },
          "firstPostedFrom": {
            "title": "First posted from",
            "type": "string",
            "description": "Optional. Studies first posted (registered) on or after this day, e.g. \"7 days ago\" for new registrations.",
            "default": ""
          },
          "firstPostedTo": {
            "title": "First posted to",
            "type": "string",
            "description": "Optional. Studies first posted on or before this day.",
            "default": ""
          },
          "updatedFrom": {
            "title": "Last update posted from",
            "type": "string",
            "description": "Optional. Studies whose last update was posted on or after this day, e.g. \"7 days ago\" for a weekly monitor.",
            "default": ""
          },
          "updatedTo": {
            "title": "Last update posted to",
            "type": "string",
            "description": "Optional. Studies whose last update was posted on or before this day.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "lastUpdate",
              "firstPosted",
              "startDate",
              "primaryCompletion",
              "enrollment",
              "relevance"
            ],
            "type": "string",
            "description": "Order of the results; with maxItems you get the first N in this order.",
            "default": "lastUpdate"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Ignored for relevance.",
            "default": "desc"
          },
          "maxItems": {
            "title": "Max rows",
            "type": "integer",
            "description": "Maximum rows (1..200000): trials in trial mode, sites in site mode. You are charged per row. The log and RUN_SUMMARY always say how many studies matched in total.",
            "default": 25
          },
          "maxApiRequests": {
            "title": "Max API requests",
            "type": "integer",
            "description": "Hard budget of requests to the API (1..1000), plus one request for the data timestamp. Requests are sent one at a time at least 1.5 s apart. One request returns up to 1,000 trials (100 in site mode). If the budget runs out, the run still succeeds with what it read (complete=false in RUN_SUMMARY).",
            "default": 30
          },
          "advancedFilter": {
            "title": "Advanced filter (search expression)",
            "type": "string",
            "description": "Optional, for experts: a ClinicalTrials.gov search expression added with AND, e.g. AREA[MinimumAge]RANGE[MIN, 18 years] or AREA[DesignAllocation]RANDOMIZED. Syntax: https://clinicaltrials.gov/find-studies/constructing-complex-search-queries",
            "default": ""
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional and normally not needed: the API answers Apify datacenter IPs. If set, one sticky session is used for the whole run (never rotation).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}