Skip to content

FDA drug shortages

$0.004 per callUSDC via x402GET /api/drug-shortages

Search the FDA drug shortage list (openFDA) by drug name (generic or brand), therapeutic category or status (current, resolved, to be discontinued): each listed product with its status, availability, company, presentation and package NDC, the stated shortage reason and related information, and the posting, update and discontinuation dates. Send GET /api/drug-shortages with no required fields (4 optional) and pay $0.004 per call over x402 or MPP (there is no free tier). It returns a JSON object with query, count, shortages, returned, matched and 4 more.

Newest update first; the answer says how many listings matched. Live FDA data.

Category: Live public dataTags: fda drug shortage drug-shortage supply pharmacy openfda health

Try in playground →

Parameters

NameTypeRequiredDescription
namestringnoGeneric or brand drug name, e.g. lidocaine
categorystringnoTherapeutic category as FDA lists it, e.g. Oncology or Anesthesia
statusstringnocurrent, resolved or to be discontinued (default: any)
limitnumbernoListings to return, 1-20 (default 5)

Example request

curl -i "https://agent402.tools/api/drug-shortages?name=lidocaine&status=current&limit=5"

Without payment this returns HTTP 402 Payment Required with the exact price for drug-shortages; any x402 v2 or MPP client pays it and retries.

Watch a call get paid

RequestGET /api/drug-shortages
402$0.004 USDC
SignPAYMENT-SIGNATURE
Settleon 14 chains
Answer200 OK
ReceiptAgent402-ReceiptEd25519

Example response

{
  "query": {
    "name": "lidocaine",
    "category": null,
    "status": "Current"
  },
  "count": 1,
  "shortages": [
    {
      "genericName": "Lidocaine Hydrochloride Injection",
      "brandNames": [
        "XYLOCAINE"
      ],
      "status": "Current",
      "availability": "Limited Availability",
      "company": "Pfizer Inc.",
      "presentation": "Lidocaine, Injection, 1% (NDC 0409-4276-01)",
      "dosageForm": "Injection",
      "packageNdc": "0409-4276-01",
      "therapeuticCategories": [
        "Anesthesia"
      ],
      "reason": "Demand increase for the drug",
      "relatedInfo": "Next delivery expected in December",
      "resolvedNote": null,
      "updateType": "Reverified",
      "updateDate": "2026-11-19",
      "initialPostingDate": "2020-04-10",
      "discontinuedDate": null,
      "applicationNumber": "NDA006488"
    }
  ],
  "returned": 1,
  "matched": 87,
  "complete": false,
  "truncated": true,
  "disclaimer": "openFDA data is unvalidated and is not medical advice; do not rely on it to make decisions regarding medical care.",
  "source": "api.fda.gov (openFDA drug shortages, public domain)"
}
FieldTypeAlways presentIn the example
queryobjectyes3 fields: name, category, status
countnumberyes1
shortagesarray of objectsyes1 item in the example
returnednumberyes1
matchednumberyes87
completebooleanyesfalse
truncatedbooleanyestrue
disclaimerstringyesopenFDA data is unvalidated and is not medical advice; do not rely on it to m...
sourcestringyesapi.fda.gov (openFDA drug shortages, public domain)

From an MCP client

catalog.call {
  "slug": "drug-shortages",
  "params": {
    "name": "lidocaine",
    "status": "current",
    "limit": 5
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for drug-shortages; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.14.1.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.004" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/drug-shortages?name=lidocaine&status=current&limit=5");

Related tools

FDA NDC directory lookup

$0.004GET /api/drug-ndc

Look up the FDA National Drug Code directory (openFDA) by NDC or by brand or generic name: product NDC, labeler, dosage.

FDA drug adverse events

$0.001GET /api/drug-adverse-events

Top reported adverse reactions for a drug from the FDA FAERS database (openFDA), ranked by report count - a fast read.

FDA drug label lookup

$0.004GET /api/drug-label

FDA drug labeling (openFDA SPL) by brand or generic name, or by NDC: boxed warning, indications and usage, dosage.

FDA drug recalls

$0.004GET /api/drug-recalls

Search FDA drug recall / enforcement records (openFDA): recalling firm, classification (Class I/II/III), reason.

FDA Orange Book lookup

$0.004GET /api/drug-orange-book

Look up the FDA Orange Book (openFDA) by brand name, active ingredient or application number: each approved product.

FDA 510(k) device clearances

$0.004GET /api/device-510k

Search FDA 510(k) premarket clearances (openFDA) by applicant, three-letter product code, K number or device name.