# OpenFDA Drug Intelligence Aggregator

> OpenFDA Drug Intelligence Aggregator is a paid API for AI agents from toolsmith-api.dassad10.workers.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Returns aggregated FDA intelligence for any drug by brand name, generic name, or NDC: label facts, manufacturer, shortage status, recalls, and adverse-event count in one call.

## Facts

- Endpoint: GET https://toolsmith-api.dassad10.workers.dev/t/med/drug
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openfda-drug-intelligence-aggregator-58f02a38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GZZG23RRDesgFfmiw6dbX

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 openfda-drug-intelligence-aggregator-58f02a38
```

Example prompt: Pull the full FDA profile for Ozempic — I want its indications, any active shortages, recent recalls with classification, and total adverse-event count from FAERS.

## When to prefer this

Use this endpoint when you need a comprehensive, one-call FDA drug summary covering safety labels, shortage status, recalls, and adverse event counts — rather than making multiple separate openFDA API calls. Ideal for healthcare agents, pharmacovigilance workflows, drug research assistants, or compliance tools that need breadth of FDA data without managing openFDA query complexity. Prefer over raw openFDA when aggregation and simplicity matter.

## Known failure modes

- Drug name not found in openFDA — returns empty or error response
- Ambiguous drug name matching multiple drugs — may return results for wrong formulation
- NDC format invalid — query fails or returns no results
- openFDA upstream API unavailable — service returns error
- Payment not processed via x402 — request rejected before drug data is returned

## How this service works

Keyless pay-per-call APIs for AI agents: 30 tools across compliance, trade, safety, web and data. Pay per call with USDC on Base via x402. No account, no API key.

## Output

A JSON object containing: drug label details (indications, warnings, drug interactions, dosage instructions), manufacturer information, current shortage status, recent FDA recalls with their classification levels, and the total count of adverse-event reports in FAERS — all aggregated from openFDA in a single response.

## 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": {
      "ndc": {
       "type": "string",
       "description": "National Drug Code, alternative to name"
      },
      "name": {
       "type": "string",
       "description": "Brand or generic drug name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "drug": {
   "brandName": "Advil",
   "genericName": "IBUPROFEN",
   "manufacturer": "Example Corp"
  },
  "label": {
   "warnings": "...",
   "indications": "..."
  },
  "recalls": [],
  "shortages": [],
  "adverseEventReports": 215340
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openfda-drug-intelligence-aggregator-58f02a38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolsmith-api.dassad10.workers.dev](https://www.zero.xyz/host/toolsmith-api.dassad10.workers.dev/llms.txt)
