alterlab-fda

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

58|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-fda
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alterlab-fda
Source: https://github.com/AlterLab-IEU/AlterLab-Academic-Skills/tree/main/skills/databases/alterlab-fda
Command: npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-fda

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The FDA openFDA data access and query toolkit enables researchers and developers to programmatically retrieve, filter, and analyze regulatory information across drugs, devices, foods, and substances.

Core Features & Use Cases

  • Unified API wrapper for openFDA endpoints (drug, device, food, animal, and other).
  • Support for search, counting, sorting, and pagination with optional API key authentication and caching.
  • Practical use cases include pharmacovigilance analyses, regulatory intelligence, labeling reviews, and recall tracking.

Quick Start

Install the FDAQuery client and run python scripts/fda_examples.py to see sample FDA queries.

Frequently Asked Questions about alterlab-fda

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

FAQPage Schema
How do I query openFDA data for pharmacovigilance analysis?

To query openFDA data for pharmacovigilance analysis, use a unified FDAQuery interface to search and filter drug event datasets. It handles endpoint-specific searches, pagination, and caching to retrieve regulatory information programmatically.

What's the best way to retrieve FDA regulatory information across drugs and devices?

Retrieving FDA regulatory information across drugs and devices is best handled by an API wrapper supporting openFDA endpoints. It enables counting, sorting, and authenticated access with robust error handling to support production-grade data integrations.

Does the openFDA API support rate limiting for production-grade integrations?

Yes, the openFDA API supports rate limiting for production-grade integrations through optional API key authentication. This ensures robust error handling and stable data retrieval when querying drugs, devices, foods, and substances.

How do I get started querying openFDA datasets using Python?

To get started querying openFDA datasets using Python, install the requests dependency and the FDAQuery client. Running the provided example scripts demonstrates sample queries for retrieving regulatory information across multiple endpoints.

Can I track food and animal drug recalls using the openFDA API?

Yes, you can track food and animal drug recalls using the openFDA API. A unified query interface retrieves regulatory information across food, animal, and other endpoints, supporting practical use cases like recall tracking and labeling reviews.

Why do my openFDA API requests fail when searching device endpoints?

openFDA API requests searching device endpoints may fail due to rate limits or missing authentication. The FDAQuery interface provides robust error handling and optional API key authentication to manage these constraints and ensure successful data retrieval.