Data source: ClinicalTrials.gov
https://context.gnist.ai/rest/clinicaltrials/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (5)
search_trialsSearch ClinicalTrials.gov for clinical trials with flexible filters.
Covers 500K+ registered clinical trials worldwide. Returns trial summaries
including NCT ID, title, status, phase, conditions, interventions, and sponsor.
Args:
query: General search term (searches all fields). Examples: "aspirin heart",
"mRNA vaccine", "CRISPR gene therapy".
condition: Filter by condition or disease. Examples: "diabetes",
"breast cancer", "Alzheimer's disease", "COVID-19".
intervention: Filter by intervention/treatment. Examples: "pembrolizumab",
"cognitive behavioral therapy", "radiation".
status: Filter by trial status. One of: RECRUITING, NOT_YET_RECRUITING,
ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED,
ENROLLING_BY_INVITATION, UNKNOWN.
phase: Filter by trial phase. One of: EARLY_PHASE1, PHASE1, PHASE2,
PHASE3, PHASE4, NA.
sponsor: Filter by sponsor organization. Examples: "Pfizer", "NIH",
"Mayo Clinic".
max_results: Number of results to return (1-50, default 10).
Returns:
List of trial summaries with nct_id, brief_title, overall_status, phase,
conditions, interventions, sponsor, start_date, enrollment.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | any | optional | General search term (searches all fields). Examples: "aspirin heart", "mRNA vaccine", "CRISPR gene therapy". |
condition | any | optional | Filter by condition or disease. Examples: "diabetes", "breast cancer", "Alzheimer's disease", "COVID-19". |
intervention | any | optional | Filter by intervention/treatment. Examples: "pembrolizumab", "cognitive behavioral therapy", "radiation". |
status | any | optional | Filter by trial status. One of: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED, ENROLLING_BY_INVITATION, UNKNOWN. |
phase | any | optional | Filter by trial phase. One of: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA. |
sponsor | any | optional | Filter by sponsor organization. Examples: "Pfizer", "NIH", "Mayo Clinic". |
max_results | integer | optional | Number of results to return (1-50, default 10). (default: 10) |
{
"query": "example"
}get_trialGet detailed information about a specific clinical trial by NCT ID.
Returns comprehensive trial details including title, summary, status, phase,
conditions, interventions, sponsor, eligibility criteria, outcomes, and locations.
Args:
nct_id: ClinicalTrials.gov NCT identifier (e.g., "NCT03367897", "NCT04368728").
Found in search_trials results or on clinicaltrials.gov.
Returns:
Full trial record with nct_id, brief_title, official_title, brief_summary,
overall_status, phase, study_type, conditions, interventions (name/type/description),
sponsor, collaborators, start_date, completion_date, enrollment,
eligibility_criteria, primary_outcomes, locations.
| Parameter | Type | Required | Description |
|---|---|---|---|
nct_id | string | required | ClinicalTrials.gov NCT identifier (e.g., "NCT03367897", "NCT04368728"). Found in search_trials results or on clinicaltrials.gov. |
{
"nct_id": "example"
}get_trials_by_conditionFind clinical trials studying a specific condition or disease.
Shortcut for search_trials with condition filter pre-set. Useful for
quickly finding all trials for a disease.
Args:
condition: The condition or disease to search for. Examples: "lung cancer",
"type 2 diabetes", "major depressive disorder", "rheumatoid arthritis".
status: Optional status filter. One of: RECRUITING, NOT_YET_RECRUITING,
ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED,
ENROLLING_BY_INVITATION, UNKNOWN.
max_results: Number of results to return (1-50, default 10).
Returns:
List of trial summaries matching the condition.
| Parameter | Type | Required | Description |
|---|---|---|---|
condition | string | required | The condition or disease to search for. Examples: "lung cancer", "type 2 diabetes", "major depressive disorder", "rheumatoid arthritis". |
status | any | optional | Optional status filter. One of: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED, ENROLLING_BY_INVITATION, UNKNOWN. |
max_results | integer | optional | Number of results to return (1-50, default 10). (default: 10) |
{
"condition": "example"
}get_trials_by_sponsorFind clinical trials run by a specific sponsor organization.
Useful for investigating a company's drug pipeline or an institution's
research portfolio.
Args:
sponsor: Sponsor organization name. Examples: "Pfizer", "Novartis",
"National Cancer Institute", "Mayo Clinic", "Roche".
status: Optional status filter. One of: RECRUITING, NOT_YET_RECRUITING,
ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED,
ENROLLING_BY_INVITATION, UNKNOWN.
max_results: Number of results to return (1-50, default 10).
Returns:
List of trial summaries from the specified sponsor.
| Parameter | Type | Required | Description |
|---|---|---|---|
sponsor | string | required | Sponsor organization name. Examples: "Pfizer", "Novartis", "National Cancer Institute", "Mayo Clinic", "Roche". |
status | any | optional | Optional status filter. One of: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED, ENROLLING_BY_INVITATION, UNKNOWN. |
max_results | integer | optional | Number of results to return (1-50, default 10). (default: 10) |
{
"sponsor": "123456789"
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"feedback": "example"
}Quick Start
curl -X POST "https://context.gnist.ai/rest/clinicaltrials/get_trial" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"nct_id": "example"}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/rest/clinicaltrials/get_trial",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={
"nct_id": "example"
},
)
print(resp.json())