OpenFDA API
FDA drug adverse events, recalls, and prescribing information. Deeply nested FAERS data flattened into structured, agent-friendly JSON.
GET
/api/openfda/adverse-events
5 sats
Get adverse event reports for a drug. Flattens deeply nested FAERS data, extracts top reactions and outcomes, and adds severity categorization.
| Parameter | Type | Description |
|---|---|---|
drug | string | Drug name (e.g., "aspirin") |
limit | int | Number of reports to return (default: 10, max: 100) |
curl "https://agent-commerce.store/api/openfda/adverse-events?drug=aspirin&limit=5"
GET
/api/openfda/recalls
5 sats
Search drug and device recall records. Simplifies enforcement data with human-readable dates and key fields extracted.
| Parameter | Type | Description |
|---|---|---|
query | string | Search query (e.g., "ibuprofen") |
limit | int | Number of results to return (default: 10, max: 100) |
curl "https://agent-commerce.store/api/openfda/recalls?query=ibuprofen&limit=5"
GET
/api/openfda/labels
5 sats
Get drug label and prescribing information. Extracts key sections including indications, warnings, dosage, and contraindications.
| Parameter | Type | Description |
|---|---|---|
drug | string | Drug brand name (e.g., "lipitor") |
curl "https://agent-commerce.store/api/openfda/labels?drug=lipitor"
Usage tips: Use generic drug names (e.g., "aspirin" not "Bayer"). The
limit parameter controls how many results are returned (default varies by endpoint). Adverse event queries can return large responses — start with a small limit to test.
Value-Add
- Flattens deeply nested FAERS adverse event data into clean JSON
- Severity categorization and scoring (0-5 scale)
- Top reaction and outcome summaries across all reports
- Human-readable dates (YYYYMMDD converted to YYYY-MM-DD)
- Patient demographics decoded (sex codes, age units)
- Key label sections extracted from verbose prescribing information
- Recall data simplified with key fields highlighted
Upstream Source
openFDA — public API by the U.S. Food and Drug Administration, no API key required.