# MedAPI Trial Match — Clinical Trial Matching Endpoint

> MedAPI Trial Match — Clinical Trial Matching Endpoint is a paid API for AI agents from madapi.tempochan.xyz, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-15).

Matches a medical condition to relevant open clinical trials and returns an AI-powered trial matching assessment

## Facts

- Endpoint: POST https://madapi.tempochan.xyz/api/trial-match
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/medapi-trial-match-clinical-trial-matching-endpoint-b06fdf06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GaCqLq5mXPpUQ4ixn3Ri_

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 medapi-trial-match-clinical-trial-matching-endpoint-b06fdf06 -d '<json body>'
```

Example prompt: Can you find clinical trials available for stage 3 non-small-cell lung cancer and give me an AI analysis of which ones are the best match?

## When to prefer this

Choose this endpoint when you need to find active or recruiting clinical trials for a specific medical condition AND want an AI-powered assessment of trial relevance — not just a raw data dump. Ideal for patient-facing assistants, medical researchers, or care navigation tools that need both structured trial data and intelligent matching commentary in one call.

## Known failure modes

- Missing required 'condition' field returns validation error
- Unrecognized or misspelled condition name may return zero results
- Downstream ClinicalTrials.gov API unavailability causes lookup failure
- LLM analysis component may fail independently while trial list still returns
- Payment failure via x402 returns 402 status before query is processed

## How this service works

Drug data, adverse events, clinical trials, PubMed. AI-powered medical analysis. 17 endpoints. x402 on Base.

## Output

Returns a list of matched clinical trials for the given condition, total count of matching trials, and an LLM-generated assessment analyzing the relevance and quality of the trial matches.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "condition"
 ],
 "properties": {
  "condition": {
   "type": "string",
   "description": "condition"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "total": {
     "type": "integer"
    },
    "matched_trials": {
     "type": "array",
     "items": {
      "type": "object"
     }
    }
   }
  },
  "success": {
   "type": "boolean"
  },
  "analysis": {
   "type": "object",
   "description": "LLM trial matching assessment"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/medapi-trial-match-clinical-trial-matching-endpoint-b06fdf06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from madapi.tempochan.xyz](https://www.zero.xyz/host/madapi.tempochan.xyz/llms.txt)
