# MedAPI Drug Search

> MedAPI Drug Search 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-16).

Search a medical database for drug information by name, active ingredient, or condition using AI-powered analysis

## Facts

- Endpoint: POST https://mamujamedapi.vercel.app/api/drug-search
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/medapi-drug-search-d9a1698b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UJ-I_ZI0vnxvaDm9xtXrc

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-search-d9a1698b -d '<json body>'
```

Example prompt: Search MedAPI for information about metformin — I want to know what drugs come up, how many results there are, and any key details about the medication.

## When to prefer this

Choose this endpoint when you need to search for pharmaceutical or drug information by name, active ingredient, or medical condition and want AI-enriched medical intelligence rather than raw FDA label data. Prefer this over PubMed or clinical trial endpoints when the primary need is drug identification and metadata lookup rather than research literature or trial status.

## Known failure modes

- Empty query string returns validation error or zero results
- Misspelled drug name may return no results or unrelated matches
- Rare or experimental drug names may not be in the database
- Network timeout or server error returns success: false
- Overly broad query may return too many low-relevance results

## 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 a total integer (number of matching records) and a results array of drug objects with detailed drug metadata such as name, classification, active ingredients, and related medical information.

## 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"
    },
    "results": {
     "type": "array",
     "items": {
      "type": "object"
     }
    }
   }
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

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