# ClinicalTrials.gov Condition Statistics API

> ClinicalTrials.gov Condition Statistics API is a paid API for AI agents from clinical.memoryapi.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns aggregate statistics for a medical condition from ClinicalTrials.gov, including trial counts broken down by status, phase, and top sponsors.

## Facts

- Endpoint: GET https://clinical.memoryapi.org/x402/clinical/stats
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clinical-memoryapi-org-d19aff46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1H0Zm3wRRWOF8oI6DgxmM

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-memoryapi-org-d19aff46
```

Example prompt: Give me a statistical overview of all ClinicalTrials.gov trials for Type 2 Diabetes — I want counts broken down by status (recruiting, completed, etc.), phase, and a list of the top sponsors.

## When to prefer this

Use this endpoint when you need a high-level statistical summary of clinical trial activity for a condition rather than details about individual trials. Ideal for dashboards, competitive landscape analysis, research trend monitoring, or quick answers about how much research is happening in a given disease area. Prefer this over the search or detail endpoints when you don't need trial-level data.

## Known failure modes

- Unknown or misspelled condition name returns empty results or error
- ClinicalTrials.gov upstream unavailability causes timeout or 503
- Payment not processed (x402 payment required before data is returned)
- Rate limiting if too many requests are made in quick succession

## How this service works

ClinicalTrials.gov intelligence — search 400K+ trials by condition, intervention, sponsor, or phase. Full trial details, eligibility, outcomes, and aggregate stats. Pay-per-request via x402 on Base mainnet.

## Output

Returns aggregate counts of clinical trials for the specified condition, broken down by trial status (e.g. recruiting, completed, terminated), trial phase (e.g. Phase 1, Phase 2, Phase 3), and a ranked list of the most active sponsors conducting trials for that condition.

## Example request

```json
{
 "group_by": "phase",
 "condition": "Hypertension"
}
```

## Response schema (JSON Schema)

```json
{
 "example": {
  "success": true,
  "by_phase": [
   {
    "count": 340,
    "phase": "PHASE3"
   }
  ],
  "condition": "alzheimer",
  "highlighted": {
   "completed": 1800,
   "recruiting": 450
  },
  "top_sponsors": [
   {
    "name": "Eli Lilly",
    "count": 45
   }
  ],
  "total_trials": 3200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clinical-memoryapi-org-d19aff46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clinical.memoryapi.org](https://www.zero.xyz/host/clinical.memoryapi.org/llms.txt)
