> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# ClinicalTrials.gov

> The US National Library of Medicine's registry of clinical studies worldwide: search studies by condition, intervention, sponsor, location or status, and fetch one study's full record.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/clinicaltrials-gov.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=1c05137dd88103089880935619c0687e)

[Web Catalog · Health](https://docs.webrouter.net/data-apis.md?category=health)

No key needed

Endpoints

5

Auth

None

[Vendor docs](https://clinicaltrials.gov/data-api/api)

## Notes

* Keyless.
* Search terms use ClinicalTrials.gov's Essie expression syntax (AND, OR, NOT, AREA\[Field]value, quotes for phrases).
* Paging is by token: a response with nextPageToken has more; pass it as pageToken and repeat every other parameter unchanged (only countTotal, pageSize and pageToken may change). A page can come back with an empty studies list.
* A full study record is large: pass fields (comma- or pipe-separated piece names such as NCTId,BriefTitle,OverallStatus) to keep responses small. /studies/metadata lists the field names.

## Endpoints

GET

Search clinical studies

Studies matching query and filter parameters, one page at a time, as JSON or CSV.

[Open](#clinicaltrials-gov-studies-search)

GET

Get one study by NCT number

The full record of one study: design, arms, eligibility, locations, contacts, outcomes and results when posted.

[Open](#clinicaltrials-gov-studies-get)

GET

List the study data model's fields

Every field of a study record with its type, for the fields and sort parameters.

[Open](#clinicaltrials-gov-studies-metadata)

GET

List enumeration values

Each enum type (status, phase, study type...) with the fields that use it and its allowed values.

[Open](#clinicaltrials-gov-studies-enums)

GET

Count the values of study fields

Value statistics for leaf fields across all studies, e.g. how many studies have each overall status or phase.

[Open](#clinicaltrials-gov-stats-field-values)

### Search clinical studies

GET

`/studies`

`clinicaltrials-gov.studies.search`

Studies matching query and filter parameters, one page at a time, as JSON or CSV.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query_cond`</td><td>string</td><td>query</td><td>Condition or disease, in Essie syntax. Example `lung cancer`</td></tr>

    <tr>
      <td>
        `query_term`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Other terms, searched across the record.
      </td>
    </tr>

    <tr><td>`query_intr`</td><td>string</td><td>query</td><td>Intervention or treatment. Example `pembrolizumab`</td></tr>

    <tr>
      <td>
        `query_locn`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Location terms (city, state, country, facility).
      </td>
    </tr>

    <tr>
      <td>
        `query_titles`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Title or acronym.
      </td>
    </tr>

    <tr>
      <td>
        `query_outc`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Outcome measure.
      </td>
    </tr>

    <tr>
      <td>
        `query_spons`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sponsor or collaborator.
      </td>
    </tr>

    <tr>
      <td>
        `query_lead`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Lead sponsor name only.
      </td>
    </tr>

    <tr>
      <td>
        `query_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Study IDs (NCT number, org study ID, secondary IDs).
      </td>
    </tr>

    <tr><td>`filter_overallStatus`</td><td>string</td><td>query</td><td>Comma- or pipe-separated statuses, e.g. RECRUITING,NOT\_YET\_RECRUITING,COMPLETED. Example `RECRUITING`</td></tr>
    <tr><td>`filter_geo`</td><td>string</td><td>query</td><td>distance(latitude,longitude,distance), e.g. distance(39.0035707,-77.1013313,50mi). Example `distance(39.0035707,-77.1013313,50mi)`</td></tr>

    <tr>
      <td>
        `filter_ids`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma- or pipe-separated NCT IDs (aliases match too).
      </td>
    </tr>

    <tr>
      <td>
        `filter_advanced`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Extra filter in Essie syntax, e.g. AREA\[Phase]PHASE3; does not affect ranking.
      </td>
    </tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma- or pipe-separated fields to return; all when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Up to two sort keys, field\[:asc|desc], e.g. LastUpdatePostDate:desc or @relevance. Only date and numeric fields sort; unsorted by default.
      </td>
    </tr>

    <tr>
      <td>
        `countTotal`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true returns totalCount with the first page.
      </td>
    </tr>

    <tr>
      <td>
        `pageSize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Studies per page, default 10, max 1000.
      </td>
    </tr>

    <tr>
      <td>
        `pageToken`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        nextPageToken from the previous page; omit for the first page.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>json (default) or csv; for csv the next page token is in the x-next-page-token header. One of `json`, `csv`</td></tr>
    <tr><td>`markupFormat`</td><td>string</td><td>query</td><td>How markup text fields are formatted in JSON; default markdown. One of `markdown`, `legacy`</td></tr>
  </tbody>
</table>

[Vendor docs](https://clinicaltrials.gov/data-api/api) · Same job: [ISRCTN](https://docs.webrouter.net/data-apis/isrctn.md#isrctn-trials-search)

```python Python theme={null}
router.call_data_api("clinicaltrials-gov.studies.search", {'query_cond': 'lung cancer', 'query_intr': 'pembrolizumab', 'filter_overallStatus': 'RECRUITING', 'filter_geo': 'distance(39.0035707,-77.1013313,50mi)'})
```

```text MCP theme={null}
call_data_api(endpoint="clinicaltrials-gov.studies.search", params={"query_cond": "lung cancer", "query_intr": "pembrolizumab", "filter_overallStatus": "RECRUITING", "filter_geo": "distance(39.0035707,-77.1013313,50mi)"})
```

> [!NOTE]
>
> * With no query or filter every study matches. If a query.\* value holds only NCT IDs, the filters are ignored.
> * filter.\* parameters do not change ranking; query.\* parameters do when sorted by @relevance.

### Get one study by NCT number

GET

`/studies/{nctId}`

`clinicaltrials-gov.studies.get`

The full record of one study: design, arms, eligibility, locations, contacts, outcomes and results when posted.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`nctId` required</td><td>string</td><td>path</td><td>NCT number. Example `NCT04852770`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma- or pipe-separated fields to return; all when omitted.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>Default json. One of `json`, `csv`, `json.zip`, `fhir.json`, `ris`</td></tr>
    <tr><td>`markupFormat`</td><td>string</td><td>query</td><td>How markup text fields are formatted in JSON; default markdown. One of `markdown`, `legacy`</td></tr>
  </tbody>
</table>

[Vendor docs](https://clinicaltrials.gov/data-api/api) · Same job: [ISRCTN](https://docs.webrouter.net/data-apis/isrctn.md#isrctn-trials-get)

```python Python theme={null}
router.call_data_api("clinicaltrials-gov.studies.get", {'nctId': 'NCT04852770'})
```

```text MCP theme={null}
call_data_api(endpoint="clinicaltrials-gov.studies.get", params={"nctId": "NCT04852770"})
```

> [!NOTE]
>
> * An old NCT number kept as an alias answers with a 301 redirect to the current study.

### List the study data model's fields

GET

`/studies/metadata`

`clinicaltrials-gov.studies.metadata`

Every field of a study record with its type, for the fields and sort parameters.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `includeIndexedOnly`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include indexed-only fields.
      </td>
    </tr>

    <tr>
      <td>
        `includeHistoricOnly`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include fields found only in historic data.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://clinicaltrials.gov/data-api/api)

```python Python theme={null}
router.call_data_api("clinicaltrials-gov.studies.metadata")
```

```text MCP theme={null}
call_data_api(endpoint="clinicaltrials-gov.studies.metadata")
```

### List enumeration values

GET

`/studies/enums`

`clinicaltrials-gov.studies.enums`

Each enum type (status, phase, study type...) with the fields that use it and its allowed values.

Input

No inputs.

[Vendor docs](https://clinicaltrials.gov/data-api/api) · Same job: [AlienVault OTX (LevelBlue Open Threat Exchange)](https://docs.webrouter.net/data-apis/alienvault-otx.md#alienvault-otx-indicator-types-list), [CIRCL hashlookup](https://docs.webrouter.net/data-apis/circl-hashlookup.md#circl-hashlookup-info), [crates.io](https://docs.webrouter.net/data-apis/crates-io.md#crates-io-categories-list), [Event Registry (NewsAPI.ai)](https://docs.webrouter.net/data-apis/event-registry.md#event-registry-suggest-concepts), [Have I Been Pwned](https://docs.webrouter.net/data-apis/haveibeenpwned.md#haveibeenpwned-data-classes-list), [Hybrid Analysis](https://docs.webrouter.net/data-apis/hybrid-analysis.md#hybrid-analysis-environments-list)

```python Python theme={null}
router.call_data_api("clinicaltrials-gov.studies.enums")
```

```text MCP theme={null}
call_data_api(endpoint="clinicaltrials-gov.studies.enums")
```

### Count the values of study fields

GET

`/stats/field/values`

`clinicaltrials-gov.stats.field_values`

Value statistics for leaf fields across all studies, e.g. how many studies have each overall status or phase.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`fields`</td><td>string</td><td>query</td><td>Comma- or pipe-separated piece names or field paths, e.g. OverallStatus,Phase. Example `OverallStatus`</td></tr>

    <tr>
      <td>
        `types`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma- or pipe-separated field types to filter by.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://clinicaltrials.gov/data-api/api)

```python Python theme={null}
router.call_data_api("clinicaltrials-gov.stats.field_values", {'fields': 'OverallStatus'})
```

```text MCP theme={null}
call_data_api(endpoint="clinicaltrials-gov.stats.field_values", params={"fields": "OverallStatus"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.