clinicaltrials-database

Query ClinicalTrials.gov API v2 for studies and retrieve trial records by NCT ID.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill clinicaltrials-database-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clinicaltrials-database
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/07-%E4%B8%B4%E5%BA%8A%E5%8C%BB%E5%AD%A6%E4%B8%8E%E7%B2%BE%E5%87%86%E5%8C%BB%E7%96%97/clinicaltrials-database
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill clinicaltrials-database-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the manual effort of finding relevant clinical trials by letting you search, retrieve, and export structured data from ClinicalTrials.gov quickly and reliably.

Core Features & Use Cases

  • Condition and status search: Locate recruiting or completed trials for a specific disease/condition and filter by overall status.
  • Intervention/drug and phase discovery: Find trials testing a drug or intervention and narrow by study phase to support research planning.
  • NCT-based retrieval and export: Pull full trial details by NCT ID and export results (JSON/CSV) for analysis, patient matching, or reporting.

Quick Start

Tell your agent to find recruiting trials for breast cancer, then summarize each result with its NCT ID, title, status, and phase, and export the matching set to CSV.

Frequently Asked Questions about clinicaltrials-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search ClinicalTrials.gov and export trial data to CSV?

You can retrieve clinical trial records by querying the ClinicalTrials.gov API v2 with specific NCT IDs, applying filters for phase or status to the search endpoint, and exporting the structured JSON response to CSV for patient matching.

Can I filter clinical trial search results by phase and recruitment status?

Yes, filtering clinical trial search results by recruitment status and study phase is supported. You build parameterized requests to the API v2 search endpoint to narrow results by condition, intervention, status, and phase.

What is the best way to get full clinical trial details using an NCT ID?

The best way to retrieve full clinical trial details using an NCT ID is to query the /studies/{NCT_ID} detail endpoint on ClinicalTrials.gov API v2, which returns the complete trial record for eligibility screening and analysis.

Does the ClinicalTrials.gov API v2 support bulk export of trial datasets?

Yes, bulk export of trial datasets is supported by ClinicalTrials.gov API v2. You handle pagination and rate limits to retrieve multiple trial records, returning structured JSON or CSV files for downstream research and analysis.

What are the limitations of using requests for ClinicalTrials.gov API v2 pagination?

When using requests for ClinicalTrials.gov API v2 pagination, limitations include manually handling rate limits and page tokens. You must build parameterized requests carefully to avoid hitting thresholds when retrieving large trial datasets.