# MedAPI Clinical Trial Matcher

> MedAPI Clinical Trial Matcher is a paid API for AI agents from mamujamedapi.vercel.app, paid per call via x402, $0.35/call, status unknown (last checked 2026-09-14).

Finds and AI-analyzes clinical trials matching a given medical condition using ClinicalTrials.gov data with LLM-powered assessment

## Facts

- Endpoint: POST https://mamujamedapi.vercel.app/api/trial-match
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/medapi-clinical-trial-matcher-f0c2444f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wVpDTLn7YXhTDhVqPBaW2

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-clinical-trial-matcher-f0c2444f -d '<json body>'
```

Example prompt: Can you find clinical trials available for Crohn's disease and give me an AI analysis of which ones might be most relevant?

## When to prefer this

Choose this endpoint when you need to find clinical trials for a specific medical condition AND want an AI-powered assessment of the matches, not just a raw list. Prefer this over direct ClinicalTrials.gov queries when you want natural language analysis alongside structured trial data. Best for patient-facing agents, medical research assistants, or healthcare apps that need trial recommendations in context.

## Known failure modes

- Empty or vague condition string returns zero results or low-quality matches
- Condition not recognized by ClinicalTrials.gov returns empty matched_trials array
- LLM analysis may time out or return null for the analysis object
- Misspelled condition names may fail to match relevant trials
- Very rare conditions may return no trials
- Payment failure via x402 returns 402 before any processing occurs

## How this service works

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

## Output

Returns a JSON object with a success flag, a data object containing the total number of matched trials and an array of matched trial objects (each with trial details), and an LLM-generated analysis object providing an AI-powered trial matching assessment for the condition.

## 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-clinical-trial-matcher-f0c2444f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mamujamedapi.vercel.app](https://www.zero.xyz/host/mamujamedapi.vercel.app/llms.txt)
