# searchClinicalTrials

**Identifier:** `clinicaltrials_searchClinicalTrials`

**Provider:** [ClinicalTrials](https://kirha.com/providers/clinicaltrials.md)

Search clinical trials from ClinicalTrials.gov. Returns trial summaries with NCT IDs, status, phase, and conditions. Use with getStudyDetails to fetch complete protocol information for specific trials.

## Run it with the CLI

```bash
kirha tools run clinicaltrials_searchClinicalTrials \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "clinicaltrials_searchClinicalTrials",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "locationCountry": {
      "description": "Country where trial sites are located, e.g., France, United States",
      "type": "string"
    },
    "maxResults": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "phases": {
      "items": {
        "enum": [
          "EARLY_PHASE1",
          "PHASE1",
          "PHASE2",
          "PHASE3",
          "PHASE4",
          "NA"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "query": {
      "description": "Search term for clinical trials (e.g., 'Alzheimer's', 'diabetes', 'cancer'), max 2 words, keep it short and use relevant keywords without extra grammar",
      "minLength": 2,
      "type": "string"
    },
    "sortBy": {
      "default": "relevance",
      "enum": [
        "relevance",
        "newest_start",
        "recently_updated"
      ],
      "type": "string"
    },
    "sponsorName": {
      "description": "Lead sponsor, e.g., Sanofi, Pfizer",
      "type": "string"
    },
    "startDateFrom": {
      "description": "Filter trials starting from this date (YYYY-MM-DD)",
      "type": "string"
    },
    "startDateTo": {
      "description": "Filter trials starting until this date (YYYY-MM-DD)",
      "type": "string"
    },
    "statuses": {
      "items": {
        "enum": [
          "RECRUITING",
          "NOT_YET_RECRUITING",
          "ACTIVE_NOT_RECRUITING",
          "COMPLETED",
          "TERMINATED",
          "WITHDRAWN",
          "SUSPENDED",
          "ENROLLING_BY_INVITATION"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "studyType": {
      "enum": [
        "INTERVENTIONAL",
        "OBSERVATIONAL",
        "EXPANDED_ACCESS"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "nctIds": {
      "description": "NCT IDs of found studies for composition with getStudyDetails",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "studies": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "acronym": {
            "type": "string"
          },
          "conditions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "leadSponsor": {
            "type": "string"
          },
          "nctId": {
            "type": "string"
          },
          "phase": {
            "type": "string"
          },
          "sponsorStudyId": {
            "description": "Sponsor's internal protocol number",
            "type": "string"
          },
          "startDate": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "studyType": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "nctId",
          "title",
          "status"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "count",
    "studies",
    "nctIds"
  ],
  "type": "object"
}
```

## Related tools

Other ClinicalTrials tools that this tool refers to, or that refer to it.

- [`getStudyDetails`](https://kirha.com/providers/clinicaltrials/getStudyDetails.md)

-----

[All ClinicalTrials tools](https://kirha.com/providers/clinicaltrials.md) · [< Back to tools list](https://kirha.com/tools.md)