clinicaltrials-database

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

48|6|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill clinicaltrials-database-qinyan-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clinicaltrials-database
Source: https://github.com/qinyan-ai/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/qinyan-ai/qinyan-academic-skills --skill clinicaltrials-database-qinyan-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Enables researchers to discover and export clinical trial data from ClinicalTrials.gov API v2 without manual querying.

Core Features & Use Cases

  • Public API access to search studies by condition, intervention, location, sponsor, and status.
  • Data retrieval and export of study details in JSON or CSV formats for analysis, reporting, or patient matching.
  • Use cases include building patient-matching pipelines, monitoring clinical trial activity, and conducting evidence analyses.

Quick Start

Query trials by condition and export results using the Python helper in scripts/query_clinicaltrials.py.

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 clinical trial data to CSV?

You can search ClinicalTrials.gov API v2 to filter studies by condition, intervention, or sponsor, and export the retrieved clinical trial data to CSV or JSON formats using the included Python helper scripts.

What is the best way to automate clinical trial patient matching using API data?

Automating patient matching involves querying the ClinicalTrials.gov API v2 to retrieve study details and exporting the filtered results to build data pipelines for analysis and patient matching.

Can I use Python requests to handle pagination for ClinicalTrials.gov API v2?

Yes, the tool uses Python requests to access the /api/v2/studies endpoint and includes helper functions specifically designed to manage pagination and extract study details.

Does this tool support filtering clinical trials by location and trial status?

Yes, you can filter clinical trials retrieved from the API by location, sponsor, status, condition, and intervention to locate specific studies for evidence analysis.

What are the limitations of querying ClinicalTrials.gov API v2 for research analysis?

The tool provides basic error handling for API requests and focuses on /api/v2/studies endpoints, which means complex custom queries beyond the supported filters may require additional manual processing.

Do I need Python installed to retrieve and export clinical trial study details?

Yes, Python and the requests library are required dependencies to run the helper scripts that query the API and export the resulting study details to CSV or JSON.