Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Queries, searches, and downloads openFDA data on drugs, devices, foods, tobacco, cosmetics, veterinary products, and recalls.
Use this skill ↓4 of 26 test cases passed with the skill.
3 of 3 safety checks passed
Not used yet
uv: Read the uv skill and follow its Setup instructions to ensure
uv is installed and on PATH.
User Notification: If LICENSE_NOTIFICATION.txt does not already exist in this skill 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.
.env file: Make sure the .env file 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. The user can register for a
free key at https://open.fda.gov/apis/authentication/. If the variable is
missing from .env, do NOT ask the user to paste it into the chat (this
would leak the key into the agent's context). Instead, give the user this
command — substituting ENV_FILE with the resolved literal path to the
.env file:
printf "Enter openFDA API key (typing hidden): " && read -s key && echo && echo "FDA_API_KEY=$key" >> "ENV_FILE" && echo "Saved."
The scripts load credentials automatically via dotenv. NEVER read,
print, or inspect the .env file or its variables (e.g. no cat, grep,
echo, printenv, or os.environ.get on keys). Credentials must stay
out of the agent's context.
Use the Wrapper: ALWAYS execute the provided helper scripts to query the database rather than accessing the database directly. The scripts automatically enforce the required rate limit gracefully.
Rate Limiting: Respect openFDA rate limits. Without API key: 240 requests/min, 1,000 requests/day per IP. With API key: 240 requests/min, 120,000 requests/day per key. Always set an API key before running multi-query workflows.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.