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

# ClinicalTrials.gov

> U.S. clinical trial registry API providing study protocols, recruitment status, results, and eligibility criteria for clinical research worldwide.

U.S. clinical trial registry API providing study protocols, recruitment status, results, and eligibility criteria for clinical research worldwide. Best for medical research workflows, tracking drug development pipelines, and finding ongoing studies for specific conditions. The authoritative registry for clinical trials — unlike OpenFDA (post-market data), ClinicalTrials.gov covers the research phase before drugs reach market. Lava slims study responses by default — drops derivedSection / documentSection / referencesModule, caps locations\[] to 3, and truncates eligibility criteria to a 500-char summary (study-level centralContacts and overallOfficials are preserved); pass filter.mode="full" for the raw response, or filter.\_lava\_verbose / \_lava\_keep\_locations / \_lava\_keep\_results = "true" to expand specific groups.

2 example endpoints available through Lava's AI Gateway. See the [ClinicalTrials.gov API docs](https://clinicaltrials.gov/data-api/about-api) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://clinicaltrials.gov/api/v2` is supported. Clinical trial registry API. Construct URL as [https://clinicaltrials.gov/api/v2/\&#123;endpoint\&#125](https://clinicaltrials.gov/api/v2/\&#123;endpoint\&#125);. Common endpoints: /studies?query.cond=\{condition}, /studies/\{nctId}, /stats/size. The endpoints below are curated examples.</Info>

## Endpoints

### Search studies by condition, intervention, location, or other query params

**GET** `https://clinicaltrials.gov/api/v2/studies?query.cond=diabetes&pageSize=3` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://clinicaltrials.gov/api/v2/studies?query.cond=diabetes&pageSize=3', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fclinicaltrials.gov%2Fapi%2Fv2%2Fstudies%3Fquery.cond%3Ddiabetes%26pageSize%3D3" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Get study by NCT ID

**GET** `https://clinicaltrials.gov/api/v2/studies/NCT04280705` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://clinicaltrials.gov/api/v2/studies/NCT04280705', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fclinicaltrials.gov%2Fapi%2Fv2%2Fstudies%2FNCT04280705" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
