# MedAPI Compare Drugs

> MedAPI Compare Drugs 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-13).

Compares multiple drugs side-by-side using drug data, adverse events, and AI-powered analysis

## Facts

- Endpoint: POST https://madapi.tempochan.xyz/api/compare-drugs
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/medapi-compare-drugs-3903129c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hU2X3sryuWENUeS4j3CuK

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-compare-drugs-3903129c -d '<json body>'
```

Example prompt: Can you compare ibuprofen, naproxen, and acetaminophen side by side — I want to know how they differ in terms of adverse events, uses, and which one might be safer for long-term use?

## When to prefer this

Use this endpoint when an agent needs to evaluate multiple drug options simultaneously, such as helping a user understand treatment alternatives, comparing safety profiles, or summarizing clinical differences. Prefer this over individual drug lookup endpoints when two or more drugs need to be contrasted directly. Best suited for research, patient education support, or clinical decision-support workflows where comparative context is required.

## Known failure modes

- Drug name not recognized or not found in database — returns success:false with error message
- Empty or missing drugs array — returns 400 validation error
- Only one drug provided — comparison may be meaningless or return error
- Payment not attached or insufficient USDC — returns 402 Payment Required
- LLM analysis service timeout — may return partial data without analysis object
- Malformed request body — returns 400 or 422 error

## How this service works

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

## Output

Returns a structured comparison object containing individual drug profiles, a side-by-side comparison summary, and an AI-generated LLM narrative analysis highlighting similarities, differences, safety profiles, and clinical considerations across the provided drugs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "drugs"
 ],
 "properties": {
  "drugs": {
   "type": "array",
   "description": "drugs"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "drugs": {
     "type": "array",
     "items": {
      "type": "object"
     }
    },
    "comparison": {
     "type": "object"
    }
   }
  },
  "success": {
   "type": "boolean"
  },
  "analysis": {
   "type": "object",
   "description": "LLM comparative analysis"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/medapi-compare-drugs-3903129c/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)
