# OneShot Agent API – Drug Shortage Lookup

> OneShot Agent API – Drug Shortage Lookup is a paid API for AI agents from win.oneshotagent.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Looks up current FDA drug shortage data by drug name and/or status, returning shortage details including reason, availability, company, and NDC.

## Facts

- Endpoint: POST https://win.oneshotagent.com/v1/tools/lookup/product-drug-shortages?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oneshot-agent-api-drug-shortage-lookup-2655d092
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Os8keK4gICCW-RekgT436

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 oneshot-agent-api-drug-shortage-lookup-2655d092 -d '<json body>'
```

Example prompt: Can you check if quinapril is currently in shortage? Show me up to 5 results with current status only.

## When to prefer this

Use this endpoint when you need structured FDA drug shortage data for a specific drug, including reason, NDC, company, and status. Prefer this over general web search when you need machine-readable shortage records with official FDA sourcing, especially for pharmaceutical agents, healthcare workflows, or supply chain monitoring tasks.

## Known failure modes

- Drug name not found — returns empty shortages array with total 0
- Invalid status enum value — request rejected with validation error
- Limit parameter ignored or causes unexpected truncation if set too high
- Drug name misspelled or brand name not recognized — may return no results
- Payment failure via x402 — 402 response if USDC balance insufficient

## How this service works

Say whether the US Food and Drug Administration lists a drug as in shortage, and for each listed presentation who makes it, whether it is available and why it is short.

## Output

Returns a JSON object with a total count and an array of shortage records, each containing the drug's generic name, brand names, dosage form, NDC, company name, current status (current/to_be_discontinued/resolved), reason for shortage, availability description, therapeutic category, and first posted and last updated dates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "description": "The most presentations to return. From 1 to 25. Defaults to `10`."
  },
  "status": {
   "enum": [
    "current",
    "to_be_discontinued",
    "resolved"
   ],
   "type": "string",
   "description": "Only presentations with this status; all statuses when omitted"
  },
  "drug_name": {
   "type": "string",
   "description": "The drug's generic or brand name, for example quinapril or sodium chloride. 2 to 100 characters."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "total": 22,
  "shortages": [
   {
    "reason": "Discontinuation of the manufacture of the drug",
    "status": "Current",
    "company": "Aurobindo Pharma USA",
    "updated_on": "2025-10-02",
    "brand_names": [
     "QUINAPRIL"
    ],
    "dosage_form": "Tablet",
    "package_ndc": "65862-620-90",
    "availability": "Unavailable",
    "generic_name": "Quinapril Hydrochloride Tablet",
    "presentation": "Quinapril Hydrochloride, Tablet, 40 mg (NDC 65862-620-90)",
    "related_info": "Discontinuation of the manufacture of the drug",
    "first_posted_on": "2023-01-19",
    "therapeutic_categories": [
     "Cardiovascular"
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oneshot-agent-api-drug-shortage-lookup-2655d092/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from win.oneshotagent.com](https://www.zero.xyz/host/win.oneshotagent.com/llms.txt)
