---
title: "ClinicalTrials.gov API: clinical trial search as JSON"
description: "ClinicalTrials.gov API for clinical trial search by condition, drug, sponsor, phase and country, plus full study records as JSON. 1 credit per call."
url: https://perceptlayer.com/apis/clinicaltrials
---

[APIs](https://perceptlayer.com/apis) / [Apps and media](https://perceptlayer.com/verticals/apps) / ClinicalTrials.gov

1 credit per call 2 endpoints 3 datapoints 

# ClinicalTrials.gov API

ClinicalTrials.gov API for clinical trial search by condition, drug, sponsor, phase and country, plus full study records as JSON. 1 credit per call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

ClinicalTrials.gov

GET /v1/clinicaltrials/study?id=NCT04368728 

```
{
  "success": true,
  "data": {
    "nct_id": "NCT04368728",
    "title": "Study to Describe the Safety, Tolerability, Immunogenicity, and Efficacy of RNA Vaccine Candidates Against COVID-19 in Healthy Individuals",
    "official_title": "A PHASE 1/2/3, PLACEBO-CONTROLLED, RANDOMIZED, OBSERVER-BLIND, DOSE-FINDING STUDY TO EVALUATE THE SAFETY, TOLERABILITY, IMMUNOGENICITY, AND EFFICACY OF SARS-COV-2 RNA VACCINE CANDIDATES AGAINST COVID-19 IN HEALTHY INDIVIDUALS",
    "status": "completed",
    "study_type": "interventional",
    "phases": [
      "phase2",
      "phase3"
    ],
    "conditions": [
      "SARS-CoV-2 Infection",
      "COVID-19"
    ],
    "interventions": [
      {
        "type": "biological",
        "name": "BNT162b1",
        "description": "Intramuscular injection"
      },
      {
        "type": "biological",
        "name": "BNT162b2",
        "description": "Intramuscular injection"
      },
      {
        "type": "other",
        "name": "Placebo",
        "description": "Intramuscular injection"
      }
    ],
    "lead_sponsor": "BioNTech SE",
    "sponsor_class": "industry",
    "enrollment": 46969,
    "enrollment_type": "actual",
    "start_date": "2020-04-29",
    "primary_completion_date": "2023-02-10",
    "completion_date": "2023-02-10",
    "first_posted": "2020-04-30",
    "last_update_posted": "2026-03-25",
    "has_results": true,
    "countries": [
      "United States",
      "Argentina",
      "Brazil"
    ],
    "location_count": 175,
    "brief_summary": "This is a Phase 1/2/3, randomized, placebo-controlled, observer-blind, dose-finding, vaccine candidate-selection, and efficacy study in healthy individuals.\n\nThe study consists of 2 parts: Phase 1: to identify preferred vaccine candidate(s)…",
    "url": "https://clinicaltrials.gov/study/NCT04368728",
    "org_study_id": "C4591001",
    "organization": "BioNTech SE",
    "keywords": [
      "COVID-19",
      "Coronavirus",
      "Vaccine"
    ],
    "collaborators": [
      "Pfizer"
    ],
    "design": {
      "allocation": "randomized",
      "intervention_model": "parallel",
      "primary_purpose": "prevention",
      "masking": "triple"
    },
    "arms": [
      {
        "label": "10 µg dose, 18-55 years of age (2 doses)",
        "type": "experimental",
        "interventions": [
          "Biological: BNT162b1",
          "Biological: BNT162b2"
        ]
      },
      {
        "label": "20 µg dose, 18-55 years of age (2 doses)",
        "type": "experimental",
        "interventions": [
          "Biological: BNT162b1",
          "Biological: BNT162b2"
        ]
      },
      {
        "label": "30 µg dose, 18-55 years of age (2 doses)",
        "type": "experimental",
        "interventions": [
          "Biological: BNT162b1",
          "Biological: BNT162b2"
        ]
      }
    ],
    "primary_outcomes": [
      {
        "measure": "Percentage of Participants With Local Reactions Within 7 Days After Dose 1: Phase 1",
        "time_frame": "Within 7 days after Dose 1",
        "description": "Local reactions included redness, swelling and, pain at the injection site, recorded by participants in an electronic diary (e-diary). Redness and swelling were measured and recorded in measuring device units. 1 measuring device unit =0.5 c…"
      },
      {
        "measure": "Percentage of Participants With Local Reactions Within 7 Days After Dose 2: Phase 1",
        "time_frame": "Within 7 days after Dose 2",
        "description": "Local reactions included redness, swelling and, pain at the injection site, recorded by participants in an e-diary. Redness and swelling were measured and recorded in measuring device units. 1 measuring device unit =0.5 cm. Redness and swel…"
      },
      {
        "measure": "Percentage of Participants With Systemic Events Within 7 Days After Dose 1: Phase 1",
        "time_frame": "Within 7 days after Dose 1",
        "description": "Systemic events included fever, fatigue, headache, chills, vomiting, diarrhea, new or worsened muscle pain, new or worsened joint pain recorded by participants or parents/legal guardians of participants using e-diary. Fever=temperature \\>=3…"
      }
    ],
    "secondary_outcomes": [
      {
        "measure": "Geometric Mean Titers (GMTs) of Severe Acute Respiratory Syndrome Coronavirus 2 Neutralizing Titers: Phase 1",
        "time_frame": "7, 21 days after Dose 1; 7, 14 days and 1, 6 months after Dose 2",
        "description": "GMTs of severe acute respiratory syndrome coronavirus 2 neutralizing titers were reported in this outcome measure. SARS-CoV-2 neutralization assay - NT50 and SARS-CoV-2 neutralization assay - NT90 were evaluated and reported in this outcome…"
      },
      {
        "measure": "Geometric Mean Concentrations (GMCs) of Severe Acute Respiratory Syndrome Coronavirus 2: S1-binding and RBD-binding IgG Level Assay: Phase 1",
        "time_frame": "7, 21 days after Dose 1; 7, 14 days and 1, 6 months after Dose 2",
        "description": "GMCs of severe acute respiratory syndrome coronavirus S1-binding and RBD-binding IgG level were reported in this outcome measure."
      },
      {
        "measure": "Geometric Mean Fold Rise (GMFR) of SARS-CoV-2 Neutralizing Titers: Phase 1",
        "time_frame": "7, 21 days after Dose 1; 7, 14 days and 1, 6 months after Dose 2",
        "description": "GMFR of SARS-CoV-2 neutralizing titers were reported in this outcome measure. HIV positive participants excluded."
      }
    ],
    "eligibility": {
      "sex": "all",
      "minimum_age": "12 Years",
      "healthy_volunteers": true,
      "age_groups": [
        "child",
        "adult",
        "older_adult"
      ],
      "criteria": "Inclusion Criteria:\n\n• Male or female participants between the ages of 18 and 55 years, inclusive, 65 and 85 years, inclusive, or ≥12 years, inclusive, at randomization (dependent upon study phase). For the boostability and protection-again…"
    },
    "locations": [
      {
        "facility": "North Alabama Research Center, LLC",
        "city": "Athens",
        "state": "Alabama",
        "zip": "35611",
        "country": "United States",
        "lat": 34.80243,
        "lon": -86.97219
      },
      {
        "facility": "Birmingham Clinical Research Unit",
        "city": "Birmingham",
        "state": "Alabama",
        "zip": "35216",
        "country": "United States",
        "lat": 33.52066,
        "lon": -86.80249
      },
      {
        "facility": "Medical Affiliated Research Center",
        "city": "Huntsville",
        "state": "Alabama",
        "zip": "35801",
        "country": "United States",
        "lat": 34.7304,
        "lon": -86.58594
      }
    ],
    "references": [
      {
        "pmid": "40396505",
        "type": "derived",
        "citation": "Zorger AM, Hirsch C, Baumann M, Feldmann M, Brockelmann PJ, Mellinghoff S, Monsef I, Skoetz N, Kreuzberger N. Vaccines for preventing infections in adults with haematological malignancies. Cochrane Database Syst Rev. 2025 May 21;5(5):CD0155…"
      },
      {
        "pmid": "40237463",
        "type": "derived",
        "citation": "Hirsch C, Zorger AM, Baumann M, Park YS, Brockelmann PJ, Mellinghoff S, Monsef I, Skoetz N, Kreuzberger N. Vaccines for preventing infections in adults with solid tumours. Cochrane Database Syst Rev. 2025 Apr 16;4(4):CD015551. doi: 10.1002/…"
      },
      {
        "pmid": "39197299",
        "type": "derived",
        "citation": "Pather S, Charpentier N, van den Ouweland F, Rizzi R, Finlayson A, Salisch N, Muik A, Lindemann C, Khanim R, Abduljawad S, Smith ER, Gurwith M, Chen RT; Benefit-Risk Assessment of VAccines by TechnolOgy Working Group (BRAVATO; ex-V3SWG). A …"
      }
    ],
    "mesh_conditions": [
      {
        "id": "D000086382",
        "term": "COVID-19"
      },
      {
        "id": "D018352",
        "term": "Coronavirus Infections"
      }
    ],
    "mesh_interventions": [
      {
        "id": "D000090982",
        "term": "BNT162 Vaccine"
      }
    ],
    "truncated": [
      "eligibility.criteria",
      "locations",
      "secondary_outcomes"
    ],
    "notice": "Source: ClinicalTrials.gov, a service of the U.S. National Library of Medicine. Fields are selected and renamed, long text is shortened where `truncated` says so, and contact emails are left out. last_update_posted is the date ClinicalTrial…"
  },
  "meta": {
    "request_id": "req_c1eb4a5c99764d15a29280d9cc4ba867",
    "credits_charged": 1,
    "credits_remaining": 496
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `study`: the fields and shapes you will get, shortened to 3 items.

| # | type string | name string | description string |
| --- | --- | --- | --- |
| 1 | biological | BNT162b1 | Intramuscular injection |
| 2 | biological | BNT162b2 | Intramuscular injection |
| 3 | other | Placebo | Intramuscular injection |

Recorded from our API · 3 items shown · 3 datapoints per item GET /v1/clinicaltrials/study?id=NCT04368728

3 datapoints

### Identity

-   type string
-   name string

### Other

-   description string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/clinicaltrials/study?id=NCT04368728" \
  -H "X-API-Key: $API_KEY"
```

ClinicalTrials.gov · 2 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/clinicaltrials/studies-search`](https://perceptlayer.com/apis/clinicaltrials/studies-search) | none +9 optional | `nct_id` `title` `official_title` `acronym` `status` `study_type` +17 more | 1 credit |
| [GET `/v1/clinicaltrials/study`](https://perceptlayer.com/apis/clinicaltrials/study) | `id` | `nct_id` `title` `official_title` `study_type` `phases` `conditions` +30 more | 1 credit |

Overview

## About the ClinicalTrials.gov API

## What you can get

The ClinicalTrials.gov API returns study records from ClinicalTrials.gov, the U.S. National Library of Medicine's trial registry, as JSON through 2 endpoints.

-   **Search:** `studies-search` takes at least one of `query`, `condition`, `intervention` or `sponsor`, with `status` (recruiting, not\_yet\_recruiting, active\_not\_recruiting, enrolling\_by\_invitation, completed, suspended, terminated, withdrawn or unknown), `phase` (early\_phase1, phase1, phase2, phase3, phase4, or na for studies without phases), `country` (in English, for example United Kingdom), `limit` (1 to 100, default 20) and `page_token`.
-   **Study:** `study` takes an NCT `id`, for example NCT04368728.

The recorded search for recruiting phase 3 asthma studies found 40 ( `total`), each with `nct_id`, `title`, `official_title`, `acronym`, `status`, `study_type`, `phases`, `conditions`, `interventions`, `lead_sponsor`, `sponsor_class`, `enrollment` and `enrollment_type`, start and completion dates, `first_posted`, `last_update_posted`, `has_results`, `countries`, `location_count`, `brief_summary` and `url`.

The recorded `study` for NCT04368728 named BioNTech SE as lead sponsor and Pfizer as collaborator, with an actual enrollment of 46,969 and a `location_count` of 175. A study record adds `design` ( `allocation`, `intervention_model`, `primary_purpose`, `masking`), `arms`, `primary_outcomes` and `secondary_outcomes` (up to 20 each), `eligibility` ( `sex`, `minimum_age`, `healthy_volunteers`, `age_groups`, `criteria`), up to 50 `locations` with `facility`, `city`, `country`, `lat` and `lon`, up to 20 `references` with their `pmid`, and `mesh_conditions` and `mesh_interventions`. Long text is shortened, and `truncated` lists every field that was cut: in that record, `eligibility.criteria`, `locations` and `secondary_outcomes`.

## How a call works

Search, then open a study: `GET /v1/clinicaltrials/studies-search?condition=asthma&phase=phase3&status=recruiting&limit=10` with your key in the `X-API-Key` header returns each study's `nct_id`, which `study` takes as `id`, for example `GET /v1/clinicaltrials/study?id=NCT04368728`. While `has_more` is true, pass `next_page_token` back as `page_token` for the next page. An NCT id ClinicalTrials.gov doesn't have answers 404. Answers come from a cache for up to an hour. Every successful call costs 1 credit; failed calls cost nothing.

Apps and media JSON REST MCP

### More apps and media APIs

[Apple App Store](https://perceptlayer.com/apis/apple-app-store) [Apple Podcasts](https://perceptlayer.com/apis/apple-podcasts) [arXiv](https://perceptlayer.com/apis/arxiv) [Audible](https://perceptlayer.com/apis/audible) [Bandcamp](https://perceptlayer.com/apis/bandcamp) [Chrome Web Store](https://perceptlayer.com/apis/chrome-web-store) [CISA KEV](https://perceptlayer.com/apis/cisa-kev) [Coursera](https://perceptlayer.com/apis/coursera) [crates.io](https://perceptlayer.com/apis/crates-io) [Crossref](https://perceptlayer.com/apis/crossref) [Discogs](https://perceptlayer.com/apis/discogs) [Docker Hub](https://perceptlayer.com/apis/docker-hub)

Use cases

### Let a patient-support or research agent list recruiting trials for a condition in one country

`Use the ClinicalTrials.gov API to let a patient-support or research agent list recruiting trials for a condition in one country` 

### Track a sponsor's pipeline by phase and recruitment status

`Use the ClinicalTrials.gov API to track a sponsor's pipeline by phase and recruitment status` 

### Pull a trial's eligibility criteria, arms and outcome measures into a screening workflow

`Use the ClinicalTrials.gov API to pull a trial's eligibility criteria, arms and outcome measures into a screening workflow` 

### Map trial sites from the \`lat\` and \`lon\` of each location

`` Use the ClinicalTrials.gov API to map trial sites from the `lat` and `lon` of each location `` 

FAQ

## Questions

**Is this the official ClinicalTrials.gov API?**

No. Perceptlayer is an independent service and is not affiliated with ClinicalTrials.gov or the National Library of Medicine. ClinicalTrials.gov's own Data API is free to call directly, needs no key and slows down callers that send too many requests. This API calls it on your behalf and adds one key for every source on Perceptlayer, flattened records in one response shape, a cache of up to an hour, and no charge for failed calls.

**What attribution does the data need?**

The ClinicalTrials.gov terms ask anyone who redistributes the data to credit ClinicalTrials.gov, show the date each record was processed and say what was changed. Every response carries a \`notice\` for this: "Source: ClinicalTrials.gov, a service of the U.S. National Library of Medicine. Fields are selected and renamed, long text is shortened where \`truncated\` says so, and contact emails are left out." Each study carries its \`last\_update\_posted\` date. Keep both with the data when you show it.

**Are contact details included?**

A study's central contacts come with \`name\`, \`role\` and \`phone\` only. Email addresses are left out, because the ClinicalTrials.gov terms bar using them for marketing.

**Does a study record include results?**

\`has\_results\` says whether results were posted. The record itself covers registration data: design, arms, outcome measures, eligibility, locations and references, not the posted result tables.

**Should I build a ClinicalTrials.gov scraper instead?**

You can, but a ClinicalTrials.gov scraper is code you maintain: page changes break it, requests get blocked, and ClinicalTrials.gov's terms govern how you collect data. The ClinicalTrials.gov API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the ClinicalTrials.gov API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
