clinicaltrials-api-v2

clinicaltrials-api-v2 is a skill for Claude Code, Codex from wentorai/research-plugins. It costs 20 tokens per session (2,174 once invoked), scanned A, original, MIT.

A newer programming interface for searching and analysing ClinicalTrials.gov, the public registry of clinical studies maintained by the US National Library of Medicine. It provides structured JSON data, filtering, pagination, and statistics without requiring an API key.

In plain words
What is it for?
Use it to search studies, inspect trial details, collect registry data, analyse trends, or build research tools around clinical-trial records.
Why use it?
It makes large-scale trial searches easier to automate and process than browsing the registry manually. Its filtering and pagination help applications retrieve only the records or fields they need.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to search studies, inspect trial details, collect registry data, analyse trends, or build research tools around clinical-trial records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wentorai/research-plugins/clinicaltrials-api-v2
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wentorai/research-plugins --skill clinicaltrials-api-v2
Clone the repo
git clone --depth 1 https://github.com/wentorai/research-plugins

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clinicaltrials-api-v2

README.md
[![agentmods](https://agentmods.dev/badge/skills/wentorai/research-plugins/clinicaltrials-api-v2/github.svg)](https://agentmods.dev/skills/wentorai/research-plugins/clinicaltrials-api-v2)
Your own site
<a href="https://agentmods.dev/skills/wentorai/research-plugins/clinicaltrials-api-v2"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/clinicaltrials-api-v2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clinicaltrials-api-v2

Your own site · 80×15
<a href="https://agentmods.dev/skills/wentorai/research-plugins/clinicaltrials-api-v2"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/clinicaltrials-api-v2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.02174
Opus 5 $0.00010 $0.01087
Sonnet 5 $0.00004 $0.00435
Haiku 4.5 $0.00002 $0.00217

Measured 6d ago against content hash ecf030dad486, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

clinicaltrials-api-v2 scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl "https://clinicaltrials.gov/api/v2/studies?query.cond=diabetes&query.intr=metformin&pageSize=1&fields=NCTId,BriefTitle,OverallStatus"
skills/domains/biomedical/clinicaltrials-api-v2/SKILL.md · 217 lines

How it starts

The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ClinicalTrials.gov v2 API Guide

Overview

ClinicalTrials.gov is the world's largest clinical trial registry, maintained by the U.S. National Library of Medicine (NLM) at NIH. It contains over 576,000 study records from 220+ countries covering interventional trials, observational studies, and expanded access programs. The v2 API provides structured JSON access with field-level filtering, cursor-based pagination, and statistics endpoints.

Key v2 improvements over the legacy API: JSON-native responses, sparse field selection via the fields parameter, nextPageToken pagination, and dedicated statistics endpoints. Study data is organized into protocolSection (sponsor-submitted) and derivedSection (NLM-computed).

Authentication

No authentication required. All endpoints are publicly accessible without API keys or registration. Users should comply with NCBI usage policies and maintain reasonable request rates.

Core Endpoints

Search Studies

  • URL: GET https://clinicaltrials.gov/api/v2/studies
  • Parameters:
Parameter Type Required Description
query.term string No Free-text search across all fields
query.cond string No Condition or disease filter
query.intr string No Intervention or treatment filter
query.spons string No Sponsor or collaborator filter
filter.overallStatus string No RECRUITING, COMPLETED, ACTIVE_NOT_RECRUITING, etc.
filter.phase string No EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA
filter.geo string No Geographic filter (distance(lat,lng,dist))
fields string No Comma-separated fields for sparse response
sort string No Sort field and direction (e.g., LastUpdatePostDate:desc)
pageSize int No Results per page (default 10, max 1000)
pageToken string No Cursor token for next page
format string No json (default) or csv
  • Example:

Read the full file on GitHub · 217 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 217 lines · 20 tokens per session scan A ecf030dad486

Subscribe to this mod's changes

clinicaltrials-api-v2 is a skill published in the GitHub repository wentorai/research-plugins (291 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 2,174 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens