openFDA Scraper: Drug Safety, Recalls, Labels
Pricing
from $19.50 / 1,000 results
openFDA Scraper: Drug Safety, Recalls, Labels
Scrape openFDA for drug safety profiles, adverse event reports, drug and device and food recalls, label warnings, product codes, approvals and device clearances. Get outcomes, top reactions, recall class and risk flags per drug. Filter by drug, company or date. Export to CSV or Excel.
openFDA Scraper: Drug Safety Profiles, Adverse Events, Recalls and Labels
This openFDA scraper puts the public safety data of the US Food and Drug Administration into one tool. Give it a drug name and it returns a safety profile in one row: how many adverse event reports exist, how many were serious or fatal, the most common reactions, whether the trend is going up, the recalls on file, whether the label has a boxed warning and how many products are on the market. Switch the mode and you get the raw material: single adverse event reports, drug, device and food recalls, label sections, the national drug code directory, drug approvals and medical device clearances.
Every row is clean and ready for a spreadsheet. Dates are real dates, counts are numbers, names are lists, and the codes of the source are translated into words, for example the reporter type, the patient sex, the outcome and the recall class with its meaning.
Pharmacovigilance teams, drug safety researchers, health tech builders, pharmacists, lawyers, analysts and journalists use it to watch products and companies.
What can you do with this openFDA scraper?
- Get a safety profile of any drug, generic or brand, in one row
- Pull adverse event reports for a drug, a reaction, a country or a period
- Keep only serious reports, or only reports with death, hospitalization or disability
- Find ongoing Class I recalls of drugs, devices or food
- Group recalls by reason, such as contamination, sterility or labeling errors
- Read the boxed warning and the main label sections of a drug
- List every product of a company in the drug code directory
- See when a drug was first approved and how many label changes followed
- Search medical device clearances by device name, company or product code, with the days the review took
- Export to CSV or Excel, or send new reports to Slack and your own tools
What data can you extract from openFDA?
| Mode | One row is | Highlights |
|---|---|---|
| Drug safety profile | One drug | Event reports in total, serious, death, hospitalization, life threatening and disabling reports, shares, reports in the last 12 months and the 12 months before, trend, top 15 reactions with counts and shares, top co-reported drugs, reports by sex and country, recalls, Class I and ongoing recalls, latest recall, boxed warning, brands, pharmacologic classes, routes, products on the market, signal flags and a signal score |
| Adverse events | One report | Report id, dates, report type, serious flag and each outcome, death date, country, reporter type, patient sex, age in years, weight, reactions and their outcomes, suspect, concomitant and interacting drugs with role, indication, route, dose text and manufacturer |
| Recalls | One recall (drugs, devices or food) | Recall number, class and its meaning, status, ongoing flag, firm, place, voluntary or mandated, dates, days the recall lasted, product, quantity as a number, reason and its category, distribution, nationwide flag, code information, brand and generic names |
| Labels | One drug label | Set id, version, effective date, brands, generic names, substances, manufacturers, routes, pharmacologic classes, mechanism, codes, boxed warning, indications, contraindications, warnings, adverse reactions, interactions, dosage, pregnancy, overdose |
| Drug directory | One product | National drug code, brand, generic name, labeler, dosage form, routes, ingredients with strength, marketing category, application number, dates, packages |
| Approvals | One application | Application number and type, sponsor, brands, products with dosage form and marketing status, first approval date, latest approved action, submissions, label supplements, priority review |
| Device clearances | One 510(k) | Number, device, applicant, place, dates, days to decision, decision, clearance type, product code, device class, medical specialty, expedited and third party review |
How to scrape openFDA
- Choose a mode. Start with Drug safety profile.
- Type one or more drug names. Generic names and brand names both work.
- For other modes, add companies, reactions, countries, classes or dates.
- Set Max Items and click Start.
- Export the dataset as CSV, Excel or from the Apify console.
Input example
{"mode": "profile","drugNames": ["metformin", "Ozempic"],"maxItems": 10}
Safety profile output example
{"drug": "metformin","eventReportsTotal": 461399,"seriousSharePct": 67.4,"deathSharePct": 8.29,"reportsLast12Months": 18467,"reportsPrior12Months": 26741,"reportTrendPct": -30.9,"topReactions": [{ "reaction": "NAUSEA", "reports": 31708, "pctOfReports": 6.9 },{ "reaction": "DIARRHOEA", "reports": 29649, "pctOfReports": 6.4 },{ "reaction": "LACTIC ACIDOSIS", "reports": 20537, "pctOfReports": 4.5 }],"drugRecallsTotal": 91,"classIRecalls": 1,"ongoingRecalls": 23,"hasBoxedWarning": true,"ndcProducts": 742,"signalScore": 70,"signalFlags": ["Death in 4% or more of reports", "Boxed warning on the label", "1 Class I recall(s)", "23 ongoing recall(s)"]}
Recall output example
{"recallNumber": "D-0866-2026","classification": "Class I","classificationMeaning": "Reasonable chance of serious health problems or death","status": "Ongoing","recallingFirm": "VITRUVIAS THERAPEUTICS INC","recallInitiationDate": "2026-08-21","daysRecallLasted": 53,"reasonCategory": "Potency, dissolution or stability failure","isNationwide": true}
How much does it cost to scrape openFDA?
You pay per result: $26 per 1,000 rows plus a tiny start fee. The free plan returns up to 10 rows per run. A safety profile is one row per drug, so profiles of 100 drugs cost a few dollars.
Tips for better results
- Adverse event reports are not proof that a drug caused the event. They come from patients, doctors and companies, can be incomplete or repeated, and depend on how many people use the drug.
- A drug name matches the generic name, the brand name, the substance and the name written in the report. Reports that mention the drug in any role are counted, so a profile describes reports about the drug and not only cases where it was the main suspect.
- The signal score from 0 to 100 is a simple screen built from the shares of serious and fatal reports, the boxed warning, recalls and the trend. It points to drugs worth a closer look and is not a safety rating.
- Without a free FDA access code the FDA allows about 40 requests per minute and about 1,000 per day for each address, so a profile takes about half a minute. With a code, runs are about five times faster. You can get a code at open.fda.gov and paste it in the optional field.
- For a very large list of reports, use dates. The FDA returns at most 25,000 rows per query and the Actor splits long periods for you.
- Recall classes: Class I can cause serious harm or death, Class II can cause temporary harm, Class III is unlikely to cause harm.
- Label text can be long. The length limit field keeps each section to a size you choose.
- For a weekly watch, schedule the Actor with the recalls mode, ongoing status and the last seven days.
Who uses openFDA data?
- Pharmacovigilance and safety teams monitor products and competitors.
- Pharmacists and clinicians check warnings and recalls.
- Lawyers and consultants research product history and regulatory actions.
- Health tech and AI builders feed safety data to apps and agents.
- Journalists and analysts report on recalls and safety trends.
Automate and connect
Schedule the Actor every week and send new recalls to Slack, Google Sheets, Zapier, Make or n8n, or trigger a webhook when a run ends.
FAQ
Do I need an account or a login? No. The Actor works without any login. A free access code from the FDA is optional and speeds up large runs.
Is the data medical advice? No. Do not use it to decide about treatment. Ask a doctor or pharmacist and read the official label.
Why do counts differ from other websites? Sites count reports in different ways, for example with or without duplicates, with the drug in any role or only as suspect.
Can I search by reaction? Yes. In the adverse events mode type a reaction term such as Pancreatitis, with or without a drug.
How current is the data? The FDA updates each data set on its own schedule, and recent reports can arrive months after the event.
Does it cover devices and food? Yes for recalls and device clearances. Adverse event reports and labels are for drugs.
Legal note
This Actor collects information that is publicly visible on the website. The data is provided by the FDA and is not validated. Check the source site's terms and your local rules before using the data.
Support
Missing a field or found a bug? Open an issue from the Actor page.