skills/43-wentorai-research-plugins/skills/domains/biomedical/clinicaltrials-api/SKILL.md
Clinical trial registry database search API
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research clinicaltrials-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ClinicalTrials.gov is a registry and results database of publicly and privately supported clinical studies conducted around the world, maintained by the U.S. National Library of Medicine (NLM) at the National Institutes of Health (NIH). It contains registration records for over 500,000 clinical trials from more than 220 countries, making it the largest and most comprehensive clinical trial registry in the world.
The ClinicalTrials.gov API provides programmatic access to this vast repository of clinical trial data. Researchers can search for trials by condition, intervention, sponsor, location, phase, status, and many other criteria. The API returns detailed structured data including study design, eligibility criteria, outcome measures, enrollment information, study contacts, and results when available.
Clinical researchers, pharmaceutical companies, systematic reviewers, epidemiologists, public health officials, patient advocacy groups, and health policy analysts use the ClinicalTrials.gov API to monitor the clinical trial landscape, identify recruiting studies, conduct meta-analyses, analyze research trends, and ensure comprehensive evidence coverage in systematic reviews. The database is a critical resource for evidence-based medicine and regulatory compliance.
No authentication required. The ClinicalTrials.gov API is freely accessible without any API key, token, or registration. All endpoints are publicly available. Users are expected to comply with the NCBI usage policies and make requests at a reasonable rate.
Search the ClinicalTrials.gov database and retrieve full study records with comprehensive metadata about trial design, eligibility, interventions, and outcomes.
GET https://clinicaltrials.gov/api/v2/studies| Parameter | Type | Required | Description |
|----------------|--------|----------|------------------------------------------------------------|
| query.term | string | No | Free-text search query across all fields |
| query.cond | string | No | Condition or disease filter |
| query.intr | string | No | Intervention or treatment filter |
| query.spons | string | No | Sponsor or collaborator filter |
| filter.overallStatus | string | No | Status filter: RECRUITING, COMPLETED, ACTIVE_NOT_RECRUITING |
| filter.phase | string | No | Phase filter: PHASE1, PHASE2, PHASE3, PHASE4 |
| filter.geo | string | No | Geographic filter (distance:lat,lng) |
| sort | string | No | Sort field and direction |
| pageSize | int | No | Results per page (default 10, max 1000) |
| pageToken | string | No | Token for next page of results |
| format | string | No | Response format: json (default) or csv |
# Search for recruiting cancer immunotherapy trials
curl "https://clinicaltrials.gov/api/v2/studies?query.cond=cancer&query.intr=immunotherapy&filter.overallStatus=RECRUITING&pageSize=5"
# Search by sponsor
curl "https://clinicaltrials.gov/api/v2/studies?query.spons=NIH&filter.phase=PHASE3&pageSize=10"
totalCount, nextPageToken, and studies array. Each study contains protocolSection with identificationModule (NCT ID, title, organization), statusModule (overall status, start/completion dates), descriptionModule (brief summary, detailed description), conditionsModule (conditions and keywords), designModule (study type, phases, allocation, intervention model), armsInterventionsModule, eligibilityModule (criteria, gender, age range), contactsLocationsModule, and outcomesModule.Retrieve a specific clinical trial by its NCT identifier.
GET https://clinicaltrials.gov/api/v2/studies/{nctId}| Parameter | Type | Required | Description |
|-----------|--------|----------|--------------------------------------------|
| nctId | string | Yes | NCT identifier (e.g., NCT04280705) |
curl "https://clinicaltrials.gov/api/v2/studies/NCT04280705"
No formal rate limits are documented for the ClinicalTrials.gov API. However, the service follows NCBI usage guidelines which recommend no more than 3 requests per second without an API key, and up to 10 requests per second with an NCBI API key. For bulk data access, ClinicalTrials.gov provides downloadable data files at https://clinicaltrials.gov/AllPublicXML.zip and via the AACT (Aggregate Analysis of ClinicalTrials.gov) database at https://aact.ctti-clinicaltrials.org/.
Track actively recruiting trials for a specific disease or condition:
import requests
params = {
"query.cond": "Alzheimer's Disease",
"filter.overallStatus": "RECRUITING",
"filter.phase": "PHASE3",
"pageSize": 20
}
resp = requests.get("https://clinicaltrials.gov/api/v2/studies", params=params)
data = resp.json()
print(f"Found {data['totalCount']} recruiting Phase 3 Alzheimer's trials\n")
for study in data["studies"]:
proto = study["protocolSection"]
ident = proto["identificationModule"]
status = proto["statusModule"]
print(f"{ident['nctId']}: {ident['briefTitle']}")
print(f" Status: {status['overallStatus']}")
print(f" Start: {status.get('startDateStruct', {}).get('date', 'N/A')}")
print()
Perform a comprehensive search for systematic review inclusion screening:
import requests
all_studies = []
page_token = None
while True:
params = {
"query.cond": "type 2 diabetes",
"query.intr": "metformin",
"filter.overallStatus": "COMPLETED",
"pageSize": 100
}
if page_token:
params["pageToken"] = page_token
resp = requests.get("https://clinicaltrials.gov/api/v2/studies", params=params)
data = resp.json()
all_studies.extend(data["studies"])
page_token = data.get("nextPageToken")
if not page_token:
break
print(f"Total completed metformin trials for T2D: {len(all_studies)}")
Extract and analyze study design features for research landscape mapping:
import requests
from collections import Counter
params = {
"query.cond": "COVID-19",
"filter.phase": "PHASE3",
"pageSize": 100
}
resp = requests.get("https://clinicaltrials.gov/api/v2/studies", params=params)
data = resp.json()
sponsors = Counter()
for study in data["studies"]:
org = study["protocolSection"]["identificationModule"].get("organization", {})
sponsors[org.get("fullName", "Unknown")] += 1
print("Top sponsors of Phase 3 COVID-19 trials:")
for sponsor, count in sponsors.most_common(10):
print(f" {sponsor}: {count} trials")
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.