clinicaltrials-database

Query ClinicalTrials.gov API v2 to search and export trial data.

21|1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/OwnLabAI/ownlab --skill clinicaltrials-database-ownlabai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clinicaltrials-database
Source: https://github.com/OwnLabAI/ownlab/tree/main/mart/skills/scientific-skills/clinicaltrials-database
Command: npx skills add https://github.com/OwnLabAI/ownlab --skill clinicaltrials-database-ownlabai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Clinical researchers and data scientists need reliable, programmatic access to up-to-date clinical trial data for discovery, analysis, patient matching, and regulatory reporting. This skill provides a structured interface to search ClinicalTrials.gov API v2, fetch detailed trial information, and export results for downstream workflows.

Core Features & Use Cases

  • Search by condition, intervention, location, sponsor, and status to locate relevant trials.
  • Retrieve detailed study information including eligibility, locations, and status, enabling thorough reviews.
  • Export results to JSON or CSV for analysis, reporting, or integration into patient-matching pipelines.
  • Supports pagination and rank/filters to scale queries across large trial datasets.

Quick Start

Run the provided script to perform a basic search and fetch results.

Frequently Asked Questions about clinicaltrials-database

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

FAQPage Schema
How do I search and export clinical trial data from ClinicalTrials.gov API v2?

You can query the ClinicalTrials.gov API v2 to search by conditions, interventions, locations, statuses, sponsors, and study phases. The skill applies these filters to locate trials, retrieve detailed summaries, and export results to JSON or CSV formats.

Can I filter clinical trials by geolocation and patient matching criteria?

Yes, geolocation filtering and patient matching are supported through API v2 query parameters. You can apply location-based parameters to find trials in specific regions and use eligibility details to match patients to relevant studies.

Does the clinical trials data export handle API pagination and rate limits?

The skill implements pagination to scale queries across large trial datasets and includes robust error handling with rate limit considerations. This ensures complete data retrieval from the ClinicalTrials.gov API v2 without exceeding request thresholds.

What do I need to retrieve clinical trial statuses and study phases programmatically?

You need the requests library and the provided scripts to query the ClinicalTrials.gov API v2. The skill applies parameters to filter by trial statuses and study phases, returning structured data for your research analysis.

What is the best way to download large datasets of clinical trials for research analysis?

Querying the ClinicalTrials.gov API v2 with pagination is the best way to retrieve large trial datasets. You can export the filtered results to CSV or JSON to use directly in downstream research analysis and reporting workflows.

Are there limitations when fetching clinical trial data through the API v2?

Limitations include navigating API v2 rate limits and handling pagination for large result sets. The skill manages these constraints with robust error handling, but very broad queries without specific condition or phase filters may still time out.