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

# Clinical trials

> ClinicalTrials.gov studies with their sponsors, outcomes and links to Pav programs and companies.

## Overview

Each trial is a ClinicalTrials.gov study, keyed by its NCT id, with the
registry's title, phase, status, dates, conditions, enrollment and primary
outcomes. Pav adds the links: the Pav programs matched to the trial, and the
Pav companies that sponsor it or own those programs.

Questions this dataset answers:

* Which Phase 3 obesity trials are recruiting now, and who sponsors them?
* Which trials back a given program, and what are their primary endpoints?
* What are a sponsor's newest trials?

## Coverage

| Source                      | Links                                             | Total counts                                      |
| --------------------------- | ------------------------------------------------- | ------------------------------------------------- |
| ClinicalTrials.gov registry | Pav programs and sponsor companies, where matched | Not returned; `pagination.total` is always `null` |

## Key fields

| Field                                                                                                          | Description                                                                                       |
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `nct_id`, `nct_url`                                                                                            | Registry id and study URL.                                                                        |
| `title`                                                                                                        | Study title.                                                                                      |
| `phase`                                                                                                        | Registry phase, e.g. `PHASE3`. Multi-phase studies list each phase separated by a pipe character. |
| `status`                                                                                                       | Registry status, e.g. `RECRUITING`, `COMPLETED`.                                                  |
| `sponsor`                                                                                                      | Lead sponsor name as registered.                                                                  |
| `study_type`, `conditions[]`, `enrollment_count`                                                               | Registry metadata.                                                                                |
| `start_date`, `primary_completion_date`, `completion_date`, `last_update_post_date`, `results_first_post_date` | Registry dates.                                                                                   |
| `primary_outcomes[]`                                                                                           | Primary outcome measures with time frames.                                                        |
| `lead_sponsor`, `collaborators[]`, `sponsors[]`                                                                | Sponsors with their role and, when linked, Pav `company_id`.                                      |
| `company_ids[]`                                                                                                | Pav companies linked to the trial as sponsor or through their programs.                           |
| `programs[]`                                                                                                   | Pav programs linked to the trial.                                                                 |

## Endpoints

| Endpoint                                | Use                                                                 |
| --------------------------------------- | ------------------------------------------------------------------- |
| `GET /v1/trials`                        | Search (`q`) or browse trials.                                      |
| `GET /v1/trials/{nct_id}`               | One trial.                                                          |
| `GET /v1/companies/{company_id}/trials` | Trials linked to one company. See [Companies](/datasets/companies). |

## Filters

| Parameter           | Matches                                                                           | Example                                |
| ------------------- | --------------------------------------------------------------------------------- | -------------------------------------- |
| `q`                 | Relevance-ranked search that matches meaning as well as exact words.              | `KRAS G12C non-small cell lung cancer` |
| `phase`             | Trial phase; any listed phase matches. Case and format are normalized.            | `Phase 3` or `PHASE3`                  |
| `status`            | Recruitment status. Case and format are normalized.                               | `Recruiting`                           |
| `sponsor`           | Lead sponsor, exact name as registered (case-sensitive).                          | `Eli Lilly and Company`                |
| `study_type`        | Study type.                                                                       | `Interventional`                       |
| `nct_id`            | Specific trials. Repeatable.                                                      | `NCT04184622`                          |
| `sort`, `direction` | Browse order (not with `q`): `start_date`, `last_update`, `enrollment`, `nct_id`. | `sort=start_date&direction=desc`       |
| `limit`, `offset`   | Page size (1–1000, default 100). `offset + limit` must be at most 1000.           | `limit=50`                             |

<Warning>
  `/v1/trials` returns `422` for `condition`, `start_date_from`,
  `start_date_to`, `include_total`, `sort` together with `q`, and
  `offset + limit` above 1000. Use `q` for conditions ("obesity"), and narrow
  with `phase`, `status` and `sponsor`.
</Warning>

## Search recruiting trials

