fda-database

Query openFDA endpoints for drugs, devices, foods, and substances.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill fda-database-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fda-database
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/07-%E4%B8%B4%E5%BA%8A%E5%8C%BB%E5%AD%A6%E4%B8%8E%E7%B2%BE%E5%87%86%E5%8C%BB%E7%96%97/fda-database
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill fda-database-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, time, json, hashlib, pathlib, datetime, collections, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the friction of manually searching and stitching together FDA regulatory information by giving you programmatic access to openFDA endpoints for drugs, devices, recalls, and substances.

Core Features & Use Cases

  • Regulatory data querying: Retrieve structured results for drugs (adverse events, labeling, recalls, shortages), medical devices (events, classifications, 510(k), PMA, recalls, UDIs), food recalls, and animal/veterinary adverse events.
  • Safety & surveillance analysis workflows: Support pharmacovigilance-style investigations by aggregating counts (e.g., most common reactions, serious event totals) and pulling targeted slices by drug/device/substance identifiers.
  • Substance identifier & structure lookups: Resolve UNII codes, map chemical identifiers (e.g., CAS via substance records), and use substance relationships for cross-referencing.

Quick Start

Ask the AI to query openFDA for aspirin adverse event counts and return the top reaction terms with totals.

Frequently Asked Questions about fda-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query openFDA adverse event counts for a specific drug?

You can query openFDA adverse event counts by using the FDAQuery Python client to retrieve structured drug safety data, aggregate reaction terms, and pull targeted slices by drug identifiers.

Can I look up UNII codes and map chemical identifiers like CAS numbers?

You can resolve UNII codes and map chemical identifiers by querying openFDA substance records to cross-reference standardized substance relationships and structures.

What's the best way to retrieve FDA medical device recalls and 510(k) data programmatically?

Query openFDA endpoints using the FDAQuery Python client to retrieve medical device recalls, 510(k) clearances, and classifications with built-in rate limiting and caching.

Does querying openFDA require an API key to avoid rate limits?

Querying openFDA supports optional API-key authentication via the FDAQuery client to increase rate limits and ensure reliable endpoint access for regulatory data retrieval.

How do I aggregate food and animal/veterinary product recall data from openFDA?

You aggregate food and animal/veterinary product recall data by querying openFDA endpoints with the FDAQuery client, retrieving structured results using standardized query parameters and pagination.