OpenFDA Drug Side Effect Search Tool
Search FDA Drug Side Effects
Enter a drug name and side effect to see sample results from the FDA's FAERS database. Remember: these are reported side effects, not confirmed risks.
Search Results
Example API Query
Sample Report Data
These are simulated results to demonstrate the format of OpenFDA data. Actual data may vary.
Brand: Glucophage
Dosage: 500mg daily
Onset: 14 days after start
Severity: Moderate
Gender: Female
Weight: 65kg
Recovery: Partial
Important Safety Note
A report indicates a side effect was reported, but it does not prove the drug caused it. Many reports are coincidental. This data is for research purposes only - do not make medical decisions based on these reports. Always consult your healthcare provider.
Every year, over 14 million reports of drug side effects flood into the FDA’s FAERS database. But until 2014, getting access to this data meant downloading massive XML files, wrestling with outdated tools, and waiting weeks just to find one drug’s safety signal. Today, you can pull the same information in seconds using the OpenFDA API-no special clearance, no paperwork, just a free API key and a few lines of code.
What Is OpenFDA, and How Does It Relate to FAERS?
OpenFDA is the U.S. Food and Drug Administration’s public-facing API system. It doesn’t collect new data-it opens up existing government datasets that were buried in hard-to-use formats. The most widely used of these is the FDA Adverse Event Reporting System, or FAERS. FAERS is the official database where doctors, patients, and drug companies report side effects from medications, vaccines, and medical devices. These reports include details like the drug name, patient age, symptoms, and outcomes-like hospitalization or death. Before OpenFDA, researchers had to manually download FAERS data in XML or CSV format, then clean and structure it themselves. That process could take days. OpenFDA changed that. It turned FAERS into a searchable, real-time API. Now you can ask questions like, “Show me all reports of liver damage linked to metformin in people over 65,” and get structured JSON results back in under a second.How to Get Started with the OpenFDA API
You don’t need to be a developer to use OpenFDA-but you do need an API key. Go to open.fda.gov/apis/authentication/ and sign up. You’ll get a key that lets you make 120,000 requests per day. Without a key, you’re capped at 1,000 requests per day, which isn’t enough for serious analysis. Once you have your key, you’re ready to query. The main endpoint for drug side effects is/drug/event. Every request must follow this format:
https://api.fda.gov/drug/event.json?api_key=YOUR_KEY&search=drugname:"metformin"+AND+patient.reaction.reactionmeddrapt:"hepatitis"That’s Elasticsearch syntax. It’s not user-friendly at first, but it’s powerful. You can search by:
- Drug name (generic or brand)
- Reaction term (using MedDRA standardized codes)
- Patient age, gender, or weight
- Outcome (death, hospitalization, life-threatening)
- Date range
skip parameter to page through thousands of reports. For example, to get the second page of 100 results, add &skip=100.
What Data Can You Actually Get?
Each report returned by OpenFDA includes a structured JSON object. Here’s what’s in there:- Drug information: Generic name, brand name, dosage, route of administration
- Reaction details: MedDRA-coded adverse event term (e.g., “hepatitis,” “anaphylaxis”), onset date, severity
- Patient demographics: Age, gender, weight (if reported), location (country only, no addresses)
- Outcome: Recovery status, hospitalization, disability, death
- Reporter type: Doctor, pharmacist, consumer, or manufacturer
Common Mistakes and How to Avoid Them
Most people who try OpenFDA hit walls within the first hour. Here’s what goes wrong-and how to fix it. Mistake 1: Using brand names instead of generic names. Searching for “Lipitor” won’t work well. Use “atorvastatin.” The data is indexed by generic names. If you’re unsure, cross-check with the FDA’s NDC Directory API. Mistake 2: Ignoring rate limits. If you hit 100 requests per minute without a key, or 240 with one, you’ll get blocked. Always build in delays between calls. In Python, usetime.sleep(0.5). In R, the openFDA package handles this automatically.
Mistake 3: Thinking reports = proof. A report says someone took a drug and then got sick. It doesn’t prove the drug caused it. Many side effects are coincidental. A 70-year-old on metformin who gets hepatitis might have hepatitis C, not a drug reaction. OpenFDA shows signals-not diagnoses.
Mistake 4: Skipping the disclaimer. The FDA is clear: “Do not rely on openFDA to make decisions regarding medical care.” This data is for research, not personal health choices. Always consult a doctor before changing medication.
Real-World Use Cases
OpenFDA isn’t just for academics. Here’s how it’s being used right now:- Academic research: Over 350 peer-reviewed studies in 2022 used OpenFDA to analyze drug safety trends. One study found a spike in pancreatitis reports with GLP-1 agonists like semaglutide-years before the FDA issued a warning.
- Consumer tools: Apps like MedWatcher use OpenFDA to show users how often a drug’s side effects are reported compared to similar drugs.
- Pharmaceutical companies: Small biotechs use it to benchmark their drug’s safety profile against competitors before launching clinical trials.
- Public health monitoring: During the 2023 flu season, researchers used OpenFDA to track rare neurological side effects linked to certain vaccines.
Limitations You Can’t Ignore
OpenFDA is powerful-but it’s not perfect.- Data lag: Reports take up to three months to appear in the API. The system needs time to process, de-identify, and validate submissions.
- Underreporting: Only about 1% of all side effects get reported. Most patients don’t know how, or think it’s not worth it.
- No clinical context: You won’t know if the patient had other illnesses, took other drugs, or had genetic risk factors.
- No signal detection: OpenFDA gives you raw reports. It doesn’t tell you if a side effect is statistically unusual. That’s where tools like ARTEMIS or Oracle Argus come in-but those cost $150,000 a year. OpenFDA is free, but you have to do the math yourself.
PharmGKB or MedWatcher that already layer OpenFDA data with analysis.
Tools and Libraries to Make It Easier
You don’t have to write raw HTTP requests. Here are some helpers:- R package:
openFDAon CRAN. Install withinstall.packages("openFDA"). Useset_api_key("your-key-here")and thensearch_drug("metformin"). - Python: Use
requestsandpandas. Example:response = requests.get("https://api.fda.gov/drug/event.json?api_key=...&search=...&limit=100") - JavaScript: Fetch API works fine. Just handle rate limits and CORS.
- Microsoft Power BI: You can connect directly via the OpenFDA connector. Great for dashboards.
What’s Next for OpenFDA?
The FDA is expanding OpenFDA beyond drugs. New endpoints now include:- Medical device adverse events
- Food safety reports
- Tobacco product complaints
Frequently Asked Questions
Is OpenFDA free to use?
Yes, OpenFDA is completely free. You don’t pay for API access, data downloads, or documentation. The only cost is your time to learn how to use it. This is different from commercial tools like Oracle Argus or ARTEMIS, which charge hundreds of thousands of dollars per year.
Can I use OpenFDA to check if my medication is safe?
No. OpenFDA shows reports of side effects, not proven risks. Many reports are coincidental. For example, if you take a drug and then get a headache, it doesn’t mean the drug caused it. Always talk to your doctor or pharmacist before making any changes to your medication. OpenFDA is for research, not personal medical decisions.
Why can’t I find reports for my drug?
There are a few reasons. First, the drug might be too new-reports take up to 90 days to appear. Second, you might be using the brand name. Try the generic name. Third, very few people may have reported side effects. Some drugs have low usage or mild side effects that go unreported. Try searching for similar drugs to compare.
Do I need programming skills to use OpenFDA?
Not necessarily. You can use tools like Microsoft Power BI or the R package openFDA without writing code. But to do deeper analysis-like comparing side effect rates across multiple drugs-you’ll need to understand basic queries and JSON. Start with the R package. It’s the easiest way in.
How often is the data updated?
The FDA updates the OpenFDA database quarterly. New data is added every three months, but it can take up to 90 days after a report is submitted for it to appear. This delay is due to the time needed to process, de-identify, and validate reports. So if you’re looking for the latest safety signals, you’re seeing data that’s up to three months old.