Home · Free APIs · clinical trial search

Free clinical trials search API

Test it now, no key


Searching trials by condition is a common first step for patient tools, site finders and market maps in health. ClinicalTrials.gov is the registry itself and has its own free API. The box above runs one condition through our search, which by default asks for recruiting studies, and returns trial ids, phase, sponsor, enrollment and dates.

The official free source: the ClinicalTrials.gov API

It is the registry's own free service. Its documentation page is drawn by script and we could not read it as text on 26 November 2026, so we quote no limit or term from it. Open the official source (linked 26 November 2026).

When the official source is the better choice

Choose the registry's API when you need every field of a study record, advanced filters, or large pulls.

When this call is useful

This call helps when you want a short list in a compact shape, using the same key you use for papers and drug approvals. The total_matching field counts every study on the registry that fits the search (883 in our saved answer), while a single call returns only a short list of them.

What comes back, and what to check

Expect each study's registry id, title, status, phase, study type, listed conditions, lead sponsor, enrollment figure, start date and completion date, with the search that was applied and a link to the same search on the registry. Dates can be a full day or only a month, so parse them with care. An enrollment figure can be a plan rather than a count of people already enrolled. Sponsors are named as registered, and one organization may appear under more than one spelling. Always link the registry record, where eligibility rules, sites and contacts are kept current.

What people do with clinical trial search

Questions

Is this medical advice?

No. It lists registry entries. People should talk to a clinician and read the registry record.

Can I filter by phase?

The answer shows the filters that were applied: condition, intervention, status and phase.

How current is it?

The saved sample was taken on 22 November 2026. A live call is made when you run it.

What “free” means here

Get a free key · Pricing

A real saved answer

Taken 26 November 2026 with long text and long lists shortened, and people lists and abstracts left out.

Show the answer
{
 "query": {
  "condition": "type 2 diabetes",
  "intervention": "",
  "status": "RECRUITING",
  "phase": ""
 },
 "total_matching": 883,
 "returned": 10,
 "studies": [
  {
   "nct_id": "NCT06906627",
   "title": "Implementation pRogram to Improve Screening and Management for CKD in Diabetes (Program 1) (IRIS-CKD)",
   "status": "Recruiting",
   "phase": "N/A",
   "study_type": "INTERVENTIONAL",
   "conditions": [
    "Chronic Kidney Disease(CKD)",
    "Type 2 DM"
   ],
   "lead_sponsor": "Duke University",
   "enrollment": 500,
   "start_date": "2025-10-28",
   "completion_date": "2027-04-01",
   "brief_summary": "IRIS-CKD is an implementation study to improve guideline-recommended screening of chronic kidney disease (CKD) in individuals with type 2 diabetes (T2D) in the United States.",
   "primary_outcomes": []
  },
  {
   "nct_id": "NCT06065930",
   "title": "Adaptive Mechanisms In GRown up ObeSity Study (AMIGROS)",
   "status": "Recruiting",
   "phase": "Not specified",
   "study_type": "OBSERVATIONAL",
   "conditions": [
    "Obesity",
    "Type 2 Diabetes"
   ],
   "lead_sponsor": "Vastra Gotaland Region",
   "enrollment": 45,
   "start_date": "2023-05-05",
   "completion_date": "2025-12-31",
   "brief_summary": "The investigator recently showed that the glycan-binding adipokine galectin-1 increased during overfeeding and that galectin-1 independently could predict type 2 diabetes. Further, the molecules that induce insulin re...",
   "primary_outcomes": []
  }
 ],
 "source": "ClinicalTrials.gov (official US government database)",
 "search_url": "https://clinicaltrials.gov/search?cond=type%202%20diabetes"
}

Code

curl

curl -X POST https://api.foxapis.com/v1/science/clinicaltrials/search \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"condition":"type 2 diabetes"}'

JavaScript

const res = await fetch("https://api.foxapis.com/v1/science/clinicaltrials/search", {
  method: "POST",
  headers: { Authorization: "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"condition":"type 2 diabetes"}),
});
console.log(await res.json());

Python

import requests

res = requests.post(
    "https://api.foxapis.com/v1/science/clinicaltrials/search",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"condition":"type 2 diabetes"},
    timeout=60,
)
print(res.json())

The endpoint page · The use-case page

More free API pages

Free FDA drug approvals API · Free federal contract awards API · Federal contractor check API, free to test · Free GitHub release history API · Free GitHub weekly activity API · All of them

Other names belong to their owners. FoxAPIs is not affiliated with or endorsed by them.