Skip to content

Query, search, and download openFDA data across 28 endpoints for drug, device, food, and regulatory safety records.

CCM score
71 of 100
skills.sh installs
2.4K
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 28 openFDA endpoints across drugs, devices, foods, tobacco, cosmetics, animal and veterinary products, substances, and transparency data
  • Provides openfda_query.py with search, count, and download subcommands, each writing results to a required --output file
  • Enforces quoted NDC strings and .exact field matching so hyphens and multi-word names do not return noisy partial matches
  • Designed for FDA adverse event, recall, labeling, approval, shortage, 510(k), and NDC lookups that need a rate-limit-aware API key

Install

$ npx -y skills add google-deepmind/science-skills --skill openfda-database -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

openFDA Search and Query

Prerequisites

  1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH.
  2. User Notification: If .licenses/openfda_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://open.fda.gov/apis/ and https://open.fda.gov/license, then (2) create the file recording the notification text and timestamp.
  3. .env file: Make sure the .env file exists in your home directory. Create one if it does not exist.
  4. FDA_API_KEY (optional but recommended): Raises the daily request limit from 1,000 to 120,000. The skill works without it, but an agent can easily exhaust the keyless limit in a single session. You can register for a free key at https://open.fda.gov/apis/authentication/. You MUST use the safe credentials protocol in the credentials skill to check for and request this key if this skill looks relevant to the user's request.

Core Rules

Details

Repository
github.com/google-deepmind/science-skills
Categories
Research & Academic, Databases, Data Science & Analytics
First seen
Jul 14, 2026

Questions

What does the openfda-database skill do?

The openfda-database skill queries, searches and downloads data from the openFDA API across drugs, devices, foods, tobacco, cosmetics, animal and veterinary products, substances and transparency data. It covers FDA adverse events, recalls, labeling, approvals, shortages, 510(k) clearances and NDC lookups through all 28 API endpoints.

Does the openfda-database skill need an API key?

The skill works without an API key, but an FDA_API_KEY is optional and strongly recommended. Without a key the daily limit is 1,000 requests, while a free key raises it to 120,000 requests per day, which matters for multi-query workflows.

How do I install the openfda-database skill?

Run npx -y skills add google-deepmind/science-skills --skill openfda-database -y in a project. Once installed, the agent can run its helper script to search, count and download openFDA records to a file.

Why do hyphenated NDC codes return odd results with openfda-database?

In openFDA search syntax an unquoted hyphen acts as a NOT operator, so the skill tells the agent to wrap hyphenated NDCs in double quotes. If a currently marketed NDC returns nothing, the skill falls back to the drug label endpoint for discontinued products.

More from google-deepmind/science-skills

All 36

Similar to Openfda Database

More Research & Academic