Query ClinicalTrials.gov API v2 for trial data. Search by condition, drug/intervention, location, sponsor, or phase; fetch details by NCT ID; filter by status; paginate; export CSV. For clinical research, patient matching, and trial portfolio analysis.
SkillScore100Maintained
Automatic
◆Clinical / Healthcare pack
Last verified 8/23/2026
What it changes
Passed 22 of 22 test cases with the skill, and 18 of 22 without it.
Without skill82%
With skill100%
Checks it passed that the model alone missed
The response specifies filter.phase as the query parameter key.
The response uses uppercase phase values without spaces such as PHASE2,PHASE3.
The response identifies the rate limit as approximately 50 requests per minute.
and 3 more in the full report
4 fixed18 passed either way0 still failing0 broke
Pass-rate lift
+18 pp
Tokens
+268%
Agent turns
0%
Response time
-37%
Model gemini-3.6-flashMeasured 8/23/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 4
Prompt
I'm querying ClinicalTrials.gov API v2 for Phase 2 and Phase 3 trials. Is the parameter 'phase=2,3' or 'filter.phase=PHASE2,PHASE3'? Explain the proper filter key and exact value representation.
What was checked, without and with the skill
Checked
Without skill
With skill
The response specifies filter.phase as the query parameter key.
Missed
Passed
The response uses uppercase phase values without spaces such as PHASE2,PHASE3.
Missed
Passed
case-06 · gemini-3.6-flash · 8/23/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
Query the ClinicalTrials.gov API v2 (public, no authentication) to search and retrieve clinical trial data worldwide. Supports searching by condition, intervention, location, sponsor, and status; retrieving detailed study information by NCT ID; paginating large result sets; and exporting to CSV.
When to Use
Searching for recruiting clinical trials for a specific condition or disease
Finding trials testing a specific drug, device, or intervention
Locating trials in a specific geographic region for patient referral
Tracking a sponsor's or institution's clinical trial portfolio
Retrieving detailed eligibility criteria, outcomes, and contacts for a specific trial
Analyzing clinical trial trends (phases, enrollment, timelines) across a therapeutic area
Exporting trial data for systematic reviews or meta-analyses
Monitoring trial status changes and results postings
For chemical compound bioactivity data use chembl-database-bioactivity instead; for published literature use pubmed-database
Prerequisites
uv pip install requests pandas
API details:
Base URL: https://clinicaltrials.gov/api/v2
Authentication: None required (public API)
Rate limit: ~50 requests/minute per IP
Response formats: JSON (default), CSV
Max page size: 1000 studies per request
Date format: ISO 8601; text fields use CommonMark Markdown
Quick Start
import requests
import time
CT_API = "https://clinicaltrials.gov/api/v2"