Query the ClinicalTrials.gov API v2 to search for clinical trials, retrieve detailed study protocols, and analyze recruitment status; use when you need to find trials by condition/drug, export results, or verify study details by NCT ID.
65
79%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Evidence Insight/clinicaltrials-db/SKILL.mdreferences/api_reference.md).requests >= 2.28from scripts.query_clinicaltrials import search_studies, get_study_details
def main():
# 1) Search studies (example: recruiting cancer studies)
results = search_studies(
condition="cancer",
status="RECRUITING",
limit=10,
)
print("Search results:")
for i, item in enumerate(results, start=1):
# The exact keys depend on the API fields returned by the implementation.
# Print the raw item to keep this example runnable across field selections.
print(f"\n[{i}] {item}")
# 2) Get study details by NCT ID
nct_id = "NCT01234567"
study = get_study_details(nct_id)
print(f"\n\nStudy details for {nct_id}:")
print(study)
if __name__ == "__main__":
main()condition: Condition/disease term used to match relevant studies.status: Recruitment status filter (e.g., RECRUITING).limit: Maximum number of records to return.get_study_details(nct_id) fetches the full record for a single study identified by its NCT ID and returns the protocol-level information (including eligibility criteria when available).references/api_reference.md.63c61d3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.