# trials-pipeline

> trials-pipeline is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Aggregates clinical trial pipeline data for a molecule, indication, or sponsor from ClinicalTrials.gov — returning phase breakdowns, recruitment status counts, and near-term readout dates.

## Facts

- Endpoint: GET https://payai.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/trials-pipeline-d59d98a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R69Ry4vGeoNMg1woLQ0pl

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 trials-pipeline-d59d98a4
```

Example prompt: Pull the clinical trial pipeline summary for semaglutide as an intervention — give me phase counts, recruitment status breakdown, and any trials with a primary completion date in the next 180 days.

## When to prefer this

Choose this endpoint when you need a structured, quantitative pipeline summary for a specific drug, disease area, or sponsor — especially when you want phase-by-phase counts, recruitment status breakdowns, and near-term readout dates in a single call. Prefer this over general web search when you need clean, structured data computed directly from ClinicalTrials.gov. Use this for investment research, competitive intelligence, or regulatory landscape analysis where precision and determinism matter more than natural language flexibility.

## Known failure modes

- No matching trials found for the given molecule, indication, or sponsor — returns empty counts
- Ambiguous sponsor or drug name matching multiple entities — may aggregate across unintended trials
- window_days exceeds 730 — returns a validation error
- None of the three filter params (cond, intr, spons) provided — likely returns error or empty result
- ClinicalTrials.gov data lag — recent trial updates may not be reflected immediately

## 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

Returns trial counts grouped by phase (Phase 1, 2, 3, 4) and by recruitment status (active, recruiting, completed, etc.), summary totals, and a near-term readout list of trials whose primary completion date falls within the requested window — all computed deterministically from ClinicalTrials.gov data with no model inference.

## 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/trials-pipeline-d59d98a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
