clinicaltrials-database

Query ClinicalTrials.gov API v2 for studies and export results as JSON or CSV.

1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Sologa/codex-pipeline --skill clinicaltrials-database-sologa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clinicaltrials-database
Source: https://github.com/Sologa/codex-pipeline/tree/main/.codex/skills/clinicaltrials-database
Command: npx skills add https://github.com/Sologa/codex-pipeline --skill clinicaltrials-database-sologa

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides programmatic access to the ClinicalTrials.gov database, enabling users to search for and retrieve detailed information about clinical studies worldwide.

Core Features & Use Cases

  • Search Trials: Find trials by condition, drug, location, status, or phase.
  • Retrieve Details: Get comprehensive information for specific trials using NCT IDs.
  • Data Export: Export trial data in CSV format for analysis.
  • Use Case: A researcher needs to find all currently recruiting trials for "type 2 diabetes" in "New York" to identify potential patient cohorts.

Quick Start

Use the clinicaltrials-database skill to search for recruiting trials for "breast cancer".

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 for recruiting trials by condition and location?

You can search ClinicalTrials.gov by querying the API v2 to filter clinical studies by specific medical condition, trial status, and geographic location. This retrieves matching trial data for patient matching or research cohort identification.

Can I retrieve specific clinical trial details using an NCT ID?

Yes, retrieving clinical trial details via an NCT ID is supported. You can query the ClinicalTrials.gov API to fetch comprehensive information for a specific clinical study, returning detailed data for medical research and drug development analysis.

What is the best way to export clinical trial data for analysis?

The best way to export clinical trial data is to retrieve the information from ClinicalTrials.gov and export it in CSV or JSON formats. This allows you to format the clinical study search results for downstream data summarization and analysis.

Does the ClinicalTrials.gov API support advanced filtering by drug and trial phase?

Yes, the ClinicalTrials.gov API supports advanced filtering by drug, trial status, and phase. You can apply these parameters directly in your query to narrow down clinical studies for targeted drug development analysis.

Can I use this to find clinical trials for patient matching across multiple phases?

Yes, you can use this to find clinical trials for patient matching by searching across specified phases. The API v2 supports filtering by phase and condition to identify suitable clinical studies for patient cohorts.

How does pagination work when retrieving large sets of clinical studies?

Pagination is supported natively by the ClinicalTrials.gov API v2 when retrieving large sets of clinical studies. It allows you to systematically fetch search results across multiple pages, ensuring complete data retrieval for analysis.