# MedAPI Safety Profile

> MedAPI Safety Profile 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).

Returns a comprehensive drug safety profile including warnings, contraindications, a safety score, and an AI-powered safety assessment for a named drug.

## Facts

- Endpoint: POST https://madapi.tempochan.xyz/api/safety-profile
- 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-safety-profile-3171cd88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_30EDZXKa90XQqF7u8Ju8n

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-safety-profile-3171cd88 -d '<json body>'
```

Example prompt: Give me a full safety profile for metformin — I want to see the warnings, contraindications, safety score, and an AI-powered assessment of how safe it is.

## When to prefer this

Use this endpoint when you need a consolidated, AI-enriched drug safety summary — including warnings, contraindications, and a safety score — for a named drug, especially when you want both structured data and a natural language safety assessment in one call.

## Known failure modes

- Unknown or misspelled drug name returns success:false with no data
- Missing required 'name' field returns a validation error
- Drug name too vague or ambiguous may return partial data
- Network or upstream data source errors may cause 500 responses
- Payment failure (x402) if USDC balance is insufficient

## How this service works

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

## Output

A JSON object containing the drug name, a list of warnings, a numerical safety score, a list of contraindications, and an LLM-generated safety assessment narrative.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "drug": {
     "type": "string"
    },
    "warnings": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "safety_score": {
     "type": "number"
    },
    "contraindications": {
     "type": "array",
     "items": {
      "type": "string"
     }
    }
   }
  },
  "success": {
   "type": "boolean"
  },
  "analysis": {
   "type": "object",
   "description": "LLM safety assessment"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/medapi-safety-profile-3171cd88/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)
