Openfda Database
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
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.pywithsearch,count, anddownloadsubcommands, each writing results to a required--outputfile - Enforces quoted NDC strings and
.exactfield 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 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
openFDA Search and Query
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- 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.
.envfile: Make sure the.envfile exists in your home directory. Create one if it does not exist.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 thecredentialsskill 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- Alphagenome Single Variant Analysis2.4K
- Uniprot Database2.4K
- Chembl Database2.4K
- Clinvar Database2.4K
- Ensembl Database2.4K
- Opentargets Database2.4K
- Human Protein Atlas Database2.4K
- Protein Sequence Msa2.4K
- Dbsnp Database2.4K
- Protein Sequence Similarity Search2.4K
- Embl Ebi Ols2.4K
- Reactome Database2.4K
- String Database2.4K
- Foldseek Structural Search2.4K
- Interpro Database2.4K
- Gtex Database2.4K
- Gnomad Database2.4K
- Jaspar Database2.4K
- Quickgo Database2.4K
- Encode Ccres Database2.3K
- Ucsc Conservation And Tfbs2.3K
- Unibind Database2.3K
- Literature Search Arxiv3.8K
- Literature Search Openalex3.5K
Similar to Openfda Database
More Research & Academicfda-databasedavila7/claude-code-templates313 installsQuery the openFDA API for drug, device, food, and veterinary safety data, recalls, approvals, and substance identifiers.
opentargets-databasegoogle-deepmind/science-skills2.4K installsQuery Open Targets Platform for target-disease evidence, druggability, and known drugs through a rate-limited wrapper.
pubchem-databasegoogle-deepmind/science-skills2.5K installsStructured PubChem lookup for names, CIDs, SMILES, properties, safety, bioactivity, and structure searches.
clinicaltrials-databasedavila7/claude-code-templates409 installsQuery ClinicalTrials.gov API v2 to search trials by condition, drug, location, status, or phase.