# MedAPI Drug Search

> MedAPI Drug Search is a paid API for AI agents from madapi.tempochan.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Searches a medical drug database by query string, returning structured drug records and related data

## Facts

- Endpoint: POST https://madapi.tempochan.xyz/api/drug-search
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/medapi-drug-search-90c16ca8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hc-ORKid-H7VRWyBSM0up

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-90c16ca8 -d '<json body>'
```

Example prompt: Search the MedAPI medical database for everything you can find about metformin — I need structured drug records including all available data.

## When to prefer this

Use this endpoint when you need to search for pharmaceutical/drug data by name or keyword and want structured results from a medical intelligence database. Prefer this over general web search when you need machine-readable drug records rather than unstructured text, and when you need programmatic access to drug information at scale.

## Known failure modes

- Empty query string returns validation error or empty results
- Misspelled drug name returns zero results
- Network timeout or server error returns success:false
- Malformed request body missing required 'query' field returns 400 error
- Payment failure via x402 on Base returns 402 Payment Required

## 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 flag and a data object containing a total count of matching results and an array of drug record objects with pharmaceutical details.

## 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-90c16ca8/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)
