# MedAPI Drug Lookup

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

Retrieves structured drug data including brand name, generic name, active ingredients, dosage form, route of administration, warnings, and manufacturer for a given drug name.

## Facts

- Endpoint: POST https://mamujamedapi.vercel.app/api/drug
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/medapi-drug-lookup-8c52fc0f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CVR9eXjDo9vI1CAA55lmn

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-drug-lookup-8c52fc0f -d '<json body>'
```

Example prompt: Can you look up the drug information for Metformin — I need the generic name, brand name, active ingredients, dosage form, route, manufacturer, and any warnings?

## When to prefer this

Choose this endpoint when you need structured pharmaceutical reference data for a specific drug by name — particularly brand/generic name resolution, active ingredient lists, dosage form, and warnings. Prefer it over general web search when you need machine-readable drug fields. It complements adverse event and clinical trial endpoints in the same MedAPI suite for broader medical intelligence tasks.

## Known failure modes

- Drug name not found in database — returns success:false with no data object
- Misspelled or ambiguous drug name — may return no results or incorrect match
- Unknown or investigational drugs not in the underlying database may return empty
- Network timeout on the vercel deployment — transient 5xx errors possible

## 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 boolean and a data object containing: brand_name, generic_name, active_ingredients (array of objects), dosage_form, route, manufacturer, and warnings (array of strings) for the queried drug.

## 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": {
    "route": {
     "type": "string"
    },
    "warnings": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "brand_name": {
     "type": "string"
    },
    "dosage_form": {
     "type": "string"
    },
    "generic_name": {
     "type": "string"
    },
    "manufacturer": {
     "type": "string"
    },
    "active_ingredients": {
     "type": "array",
     "items": {
      "type": "object"
     }
    }
   }
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/medapi-drug-lookup-8c52fc0f/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)
