# FDA Drug Shortages

> FDA Drug Shortages is a paid API for AI agents from x402-filings.datalayer.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Retrieves current and resolved US drug shortage data from the FDA, including the drug name, reporting company, reason for shortage, dosage form, therapeutic category, and shortage status.

## Facts

- Endpoint: GET https://x402-filings.datalayer.workers.dev/v1/fda/drug-shortages?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fda-drug-shortages-36c28c5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lBz3FpnUg_HY3HQvzQ6gb

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 fda-drug-shortages-36c28c5c
```

Example prompt: Can you check the FDA drug shortage database for any current shortages of amoxicillin and tell me which companies are reporting them and why?

## When to prefer this

Choose this endpoint when you need real-time, structured FDA drug shortage data for pharmacy, procurement, or formulary workflows. It is ideal when you need to filter shortages by drug name, company, or status (current vs. resolved) and want clean structured output rather than scraping the FDA website. Prefer this over general web search when you need reliable, consistently formatted shortage records for automated supply chain signals.

## Known failure modes

- No matching records found for the specified drug name or company — returns empty result set
- Invalid status value (not 'current' or 'resolved') may return an error or empty results
- Limit out of range (outside 1-100) may return an error
- Transient upstream FDA data feed unavailability causing delayed or stale results
- Payment failure due to insufficient USDC balance blocking the request

## How this service works

Current and resolved US drug shortages from the FDA: what is short, which company reports it, the reason, dosage form, therapeutic category and whether the shortage is still ongoing. A supply-chain signal for pharmacy, procurement and formulary systems, published free by the FDA.

## Output

Returns a list of drug shortage records (up to the specified limit, default 25), each containing the generic drug name, reporting company, reason for shortage, dosage form, therapeutic category, and whether the shortage is current or resolved. Data is sourced directly from the FDA's publicly published shortage database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "drug": {
       "type": "string",
       "examples": [
        "amoxicillin"
       ],
       "description": "Generic drug name."
      },
      "limit": {
       "type": "integer",
       "examples": [
        25
       ],
       "description": "Max records, 1-100. Default 25."
      },
      "status": {
       "type": "string",
       "examples": [
        "current"
       ],
       "description": "current or resolved. Omit for both."
      },
      "company": {
       "type": "string",
       "examples": [
        "Hospira"
       ],
       "description": "Reporting company name."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fda-drug-shortages-36c28c5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-filings.datalayer.workers.dev](https://www.zero.xyz/host/x402-filings.datalayer.workers.dev/llms.txt)
