What a response looks like
{"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.
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.comNew APIs and data, twice a month
New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.
Want this data inside your own app or CRM? API integrations and data sync