# TrialBase DB

> Search clinical trials from registries worldwide and watch for new or changed trials that match your filters.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/trialbase-db

## Actions

### Get coverage

Get the current release's date and how many trials TrialBase holds.

**Inputs**: None.

**Outputs**

- `data` (object): The response from TrialBase DB.

**Example output**

```json
{
  "data": {
    "dataset": {
      "id": "trials",
      "name": "TrialBase DB"
    },
    "snapshot": {
      "row_count": 679083,
      "version": "2026-07-18"
    },
    "total_records": {
      "count": 679083,
      "label": "Canonical trials"
    }
  }
}
```

### Get trial

Get one clinical trial's full record by its TrialBase ID.

**Inputs**

- Trial ID (`id`, number, required): The trial's TrialBase ID, from Search trials. At least 1.

**Outputs**

- `data` (object): The response from TrialBase DB.

**Example output**

```json
{
  "data": {
    "brief_title": "Effectiveness of an intimate partner violence intervention to reduce detection gaps among diverse ethnic groups of women",
    "conditions": [
      "Intimate partner violence (IPV)"
    ],
    "countries": [
      "Israel"
    ],
    "enrollment_count": 3829,
    "id": 679751,
    "primary_registry": "isrctn",
    "registry_id": "ISRCTN17465883",
    "source_record_url": "https://www.isrctn.com/ISRCTN17465883",
    "start_date": "2022-06-07",
    "study_type": "INTERVENTIONAL"
  }
}
```

### Search trials

Search clinical trials from ClinicalTrials.gov, EU registries, ISRCTN and DRKS by condition, sponsor, country, status and more.

**Inputs**

- Search (`q`, text): Words or a registry ID to search for, such as ISRCTN17465883.
- Condition (`condition`, text): Only trials studying this condition, such as Breast cancer.
- Intervention (`intervention`, text): Only trials testing this drug, device or other intervention.
- Sponsor (`sponsor`, text): Only trials with this lead sponsor.
- Country (`country`, text): Only trials with a location in this country, such as Germany.
- Status (`status`, text): Only trials with this status, such as recruiting, completed, terminated, suspended or unknown.
- Phase (`phase`, text): Only trials in this phase, as the registry reports it.
- Study type (`study_type`, text): Only trials of this type, such as interventional or observational.
- Registry (`registry`, text): Only trials whose main record is in this registry. One of: `clinicaltrials-gov` (ClinicalTrials.gov), `eu-ctis` (EU CTIS), `eudract`, `isrctn`, `drks` (German Clinical Trials Register (DRKS)).
- Page size (`limit`, number): How many trials a page holds, up to 100. TrialBase uses 20 when empty. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.
- Count all (`count`, true/false): Turn on to also get how many trials match. It makes the search slower.

**Outputs**

- `data` (object): The response from TrialBase DB.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "brief_title": "Effectiveness of an intimate partner violence intervention to reduce detection gaps among diverse ethnic groups of women",
        "countries": [
          "Israel"
        ],
        "enrollment_count": 3829,
        "id": 679751,
        "primary_registry": "isrctn",
        "registry_id": "ISRCTN17465883",
        "start_date": "2022-06-07",
        "status": "unknown",
        "study_type": "INTERVENTIONAL"
      }
    ],
    "has_more": true,
    "next_cursor": "eyJhIjoxNjc4fQ",
    "total": 1
  }
}
```
