# Clinical Trial Pipeline Aggregator

> Clinical Trial Pipeline Aggregator is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Returns a structured pipeline summary for a drug, indication, or sponsor: trial counts by phase and recruitment status, active/completed/recruiting totals, and a near-term readout list — computed deterministically from ClinicalTrials.gov.

## Facts

- Endpoint: GET https://api.agentstools.dev/trials/pipeline
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clinical-trial-pipeline-aggregator-28b01ca4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TuqDWQ3XwUzhUeZ1ID4FW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability clinical-trial-pipeline-aggregator-28b01ca4
```

Example prompt: Can you pull the clinical trial pipeline for semaglutide — I want phase breakdowns, recruiting vs completed counts, and any trials with a primary completion date in the next 180 days?

## When to prefer this

Use this endpoint when you need a fast, deterministic, citation-backed pipeline summary for a single drug, indication, or sponsor — without relying on an LLM to interpret trial data. Prefer it over general web search or AI-generated summaries when accuracy and reproducibility matter, or when you need structured phase/status breakdowns and a near-term readout calendar for downstream analysis.

## Known failure modes

- No matching trials found for given query parameters — returns empty counts
- Invalid or misspelled molecule/condition/sponsor name yields zero results
- window_days out of range (must be 1–730) returns a validation error
- Missing required filter (at least one of cond, intr, spons must be supplied) may return an overly broad or error response
- ClinicalTrials.gov upstream data lag may cause slight staleness in counts

## How this service works

Deterministic clinical pipeline aggregation for one molecule, indication or sponsor: trial counts by phase and by recruitment status, active, completed and recruiting totals, and a near-term readout list of trials with a primary completion date coming up soon. Computed from ClinicalTrials.gov, no model involved.

## Output

A structured JSON object with: trial counts broken down by phase (Phase 1, 2, 3, 4), trial counts by recruitment status (recruiting, active, completed, etc.), aggregate totals for active/completed/recruiting, and a list of near-term readout trials with their primary completion dates — all sourced deterministically from ClinicalTrials.gov.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "cond": {
       "type": "string",
       "description": "Condition or indication"
      },
      "intr": {
       "type": "string",
       "description": "Intervention, drug or molecule name"
      },
      "spons": {
       "type": "string",
       "description": "Sponsor or company name"
      },
      "window_days": {
       "type": "integer",
       "maximum": 730,
       "minimum": 1,
       "description": "Near-term readout window in days, default 180"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clinical-trial-pipeline-aggregator-28b01ca4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