<CodeGroup>
  ```bash cURL theme={null}
  curl -G https://api.pav.bio/v1/trials \
    -H "Authorization: Bearer $PAV_API_KEY" \
    --data-urlencode "q=obesity" \
    --data-urlencode "phase=Phase 3" \
    --data-urlencode "status=Recruiting" \
    --data-urlencode "limit=3"
  ```

  ```python Python theme={null}
  import os
  import requests

  resp = requests.get(
      "https://api.pav.bio/v1/trials",
      headers={"Authorization": f"Bearer {os.environ['PAV_API_KEY']}"},
      params={"q": "obesity", "phase": "Phase 3", "status": "Recruiting", "limit": 3},
  )
  resp.raise_for_status()
  for t in resp.json()["data"]:
      print(t["nct_id"], "|", t["sponsor"], "|", t.get("enrollment_count"), "|", t["title"][:60])
  ```

  ```javascript JavaScript theme={null}
  const params = new URLSearchParams({ q: "obesity", phase: "Phase 3", status: "Recruiting", limit: "3" });
  const resp = await fetch(`https://api.pav.bio/v1/trials?${params}`, {
    headers: { Authorization: `Bearer ${process.env.PAV_API_KEY}` },
  });
  const { data } = await resp.json();
  for (const t of data) console.log(t.nct_id, "|", t.sponsor, "|", t.enrollment_count, "|", t.title.slice(0, 60));
  ```
</CodeGroup>

```json Example response (trimmed) theme={null}
{
  "data": [
    {
      "nct_id": "NCT07284875",
      "title": "Efficacy and Safety of Ribupatide in Participants Living With Obesity or Overweight With Weight-Related Comorbidities Who Do Not Have Diabetes",
      "phase": "PHASE3",
      "status": "RECRUITING",
      "sponsor": "Kailera",
      "enrollment_count": 2340,
      "start_date": "2025-12-18",
      "company_ids": [1983]
    },
    {
      "nct_id": "NCT07794579",
      "title": "A Study of Orforglipron in Participants With Overweight at Risk of Development of Obesity-Related Complications or Progression to Class 1 Obesity",
      "phase": "PHASE3",
      "status": "RECRUITING",
      "sponsor": "Eli Lilly and Company",
      "enrollment_count": 2001,
      "start_date": "2026-08-26",
      "company_ids": [218]
    }
  ],
  "pagination": { "limit": 3, "offset": 0 }
}
```

## A sponsor's newest trials

Browse without `q` to sort. `sponsor` must match the registered name exactly.

<CodeGroup>
  ```bash cURL theme={null}
  curl -G https://api.pav.bio/v1/trials \
    -H "Authorization: Bearer $PAV_API_KEY" \
    --data-urlencode "sponsor=Eli Lilly and Company" \
    --data-urlencode "sort=start_date" \
    --data-urlencode "direction=desc" \
    --data-urlencode "limit=3"
  ```

  ```python Python theme={null}
  import os
  import requests

  resp = requests.get(
      "https://api.pav.bio/v1/trials",
      headers={"Authorization": f"Bearer {os.environ['PAV_API_KEY']}"},
      params={"sponsor": "Eli Lilly and Company", "sort": "start_date", "direction": "desc", "limit": 3},
  )
  resp.raise_for_status()
  for t in resp.json()["data"]:
      print(t["start_date"], t["nct_id"], t["phase"], t["title"][:60])
  ```

  ```javascript JavaScript theme={null}
  const params = new URLSearchParams({
    sponsor: "Eli Lilly and Company",
    sort: "start_date",
    direction: "desc",
    limit: "3",
  });
  const resp = await fetch(`https://api.pav.bio/v1/trials?${params}`, {
    headers: { Authorization: `Bearer ${process.env.PAV_API_KEY}` },
  });
  const { data } = await resp.json();
  for (const t of data) console.log(t.start_date, t.nct_id, t.phase, t.title.slice(0, 60));
  ```
</CodeGroup>

## Get one trial

```bash theme={null}
curl https://api.pav.bio/v1/trials/NCT04184622 \
  -H "Authorization: Bearer $PAV_API_KEY"
```

```json Example response (trimmed) theme={null}
{
  "nct_id": "NCT04184622",
  "title": "A Study of Tirzepatide (LY3298176) in Participants With Obesity or Overweight",
  "phase": "PHASE3",
  "status": "COMPLETED",
  "sponsor": "Eli Lilly and Company",
  "conditions": ["Overweight", "Obesity"],
  "enrollment_count": 2539,
  "lead_sponsor": { "name": "Eli Lilly and Company", "role": "lead_sponsor", "company_id": 218, "short_name": "eli_lilly" },
  "company_ids": [218],
  "programs": [
    { "program_id": 1834, "company_id": 218, "drug": "Tirzepatide", "indication": "Morbidity and Mortality in Obesity" }
  ],
  "start_date": "2019-12-04",
  "primary_completion_date": "2022-04-01",
  "results_first_post_date": "2023-04-24",
  "primary_outcomes": [
    { "measure": "Percent Change From Baseline in Body Weight (Primary Treatment Period)", "time_frame": "Baseline, Week 72" }
  ]
}
```

## Related

* [Programs](/datasets/programs): each program lists its `clinical_trials[]`.
* [Companies](/datasets/companies): `GET /v1/companies/{company_id}/trials`.
* [Search and filters](/concepts/search-and-filters)
