ClinicalTrials.gov search API
One request, one key: POST /v1/science/clinicaltrials/search. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.
Price
5 credits a call. One call is about $0.049 and 1,000 calls are about $49 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.
Try it free
Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.
{
"condition": "type 2 diabetes"
}
What it returns
| Field | Type | Value in the sample |
|---|---|---|
query | object | {"condition":"type 2 diabetes","intervention":"","status":"RECRUITING","phase":""} |
total_matching | number | 0 |
returned | number | 10 |
studies | list | [{"nct_id":"NCT04783441","title":"Use of CGM in Kidney Transplant Recipients","status":"Recruiting","phase"... |
source | string | ClinicalTrials.gov (official US government database) |
search_url | string | https://clinicaltrials.gov/search?cond=type%202%20diabetes |
Sample response (20 November 2026)
{
"query": {
"condition": "type 2 diabetes",
"intervention": "",
"status": "RECRUITING",
"phase": ""
},
"total_matching": 0,
"returned": 10,
"studies": [
{
"nct_id": "NCT04783441",
"title": "Use of CGM in Kidney Transplant Recipients",
"status": "Recruiting",
"phase": "N/A",
"study_type": "INTERVENTIONAL",
"conditions": [
"Kidney Transplant; Complications",
"Diabetes Mellitus, Type 2",
"Insulin Dependent Diabetes"
],
"lead_sponsor": "University of California, Davis",
"enrollment": 80,
"start_date": "2021-06-29",
"completion_date": "2026-12-31",
"brief_summary": "The investigators want to study the impact CGM (continuous glucose monitoring) has on patients glycemic control as determined by time in range (TIR 70-180 mg/dL) in the Diabetic Kidney Transplant population.",
"primary_outcomes": [],
"countries": [
"United States"
],
"clinicaltrials_url": "https://clinicaltrials.gov/study/NCT04783441",
"eligibility_summary": "Inclusion Criteria:\n\n1. Age 18 or above\n2. Received a kidney transplant within the past year with functioning kidney (eGFR \\> 30 mL/min\n3. Person with Type 2 Diabetes and on insulin\n4. Access to home wi-fi connection\n\nExclusion Criteria:\n\n1. Person with Type 1 Diabetes\n2. Patients taking hydroxyurea"
},
{
"nct_id": "NCT07017270",
"title": "Glucagon-like-peptide-1 Receptor Agonists in Patients Receiving Maintenance Dialysis",
"status": "Recruiting",
"phase": "Phase 4",
"study_type": "INTERVENTIONAL",
"conditions": [
"Kidney Disease, Chronic",
"Diabetes",
"Dialysis"
],
"lead_sponsor": "Unity Health Toronto",
"enrollment": 100,
"start_date": "2025-11-27",
"completion_date": "2027-07",
"brief_summary": "This study aims to determine if GLP1RA is safe and tolerable in maintenance dialysis population, adherence, and feasibility of a larger definitive cardiovascular outcome trial in this population. Participants will be randomized 1:1 to either weekly subcutaneous semaglutide versus usual care and foll...",
"primary_outcomes": [],
"countries": [
"Canada"
],
"clinicaltrials_url": "https://clinicaltrials.gov/study/NCT07017270",
"eligibility_summary": "Inclusion Criteria:\n\n1. Age ≥ 18\n2. Receiving chronic maintenance hemodialysis or peritoneal dialysis for ≥ 90 days\n3. confirmed DM2 based on medical history and current or prior receipt of an oral hypoglycemic agent and/or insulin.\n4. Ability to provided informed consent or through their substitute"
},
{
"nct_id": "NCT07664553",
"title": "A Phase III Study to Investigate the Efficacy and Safety of Elecoglipron Compared With Placebo in Adults With Type 2 Diabetes Mellitus on Background Insulin",
"status": "Recruiting",
"phase": "Phase 3",
"study_type": "INTERVENTIONAL",
"conditions": [
"Type 2 Diabetes Mellitus"
],
"lead_sponsor": "AstraZeneca",
"enrollment": 600,
"start_date": "2026-07-08",
"completion_date": "2028-05-23",
"brief_summary": "The purpose of this study is to evaluate the efficacy, safety, and tolerability of elecoglipron compared with placebo in adults with Type 2 Diabetes Mellitus (T2DM), treated with a background insulin and other background glucose-lowering medication(s)",
"primary_outcomes": [],
"countries": [
"India",
"Malaysia",
"China"
],
"clinicaltrials_url": "https://clinicaltrials.gov/study/NCT07664553",
"eligibility_summary": "Inclusion Criteria:\n\n* Diagnosed with T2DM for at least 90 days prior to screening\n* Stable treatment with background insulin and other background glucose-lowering medication(s)\n* HbA1c value of ≥ 7% to ≤ 10.5%\n* Body mass index (BMI) of ≥ 23 kg/m2 at screening\n* Stable body weight (self-reported or"
}
],
"source": "ClinicalTrials.gov (official US government database)",
"search_url": "https://clinicaltrials.gov/search?cond=type%202%20diabetes"
}
Measured on that call: 729 ms.
Code
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"}'n8n (HTTP Request node: paste it into a workflow)
{
"nodes": [
{
"name": "ClinicalTrials.gov search",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
0,
0
],
"parameters": {
"method": "POST",
"url": "https://api.foxapis.com/v1/science/clinicaltrials/search",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer YOUR_KEY"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\"condition\":\"type 2 diabetes\"}"
}
}
],
"connections": {}
}Assistants (Claude, ChatGPT, Cursor)
Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.
claude mcp add --transport http foxapis https://foxapis.com/mcp \ --header "Authorization: Bearer YOUR_KEY"
Errors and limits
- 401: the key is missing or wrong.
- 402: out of credits; top up on the pricing page.
- 422: the input does not match; the answer names the field.
- 429: too many calls too fast; wait a moment and try again.
- 503: the source did not answer; nothing is charged. Live state: status.
Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.
Get my free keySame category: Science and health · all APIs
How we calculate
- Price of one call and of 1,000 calls: The credits per call times the smallest paid plan's price per credit (its monthly price divided by its monthly credits), times 1,000 for the larger figure.
Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.