# MedAPI Clinical Trials Search

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

Searches clinical trials by query and returns matching trials with an AI-generated landscape analysis

## Facts

- Endpoint: POST https://mamujamedapi.vercel.app/api/clinical-trials
- Price: $0.25/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-trials-search-39c40065
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zT8pHTSRvfiuuocFlu8yX

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-trials-search-39c40065 -d '<json body>'
```

Example prompt: Search for clinical trials related to metastatic breast cancer and give me an AI-generated overview of the current trial landscape.

## When to prefer this

Choose this endpoint when you need to search ClinicalTrials.gov-style data and also want an AI-generated contextual analysis of the trial landscape — not just raw trial records. Prefer this over generic web search when structured trial metadata (phases, conditions, interventions) plus synthesized insight is needed in a single call.

## Known failure modes

- Empty or overly broad query returns too many low-relevance results
- Very rare condition with no trials returns empty trials array with total: 0
- LLM analysis may time out or fail for complex queries, returning null analysis object
- Misspelled disease or drug name may return no results
- Network or payment (x402) failure returns success: false with no data

## How this service works

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

## Output

Returns a structured object containing a list of clinical trial records, the total count of matching trials, and an LLM-generated analysis summarizing the trial landscape for the given query, including trends, phases, and notable studies.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/medapi-clinical-trials-search-39c40065/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)
