# TrialScope Clinical Trial Search

> TrialScope Clinical Trial Search is a paid API for AI agents from x402-trialscope.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Search ClinicalTrials.gov for clinical trials by keyword, phase, status, sponsor, or location and return matching study records

## Facts

- Endpoint: GET https://x402-trialscope.onrender.com/search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trialscope-clinical-trial-search-8f51309c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hj69axssUuSE_fc3Bbmwl

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 trialscope-clinical-trial-search-8f51309c
```

Example prompt: Search ClinicalTrials.gov for recruiting phase 3 trials studying pembrolizumab for non-small cell lung cancer in Boston, MA and show me the first 10 results.

## When to prefer this

Choose this endpoint when you need real-time, per-query search over the ClinicalTrials.gov database with flexible filtering by keyword, phase, status, sponsor, and location. Prefer it over direct ClinicalTrials.gov API calls when you need pay-per-use micropayment billing via x402/USDC with no subscription required. Best for agents that need on-demand trial discovery without a standing API key or subscription.

## Known failure modes

- HTTP 402 returned if payment header is missing or USDC payment is not attached — response includes PAYMENT-REQUIRED header with payment terms
- No results returned for highly specific or misspelled search terms — try broader keywords
- Invalid phase or status enum values may return an error or empty result set
- Network timeout if ClinicalTrials.gov upstream is slow or unavailable
- pageSize values outside 1-50 range may be rejected or clamped

## How this service works

Per-call clinical trial search, study dossiers, and change-deltas from ClinicalTrials.gov. Paid per call via the x402 protocol (USDC); unpaid requests return HTTP 402 with payment terms in the PAYMENT-REQUIRED header. Terms of service: GET /terms (free).

## Output

Returns a list of clinical trial records from ClinicalTrials.gov matching the search criteria, including study identifiers, titles, phases, recruitment status, sponsor names, locations, and other study metadata. Results are paginated up to the requested page size (max 50).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "term": {
       "type": "string",
       "description": "Free-text search term (disease, drug, keyword)"
      },
      "phase": {
       "type": "string",
       "description": "Trial phase: 1, 2, 3, 4 (or PHASE1_PHASE2 style)"
      },
      "status": {
       "type": "string",
       "description": "Overall status, e.g. RECRUITING, COMPLETED"
      },
      "sponsor": {
       "type": "string",
       "description": "Lead sponsor name (partial match)"
      },
      "location": {
       "type": "string",
       "description": "Location text, e.g. Boston, MA"
      },
      "pageSize": {
       "type": "integer",
       "description": "Results per call (1-50, default 20)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trialscope-clinical-trial-search-8f51309c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-trialscope.onrender.com](https://www.zero.xyz/host/x402-trialscope.onrender.com/llms.txt)
