# MedAPI Safety Profile — Drug Safety Analysis

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

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

## Facts

- Endpoint: POST https://mamujamedapi.vercel.app/api/safety-profile
- 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-safety-profile-drug-safety-analysis-2b1443fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uma9pCD5Oz9WybKTPOlCb

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-drug-safety-analysis-2b1443fc -d '<json body>'
```

Example prompt: Can you pull up the full safety profile for metformin — I need the warnings, contraindications, and an overall safety score?

## When to prefer this

Use this endpoint when you need a quick, AI-synthesized safety summary for a named drug — including structured contraindications, warnings, and a numeric safety score — without manually querying FDA, OpenFDA, or PubMed separately. Prefer this over raw FDA APIs when you want an LLM-analyzed narrative safety assessment alongside structured data in a single call.

## Known failure modes

- Unknown or misspelled drug name returns empty data or low-confidence results
- Rare or experimental drugs may have sparse FDA adverse event data, reducing accuracy
- LLM safety assessment may hallucinate details not present in source databases
- Network latency or Vercel cold-start delays may cause timeouts
- x402 payment failure on Base blockchain causes 402 response before data is returned

## 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, an array of safety warnings, a numeric safety score, an array of contraindications, and an LLM-generated safety assessment narrative — all keyed to the queried drug name.

## 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-drug-safety-analysis-2b1443fc/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)
