公
ClinicalTrials.gov API
7 endpointsGovernment & Open DataUSsocial:read4 real examples
Returns clinical studies from ClinicalTrials.gov by search or NCT id, registry size statistics and common field values.
View as Markdown| GET | /clinicaltrials/studies | Clinical studies that match a search term, with the page's nextCursor. |
| GET | /clinicaltrials/study | One clinical study by its NCT id, with its summary and interventions. |
| GET | /clinicaltrials/studyEligibility | Who may join one clinical study: the eligibility criteria text, sex, age range and whether healthy volunteers are accepted. |
| GET | /clinicaltrials/studyOutcomes | What one clinical study measures: its primary and secondary outcomes with their description and time frame. |
| GET | /clinicaltrials/studyLocations | Where one clinical study takes place: each site with its facility, city, state and country, paged. |
| GET | /clinicaltrials/sizeStats | How many studies the registry holds and the size of their records. |
| GET | /clinicaltrials/fieldValues | The most common values of one registry field across all studies, such as the trial phases. |
studies
GET
/v1/clinicaltrials/studiesClinical studies that match a search term, with the page's nextCursor.
scope social:read1 unitcached 1 hpaginated
Parameters
querystring required | Search term, such as diabetes or a drug name. e.g. diabetes |
limitinteger | Studies per page, from 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
conditions | string[] |
id | string |
phases | string[] |
sponsor | string |
startDate | string |
status | string |
title | string |
curl "https://api.hoshime.com/v1/clinicaltrials/studies?query=diabetes" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/clinicaltrials/studies?query=diabetes", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/clinicaltrials/studies?query=diabetes", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "conditions": [ "Diabetes Mellitus, Type 1", "Hypertension" ], "id": "NCT02644590", "phases": [ "EARLY_PHASE1" ], "sponsor": "Sheba Medical Center", "startDate": "2016-02", "status": "UNKNOWN", "title": "The Effect of Melatonin on Early Signs of Hypertension in Teenagers With Diabetes Mellitus Type 1" }, { "conditions": [ "Insulin-Dependent Diabetes Mellitus" ], "id": "NCT00006160", "phases": [ "NA" ], "sponsor": "National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)", "startDate": "", "status": "COMPLETED", "title": "African-American Diabetes Intervention Project" } ], "meta": { "cached": false, "endpoint": "studies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "clinicaltrials", "requestId": "req_2Xb9kQ…", "units": 1 } }
study
GET
/v1/clinicaltrials/studyOne clinical study by its NCT id, with its summary and interventions.
scope social:read1 unitcached 6 h
Parameters
idstring required | NCT id of the study, such as NCT04280705. e.g. NCT04280705 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
conditions | string[] |
id | string |
interventions | string[] |
officialTitle | string |
phases | string[] |
sponsor | string |
startDate | string |
status | string |
summary | string |
title | string |
curl "https://api.hoshime.com/v1/clinicaltrials/study?id=NCT04280705" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/clinicaltrials/study?id=NCT04280705", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/clinicaltrials/study?id=NCT04280705", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "conditions": [ "COVID-19" ], "id": "NCT04280705", "interventions": [ "Placebo", "Remdesivir" ], "officialTitle": "A Multicenter, Adaptive, Randomized Blinded Controlled Trial of the Safety and Efficacy of Investigational Therapeutics for the Treatment of…", "phases": [ "PHASE3" ], "sponsor": "National Institute of Allergy and Infectious Diseases (NIAID)", "startDate": "2020-02-21", "status": "COMPLETED", "summary": "This study is an adaptive, randomized, double-blind, placebo-controlled trial to evaluate the safety and efficacy of novel therapeutic agent…", "title": "Adaptive COVID-19 Treatment Trial (ACTT)" }, "meta": { "cached": false, "endpoint": "study", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "clinicaltrials", "requestId": "req_2Xb9kQ…", "units": 1 } }
studyEligibility
GET
/v1/clinicaltrials/studyEligibilityWho may join one clinical study: the eligibility criteria text, sex, age range and whether healthy volunteers are accepted.
scope social:read1 unitcached 6 h
Parameters
idstring required | NCT id of the study, such as NCT04280705. e.g. NCT04280705 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
criteria | string |
healthyVolunteers | boolean |
maximumAge | string |
minimumAge | string |
sex | string |
stdAges | string[] |
curl "https://api.hoshime.com/v1/clinicaltrials/studyEligibility?id=NCT04280705" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/clinicaltrials/studyEligibility?id=NCT04280705", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/clinicaltrials/studyEligibility?id=NCT04280705", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "criteria": "…", "healthyVolunteers": false, "maximumAge": "…", "minimumAge": "…", "sex": "…", "stdAges": [ "…" ] }, "meta": { "cached": false, "endpoint": "studyEligibility", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "clinicaltrials", "requestId": "req_2Xb9kQ…", "units": 1 } }
studyOutcomes
GET
/v1/clinicaltrials/studyOutcomesWhat one clinical study measures: its primary and secondary outcomes with their description and time frame.
scope social:read1 unitcached 6 hpaginated
Parameters
idstring required | NCT id of the study, such as NCT04280705. e.g. NCT04280705 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
description | string |
measure | string |
timeFrame | string |
type | string |
curl "https://api.hoshime.com/v1/clinicaltrials/studyOutcomes?id=NCT04280705" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/clinicaltrials/studyOutcomes?id=NCT04280705", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/clinicaltrials/studyOutcomes?id=NCT04280705", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "…", "measure": "…", "timeFrame": "…", "type": "…" } ], "meta": { "cached": false, "endpoint": "studyOutcomes", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "clinicaltrials", "requestId": "req_2Xb9kQ…", "units": 1 } }
studyLocations
GET
/v1/clinicaltrials/studyLocationsWhere one clinical study takes place: each site with its facility, city, state and country, paged.
scope social:read1 unitcached 6 hpaginated
Parameters
idstring required | NCT id of the study, such as NCT04280705. e.g. NCT04280705 |
limitinteger | Items per page, 1 to 200. default 50 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
city | string |
country | string |
facility | string |
state | string |
status | string |
zip | string |
curl "https://api.hoshime.com/v1/clinicaltrials/studyLocations?id=NCT04280705" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/clinicaltrials/studyLocations?id=NCT04280705", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/clinicaltrials/studyLocations?id=NCT04280705", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "city": "…", "country": "…", "facility": "…", "state": "…", "status": "…", "zip": "…" } ], "meta": { "cached": false, "endpoint": "studyLocations", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "clinicaltrials", "requestId": "req_2Xb9kQ…", "units": 1 } }
sizeStats
GET
/v1/clinicaltrials/sizeStatsHow many studies the registry holds and the size of their records.
scope social:read1 unitcached 6 h
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
averageSizeBytes | integer (int64) |
totalStudies | integer (int64) |
curl "https://api.hoshime.com/v1/clinicaltrials/sizeStats" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/clinicaltrials/sizeStats", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/clinicaltrials/sizeStats", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "averageSizeBytes": 17319, "totalStudies": 610756 }, "meta": { "cached": false, "endpoint": "sizeStats", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "clinicaltrials", "requestId": "req_2Xb9kQ…", "units": 1 } }
fieldValues
GET
/v1/clinicaltrials/fieldValuesThe most common values of one registry field across all studies, such as the trial phases.
scope social:read1 unitcached 24 hpaginated
Parameters
fieldstring required | Field name as the registry names it, such as Phase, Status or StudyType. e.g. Phase |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
field | string |
topValues | FieldValue[] |
studiesCount | integer (int64) |
value | string |
uniqueValues | integer (int64) |
curl "https://api.hoshime.com/v1/clinicaltrials/fieldValues?field=Phase" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/clinicaltrials/fieldValues?field=Phase", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/clinicaltrials/fieldValues?field=Phase", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "field": "Phase", "topValues": [ { "studiesCount": 240818, "value": "NA" }, { "studiesCount": 90926, "value": "PHASE2" } ], "uniqueValues": 6 } ], "meta": { "cached": false, "endpoint": "fieldValues", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "clinicaltrials", "requestId": "req_2Xb9kQ…", "units": 1 } }