Skip to content
Back to skills

Faers

ASecurity

Query the FDA Adverse Event Reporting System (FAERS) via openFDA API. Use whenever the user asks about adverse drug reactions, side effects, drug safety signals, or wants to look up reported adverse events for one or more drug names.

  • 230 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
ai-agentsgoreactapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill faers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Faers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Faers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-faers/badge)](https://www.skillsdirectory.com/skills/biotender-max-faers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: faers-query
description: >
  Query the FDA Adverse Event Reporting System (FAERS) via openFDA API.
  Use whenever the user asks about adverse drug reactions, side effects,
  drug safety signals, or wants to look up reported adverse events for
  one or more drug names.
---

# FAERS Query Skill

Query adverse event reports from FDA's FAERS database. No API key required.

## API

| Function | Input | Returns |
|---|---|---|
| `get_metadata()` | — | `{total, last_updated}` |
| `count_reactions(drug, top_n)` | single drug name | `[{term, count}, ...]` |
| `count_reactions_batch(drugs, top_n)` | list of drug names | `{drug: [{term, count}, ...]}` |
| `search_adverse_events(drug, limit)` | single drug name | raw openFDA response dict |
| `summarize_reactions(reactions, drug)` | reaction list + label | compact one-line text |

## Usage

See `if __name__ == "__main__"` block in `faers_query.py` for runnable examples covering: single drug query, batch query, metadata retrieval, raw report inspection, and LLM-friendly summary output.

## Notes

- Drug names should be uppercase (auto-converted internally).
- Input accepts a single string or a list of strings for batch queries.
- `summarize_reactions` produces compact `DRUG: reaction(count), ...` format suitable for LLM context.
- Source: openFDA Drug Adverse Events endpoint (`https://api.fda.gov/drug/event.json`).

Files in this skill

  • README.md1.3 KB
  • SKILL.md1.4 KB
  • __init__.py126 B
  • example.py3.7 KB
  • faers_skill.py6.1 KB
  • retrieve.py818 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.