# openFDA API – Drug & Device Recalls, Adverse Events, Labels

Search official FDA data: drug approvals (Drugs@FDA), drug, device and food recalls, drug and device adverse event reports, drug labels and the NDC directory. Filter by product, company and date, or get counts such as the top reported reactions for a drug.

Analysis from this data: [Class I drug recalls fell to 49 in 2025, the fewest since at least 2020; particulate matter leads in 2026](https://pushbuild.com/apis/analysis/class-i-drug-recalls-2025-fewest-since-2020/)

$0.40 per 1,000 records

[Get an API key](https://pushbuild.com/apis/app/signup?api=openfda)

Example request

```
POST /openfda/run
{
  "product": "metformin",
  "maxItems": 20
}
```

## What a response looks like

POST /openfda/run{"product": "metformin", "maxItems": 20}

```
{"count": 20, "truncated": false, "items": [ … ]}
```

## What it returns

Official FDA data as clean, flattened JSON.

## Common uses

Pharmacovigilance, recall monitoring, competitive intelligence, compliance and med-tech sales research. Pay per record.

## Request

`POST https://api.pushbuild.com/openfda/run` with a JSON body. Send your key in the `X-API-Key` header.

| Field | Type | Description |
| --- | --- | --- |
| `dataset` | string: drugRecalls, deviceRecalls, foodRecalls, drugAdverseEvents, deviceAdverseEvents, drugLabels, ndcDirectory, drugApprovals | Which FDA dataset to search. Default: `"drugRecalls"`. |
| `product` | string | Drug, device or product name. |
| `company` | string | Recalling firm, manufacturer or labeler. |
| `dateFrom` | string | YYYY-MM-DD. |
| `dateTo` | string | YYYY-MM-DD. |
| `recallClass` | string: , Class I, Class II, Class III | Recalls only. Default: `""`. |
| `countBy` | string | "default" for a sensible count per dataset (e.g. top reactions for a drug), or any openFDA .exact field. Leave empty to list records. |
| `rawSearch` | string | Advanced: an openFDA search expression; overrides the fields above. |
| `sort` | string: newest, relevance | Order of records. Default: `"newest"`. |
| `maxResults` | integer | Records (or count rows) to return. Default: `100`. |
| `maxItems` | integer | Maximum items to return (1-500). Default: `100`. |

### Example

```
curl -X POST https://api.pushbuild.com/openfda/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product": "metformin", "maxItems": 20}'
```

### Response

```
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
```

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

## Pricing

Pay only for results returned: $0.40 per 1,000 records. No charge for errors or empty searches.

| Records | Cost |
| --- | --- |
| 1,000 | $0.40 |
| 10,000 | $4.00 |
| 100,000 | $40.00 |
| 1,000,000 | $400.00 |
| 2,500 a month | Free ($1 monthly credit) |

## Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: `https://api.pushbuild.com/mcp/openfda`. Add it to any assistant that supports remote MCP servers, with your key in the `X-API-Key` header. Same prices. [Setup for each app](https://pushbuild.com/apis/mcp.html).

## Related APIs

- [FDA Device 510(k) Clearances & PMA Approvals API](https://pushbuild.com/apis/fda-device-clearances.html): Every FDA medical device 510(k) clearance and PMA approval or supplement from openFDA.
- [Drug Label API](https://pushbuild.com/apis/dailymed-drug-labels.html): FDA drug labels from DailyMed (US National Library of Medicine): search by drug name, NDC or labeler, with set ID, version, published date and label sections: boxed warning, indications, dosage, contraindications, warnings, adverse reactions, interactions..
- [Drug Lookup API](https://pushbuild.com/apis/rxnorm-drugs.html): Look up US prescription and OTC drugs by brand or generic name, RxCUI or NDC.
- [FDA Approvals Feed API](https://pushbuild.com/apis/fda-approvals-feed.html): FDA press releases with exact publish times and approvals flagged, plus original NDA/BLA drug and biologic approvals from Drugs@FDA: approval date, sponsor, brand, ingredients, novelty class, review priority and approval letter..
- [OpenFIGI API: Ticker, ISIN & CUSIP to FIGI Identifier Mapping API](https://pushbuild.com/apis/openfigi-mapping.html): Map tickers, ISINs, CUSIPs, SEDOLs and Bloomberg IDs to FIGI, composite FIGI and share-class FIGI with name, ticker, exchange, security type and market sector, in bulk, or search instruments by name.
- [Open Payments API](https://pushbuild.com/apis/cms-open-payments.html): CMS Open Payments (Sunshine Act) data: every payment from drug and device makers to US physicians, nurse practitioners, PAs and teaching hospitals: recipient, NPI, specialty, location, payer, amount, date, nature (meals, consulting, speaking, travel), related drug or device.

## Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

[hello@pushbuild.com](mailto:hello@pushbuild.com?subject=API%20question)

## New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

---
As of 2026-12-03. Source: https://pushbuild.com/apis/openfda.html
