FDA Orange Book lookup
GET /api/drug-orange-bookLook up the FDA Orange Book (openFDA) by brand name, active ingredient or application number: each approved product with its applicant, application type and number, dosage form, route, strengths, therapeutic equivalence codes, reference listed drug flag, approval date, listed patents (number, expiration, drug substance or product claim, use code) and exclusivity codes with their expiration dates. Send GET /api/drug-orange-book with no required fields (3 optional) and pay $0.004 per call over x402 or MPP (there is no free tier). It returns a JSON object with query, count, products, returned, matched and 5 more.
Newest approval first; the answer says how many products matched. Live FDA data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | no | Brand name or active ingredient, e.g. ozempic or semaglutide |
applicationNumber | string | no | NDA or ANDA number, six digits with an optional N or A prefix, e.g. N213051 |
limit | number | no | Products to return, 1-20 (default 5) |
Example request
curl -i "https://agent402.tools/api/drug-orange-book?name=ozempic&limit=3"
Without payment this returns HTTP 402 Payment Required with the exact price for drug-orange-book; any x402 v2 or MPP client pays it and retries.
Watch a call get paid
GET /api/drug-orange-book$0.004 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"query": {
"name": "ozempic",
"applicationNumber": null
},
"count": 1,
"products": [
{
"brandName": "OZEMPIC",
"activeIngredients": [
{
"name": "SEMAGLUTIDE",
"strength": "1.5MG"
}
],
"dosageForm": "TABLET",
"route": "ORAL",
"applicant": "NOVO NORDISK INC",
"applicationType": "NDA",
"applicationNumber": "N213051",
"productNumber": "004",
"marketingStatus": "HUMAN PRESCRIPTION DRUG",
"teCodes": [],
"referenceListedDrug": true,
"referenceStandard": true,
"approvalDate": "2024-12-09",
"patents": [
{
"patentNumber": "10278923",
"expirationDate": "2034-05-02",
"drugSubstance": true,
"drugProduct": true,
"useCode": "U-2628",
"submissionDate": "2025-02-21"
}
],
"patentCount": 9,
"exclusivities": [
{
"code": "I-976",
"expirationDate": "2028-10-17"
}
]
}
],
"returned": 1,
"matched": 10,
"complete": false,
"truncated": true,
"maxPatents": 20,
"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 Orange Book, public domain)"
}| Field | Type | Always present | In the example |
|---|---|---|---|
query | object | yes | 2 fields: name, applicationNumber |
count | number | yes | 1 |
products | array of objects | yes | 1 item in the example |
returned | number | yes | 1 |
matched | number | yes | 10 |
complete | boolean | yes | false |
truncated | boolean | yes | true |
maxPatents | number | yes | 20 |
disclaimer | string | yes | openFDA data is unvalidated and is not medical advice; do not rely on it to m... |
source | string | yes | api.fda.gov (openFDA Orange Book, public domain) |
From an MCP client
catalog.call {
"slug": "drug-orange-book",
"params": {
"name": "ozempic",
"limit": 3
}
}The hosted connector at https://agent402.tools/mcp needs a payment for drug-orange-book; 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
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement runs after the tool and only on a successful response. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/drug-orange-book is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
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-orange-book?name=ozempic&limit=3");Related tools
FDA 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
FDA drug labeling (openFDA SPL) by brand or generic name, or by NDC: boxed warning, indications and usage, dosage.
FDA NDC directory lookup
Look up the FDA National Drug Code directory (openFDA) by NDC or by brand or generic name: product NDC, labeler, dosage.
FDA drug recalls
Search FDA drug recall / enforcement records (openFDA): recalling firm, classification (Class I/II/III), reason.
FDA drug shortages
Search the FDA drug shortage list (openFDA) by drug name (generic or brand), therapeutic category or status (current.
FDA 510(k) device clearances
Search FDA 510(k) premarket clearances (openFDA) by applicant, three-letter product code, K number or device name.