# Clinical Trials Search

> Clinical Trials Search is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.0195/call, status unknown (last checked 2026-10-31).

Search ClinicalTrials.gov for studies filtered by condition, intervention, sponsor, phase, status, country, and study type

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/trials/search?utm_source=zero.xyz
- Price: $0.0195/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clinical-trials-search-2870856e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3iK2VN3tAITDTAVYpUoWc

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-trials-search-2870856e
```

Example prompt: Can you find up to 10 recruiting phase 3 interventional trials testing pembrolizumab for non-small cell lung cancer in the United States?

## When to prefer this

Use this endpoint when you need structured, filterable access to ClinicalTrials.gov data with parameters like phase, recruitment status, country, sponsor, and study type — especially when combining multiple filters in a single query. Prefer this over manual web scraping or general web search when you need machine-readable trial records suitable for downstream analysis or patient-matching workflows.

## Known failure modes

- No trials match the given filters — empty result set returned
- Invalid enum value for phase, status, or study_type causes a validation error
- page_size exceeds maximum of 50 and is rejected
- ClinicalTrials.gov upstream service unavailable — request times out or returns error
- Payment of 0.0195 USDC not completed — 402 response with payment instructions returned

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

Returns a JSON object with a success flag and a result object containing matching clinical trial records including study identifiers, titles, status, phase, sponsor details, conditions, interventions, and site countries, up to the requested page size (max 50, default 10).

## 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",
     "required": [],
     "properties": {
      "cond": {
       "type": "string",
       "default": null,
       "description": "Condition, indication or disease"
      },
      "intr": {
       "type": "string",
       "default": null,
       "description": "Intervention, drug or molecule name"
      },
      "lead": {
       "type": "string",
       "default": null,
       "description": "Lead sponsor name"
      },
      "term": {
       "type": "string",
       "default": null,
       "description": "Free-text other terms"
      },
      "phase": {
       "enum": [
        "0",
        "1",
        "2",
        "3",
        "4"
       ],
       "type": "string",
       "default": null,
       "description": "Trial phase to filter by, where 0 is Early Phase 1"
      },
      "spons": {
       "type": "string",
       "default": null,
       "description": "Sponsor or collaborator name"
      },
      "status": {
       "enum": [
        "recruiting",
        "not_yet_recruiting",
        "active_not_recruiting",
        "completed",
        "terminated",
        "withdrawn",
        "suspended"
       ],
       "type": "string",
       "default": null,
       "description": "Overall recruitment status to filter by"
      },
      "titles": {
       "type": "string",
       "default": null,
       "description": "Title or acronym terms"
      },
      "country": {
       "type": "string",
       "default": null,
       "description": "Country to narrow trial sites"
      },
      "page_size": {
       "type": "integer",
       "default": null,
       "maximum": 50,
       "minimum": 1,
       "description": "Max records to return, default 10"
      },
      "study_type": {
       "enum": [
        "int",
        "obs",
        "exp"
       ],
       "type": "string",
       "default": null,
       "description": "Study type: int interventional, obs observational, exp expanded access"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clinical-trials-search-2870856e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
