clinicaltrials-database

Query ClinicalTrials.gov API v2 for trials and export results to CSV.

75|7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/jiaxiaojunQAQ/SkillJect --skill clinicaltrials-database-jiaxiaojunqaq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clinicaltrials-database
Source: https://github.com/jiaxiaojunQAQ/SkillJect/tree/main/data/skills_sample/clinicaltrials-database
Command: npx skills add https://github.com/jiaxiaojunQAQ/SkillJect --skill clinicaltrials-database-jiaxiaojunqaq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests.

What problem does it solve?

This skill enables programmatic discovery and retrieval of clinical trials data from ClinicalTrials.gov using API v2, reducing manual search effort and enabling reproducible analyses.

Core Features & Use Cases

  • Search by Condition/Drug/Location: find trials matching medical conditions, interventions, locations, sponsors, and status.
  • Detail Retrieval & Export: fetch full trial details and export summaries to CSV for downstream analysis.
  • Use Case: a researcher quickly builds a dataset of active cancer trials in a given region for meta-analysis.

Quick Start

Query trials by condition using the API and export results to CSV for quick analysis.

Frequently Asked Questions about clinicaltrials-database

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

FAQPage Schema
How do I query ClinicalTrials.gov using the API v2 in Python?

This skill queries ClinicalTrials.gov via API v2 to discover trials using parameters like condition, intervention, location, sponsor, and status. It provides a parameterized interface with format options and error handling for reliable programmatic use.

Can I export clinical trials search results to CSV for bulk analysis?

Yes, this skill supports CSV export for bulk analysis of clinical trials data. You can fetch full trial details and export study summaries to CSV format for downstream analysis and reproducible research.

Does the ClinicalTrials.gov API v2 support pagination for large result sets?

Yes, this skill supports pagination when querying ClinicalTrials.gov API v2. This ensures you can retrieve complete datasets of clinical trials without missing records during programmatic data retrieval and bulk analysis.

Do I need the requests library to retrieve clinical trials data?

Yes, the Python requests library is the required dependency for making HTTP requests to the ClinicalTrials.gov API v2 endpoint. It is necessary to discover trials and retrieve study details programmatically.

What is the best way to find active clinical trials by condition and location?

The best way to find active clinical trials by condition and location is using a parameterized API query. This skill allows searching by condition, location, sponsor, and status, providing formatted results with error handling for reliable research.

Why use API v2 instead of manual search for clinical trials discovery?

Using API v2 reduces manual search effort and enables reproducible analyses. Programmatic discovery allows researchers to quickly build datasets, such as active cancer trials in a specific region, for meta-analysis and bulk data export.