openFDA Drug & Food Safety Scraper
Pricing
Pay per usage
openFDA Drug & Food Safety Scraper
Scrape FDA drug adverse events, drug labels, food recalls, and medical device reports. Uses the free openFDA API. No API key, no browser needed. 20M+ drug safety records available.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
oscar lira
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
Apify actor that pulls structured data from the openFDA API — no browser required, pure HTTP.
Supported Datasets
| Key | Endpoint | Description |
|---|---|---|
drug_events | /drug/event | Adverse event reports for drugs |
drug_labels | /drug/label | Drug product labeling (SPL) |
food_recalls | /food/enforcement | Food recall enforcement reports |
device_events | /device/event | Medical device adverse events |
Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
dataset | enum | drug_events | Which dataset to query |
searchQuery | string | (empty) | openFDA search syntax, e.g. openfda.brand_name:aspirin |
maxResults | integer | 100 | Number of records to fetch (1-1000) |
dateFrom | string | (none) | Start date filter YYYYMMDD |
dateTo | string | (none) | End date filter YYYYMMDD |
Search Query Examples
openfda.brand_name:aspirinpatient.drug.medicinalproduct:ibuprofen+AND+serious:1recalling_firm:"Nestle"device.generic_name:pacemaker
See full syntax: https://open.fda.gov/apis/query-syntax/
Output
Every record is normalized to a common shape:
{"id": "...","dataset": "drug_events","title": "ASPIRIN","date": "2024-01-15","severity": "hospitalization","description": "Nausea; Vomiting; Headache","details": { ... },"raw": { ... }}
details— curated fields specific to the datasetraw— the original unmodified openFDA record
Pagination
The openFDA API allows a maximum skip of 26,000 per query. The actor pages automatically within this limit. To access more data, narrow your search with date ranges or additional filters.
Running Locally
npm installecho '{ "dataset": "drug_events", "searchQuery": "openfda.brand_name:aspirin", "maxResults": 10 }' > input.jsonnpx apify-cli run -i input.json