# ClinicalTrials.gov Search via x402

> ClinicalTrials.gov Search via x402 is a paid API for AI agents from x402-domain-check.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-13).

Search ClinicalTrials.gov for clinical studies filtered by condition, drug/intervention, sponsor, status, and location, returning structured trial metadata.

## Facts

- Endpoint: GET https://x402-domain-check.vercel.app/trials/search?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clinicaltrials-gov-search-via-x402-954761ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QndAoaVBhteRclTu1m1ki

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 clinicaltrials-gov-search-via-x402-954761ef
```

Example prompt: Find up to 20 recruiting clinical trials for melanoma that are testing pembrolizumab, and show me the NCT IDs, phases, sponsors, and locations.

## When to prefer this

Use this endpoint when you need structured, machine-readable clinical trial data from ClinicalTrials.gov without building your own API integration. Prefer it over direct ClinicalTrials.gov API calls when operating in an x402 payment-enabled agent environment and needing pre-normalized response schemas. Ideal for healthcare agents, pharma researchers, patient advocates, or competitive intelligence workflows that need to programmatically filter trials by disease, drug, sponsor, location, or status.

## Known failure modes

- No results returned when search terms are too narrow or misspelled — try broader keywords
- Missing or null fields for trials with incomplete registry data
- Rate limits or upstream ClinicalTrials.gov API unavailability causing 5xx errors
- Invalid status enum values returning empty or error responses
- At least one of condition, intervention, sponsor, or location must be provided — omitting all returns an error
- Charges are not applied on error responses

## How this service works

Clinical trials search (ClinicalTrials.gov, NLM): filter by condition, intervention/drug, sponsor, status, location. Returns NCT id, title, status, phase, conditions, interventions, sponsor, enrollment, dates, locations summary, link. Not charged on errors.

## Output

Returns a JSON object with a list of matching clinical studies, each containing NCT ID, title, overall status, phase(s), conditions, interventions (name and type), sponsor, enrollment estimate, start date, primary completion date, completion date, location count with sample sites and countries, and a direct ClinicalTrials.gov URL. Also includes total count of matching records, number returned, and source attribution from ClinicalTrials.gov with a data timestamp.

## 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": {
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1
      },
      "status": {
       "type": "string",
       "description": "Comma-separated overall statuses: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, ENROLLING_BY_INVITATION, COMPLETED, TERMINATED, SUSPENDED, WITHDRAWN, UNKNOWN"
      },
      "sponsor": {
       "type": "string",
       "description": "Sponsor / collaborator name"
      },
      "location": {
       "type": "string",
       "description": "City, state, country or facility"
      },
      "condition": {
       "type": "string",
       "description": "Disease/condition keywords"
      },
      "intervention": {
       "type": "string",
       "description": "Drug / intervention keywords"
      }
     },
     "description": "At least one of condition, intervention, sponsor, location required"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": {
   "name": "ClinicalTrials.gov",
   "attribution": "Data from ClinicalTrials.gov (U.S. National Library of Medicine)",
   "dataTimestamp": "2026-10-26T09:00:00"
  },
  "studies": [
   {
    "url": "https://clinicaltrials.gov/study/NCT04594187",
    "nctId": "NCT04594187",
    "phase": [
     "PHASE2"
    ],
    "title": "Nodal Radiation Therapy for Sentinel Lymph Node Positive Melanoma",
    "status": "RECRUITING",
    "sponsor": "M.D. Anderson Cancer Center",
    "locations": {
     "count": 1,
     "sample": [
      "M D Anderson Cancer Center, Houston, Texas, United States"
     ],
     "countries": [
      "United States"
     ]
    },
    "startDate": "2020-08-07",
    "conditions": [
     "Melanoma"
    ],
    "enrollment": {
     "type": "ESTIMATED",
     "count": 100
    },
    "interventions": [
     {
      "name": "Pembrolizumab",
      "type": "DRUG"
     }
    ],
    "completionDate": "2027-12-31",
    "primaryCompletionDate": "2027-12-31"
   }
  ],
  "returned": 1,
  "totalCount": 70
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clinicaltrials-gov-search-via-x402-954761ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-domain-check.vercel.app](https://www.zero.xyz/host/x402-domain-check.vercel.app/llms.txt)
