Skip to content

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/studiesClinical studies that match a search term, with the page's nextCursor.
GET/clinicaltrials/studyOne clinical study by its NCT id, with its summary and interventions.
GET/clinicaltrials/studyEligibilityWho may join one clinical study: the eligibility criteria text, sex, age range and whether healthy volunteers are accepted.
GET/clinicaltrials/studyOutcomesWhat one clinical study measures: its primary and secondary outcomes with their description and time frame.
GET/clinicaltrials/studyLocationsWhere one clinical study takes place: each site with its facility, city, state and country, paged.
GET/clinicaltrials/sizeStatsHow many studies the registry holds and the size of their records.
GET/clinicaltrials/fieldValuesThe most common values of one registry field across all studies, such as the trial phases.

studies

GET/v1/clinicaltrials/studies

Clinical studies that match a search term, with the page's nextCursor.

scope social:read1 unitcached 1 hpaginated

Parameters

query
string
required
Search term, such as diabetes or a drug name.
e.g. diabetes
limit
integer
Studies per page, from 1 to 100.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
conditionsstring[]
idstring
phasesstring[]
sponsorstring
startDatestring
statusstring
titlestring
curl "https://api.hoshime.com/v1/clinicaltrials/studies?query=diabetes" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/study

One clinical study by its NCT id, with its summary and interventions.

scope social:read1 unitcached 6 h

Parameters

id
string
required
NCT id of the study, such as NCT04280705.
e.g. NCT04280705
tunnel
string
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.
proxy
string
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.
profileId
string
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
conditionsstring[]
idstring
interventionsstring[]
officialTitlestring
phasesstring[]
sponsorstring
startDatestring
statusstring
summarystring
titlestring
curl "https://api.hoshime.com/v1/clinicaltrials/study?id=NCT04280705" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/studyEligibility

Who 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

id
string
required
NCT id of the study, such as NCT04280705.
e.g. NCT04280705
tunnel
string
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.
proxy
string
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.
profileId
string
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
criteriastring
healthyVolunteersboolean
maximumAgestring
minimumAgestring
sexstring
stdAgesstring[]
curl "https://api.hoshime.com/v1/clinicaltrials/studyEligibility?id=NCT04280705" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/studyOutcomes

What one clinical study measures: its primary and secondary outcomes with their description and time frame.

scope social:read1 unitcached 6 hpaginated

Parameters

id
string
required
NCT id of the study, such as NCT04280705.
e.g. NCT04280705
tunnel
string
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.
proxy
string
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.
profileId
string
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
descriptionstring
measurestring
timeFramestring
typestring
curl "https://api.hoshime.com/v1/clinicaltrials/studyOutcomes?id=NCT04280705" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/studyLocations

Where one clinical study takes place: each site with its facility, city, state and country, paged.

scope social:read1 unitcached 6 hpaginated

Parameters

id
string
required
NCT id of the study, such as NCT04280705.
e.g. NCT04280705
limit
integer
Items per page, 1 to 200.
default 50
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
citystring
countrystring
facilitystring
statestring
statusstring
zipstring
curl "https://api.hoshime.com/v1/clinicaltrials/studyLocations?id=NCT04280705" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/sizeStats

How many studies the registry holds and the size of their records.

scope social:read1 unitcached 6 h

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
averageSizeBytesinteger (int64)
totalStudiesinteger (int64)
curl "https://api.hoshime.com/v1/clinicaltrials/sizeStats" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/fieldValues

The most common values of one registry field across all studies, such as the trial phases.

scope social:read1 unitcached 24 hpaginated

Parameters

field
string
required
Field name as the registry names it, such as Phase, Status or StudyType.
e.g. Phase
tunnel
string
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.
proxy
string
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.
profileId
string
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
fieldstring
topValuesFieldValue[]
studiesCountinteger (int64)
valuestring
uniqueValuesinteger (int64)
curl "https://api.hoshime.com/v1/clinicaltrials/fieldValues?field=Phase" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open