Openfda Animal logo

Openfda Animal

Organization
OpenVet-Projects
openfda-animal

Query the openFDA Animal and Veterinary endpoints for adverse event reports, approved animal drug products, and veterinary device data. REST API access to FDA CVM public datasets.

Overview

PublisherOpenVet-Projects
RepositoryVetClaw
Skill nameopenfda-animal
Stars
47
Forks
10
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OpenVet-Projects on GitHub. Read the source before you install it.

Installation

Install the Openfda Animal AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OpenVet-Projects/VetClaw/tree/main/skills/databases/openfda-animal
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenVet-Projects/VetClaw.git /tmp/VetClaw
mkdir -p .claude/skills
cp -r /tmp/VetClaw/skills/databases/openfda-animal .claude/skills/openfda-animal
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Openfda Animal in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Openfda Animal on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Openfda Animal is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

OpenFDA Animal & Veterinary

Overview

openFDA provides free, public REST API access to FDA CVM (Center for Veterinary Medicine) databases of animal drug adverse events, approved animal products, and veterinary device data. This skill covers API endpoints, query syntax, searchable fields, rate limits, and SDK integration for veterinary AI applications.

When to Use

  • User queries adverse event frequency for a veterinary drug
  • User searches for FDA-approved animal drug products (NADA database)
  • User researches safety signals or patterns in veterinary pharmacovigilance
  • User programmatically integrates FDA data into a VetClaw application
  • Keywords: openFDA, FDA CVM, adverse event, animal drug, NADA, API, veterinary device, safety signal

API Endpoints

Animal & Veterinary Events (Adverse Event Reports):

https://api.fda.gov/animalandveterinary/event.json

Searchable fields: animal species, drug name, adverse reaction, outcome, date reported

Approved Animal Drug Products (NADA Database):

https://api.fda.gov/animalandveterinary/approved_animal_drug_applications.json

Searchable fields: trade name, generic name, applicant, approval date, species

Veterinary Device Events:

https://api.fda.gov/animalandveterinary/device_event.json

Searchable fields: device type, malfunction, injury, manufacturer

Query Syntax

Basic GET Request:

https://api.fda.gov/animalandveterinary/event.json?search=FIELD:VALUE&limit=10&skip=0

Common Parameters:

  • search: Query expression (field-value pairs connected with AND/OR)
  • limit: Results per page (1-1000, default 20)
  • skip: Offset for pagination (for results >1000)
  • count: Aggregate count by field instead of returning individual records
  • sort: Order results (field name)

Boolean Operators:

  • AND: Both conditions must match
  • OR: Either condition matches
  • NOT: Exclude results matching condition
  • Parentheses for complex expressions: (field1:value1 OR field1:value2) AND field2:value3

Field Query Examples:

drug.name:"amoxicillin" AND animal.species:"DOG"
reaction.veddra_term_name:"hepatotoxicity"
original_receive_date:[20200101 TO 20241231]
outcome:"Fatal"

Searchable Fields - Adverse Events

Drug Fields:

  • drug.name - Generic or brand name
  • drug.dose_value - Numerical dose
  • drug.dose_unit - Unit (mg, mL, etc.)
  • drug.route - Route of administration (PO, IV, IM, topical, etc.)
  • drug.frequency - Dosing frequency

Animal Fields:

  • animal.species - Species affected (DOG, CAT, HORSE, CATTLE, BIRD, etc. — English names, matching the openFDA data and the SDK)
  • animal.breed - Breed (searchable for breed predisposition studies)
  • animal.age_value - Numerical age
  • animal.age_unit - Unit (year, month, week, day)
  • animal.sex - Male, female, unknown
  • animal.weight_value - Weight (for dose-response analysis)

Reaction Fields:

  • reaction.veddra_term_name - VEDDRA (Veterinary Dictionary for Drug Event Reports and Analysis) standardized term
  • reaction.outcome - Death, Euthanasia, Serious, Non-serious, Recovered, Recovering, Unknown
  • reaction.severity - Severity classification

Report Fields:

  • original_receive_date - Date FDA received report (query format: YYYYMMDD)
  • unique_aer_id_number - Unique FDA adverse event report ID (primary identifier)
  • report_id - FDA report identifier
  • serious - Boolean (whether report indicates serious adverse outcome)

Common Veterinary VEDDRA Terms

TermCategoryExamples
HepatotoxicityOrgan toxicityElevated ALT, liver damage
NephrotoxicityOrgan toxicityElevated creatinine, kidney failure
CardiotoxicityOrgan toxicityArrhythmias, myocarditis
GastrointestinalSystemVomiting, diarrhea, hemorrhage
DermatitisSkinRash, hives, edema
AnaphylaxisImmuneShock, acute hypersensitivity
ThrombocytopeniaHematologicLow platelet count, bleeding
SeizureNeurologicConvulsions, ataxia
DeathFatalLethal outcome

Rate Limits

  • Without API key: 240 requests per minute, 1,000 requests per day
  • With API key (free): 240 requests per minute, 120,000 requests per day
  • Rate Limit Headers: Response includes X-Rate-Limit-Limit, X-Rate-Limit-Remaining
  • Exceeding Limits: Server returns HTTP 429 (Too Many Requests); implement exponential backoff retry

Register for API Key: https://open.fda.gov/apis/authentication/

VetClaw SDK Integration

VetClaw includes reference clients for this API. See sdk/ in the repo root.

Python (sdk/python/openfda_vet.py):

python
from openfda_vet import OpenFDAVet

client = OpenFDAVet(api_key="YOUR_KEY")

# Search adverse events by species and drug
events = client.search(species="Dog", drug="Amoxicillin", limit=100)

# Count adverse events by reaction for a specific drug
reactions = client.top_reactions("Cat", drug="Methimazole")

# Count adverse events by outcome
outcomes = client.count("reaction.outcome", species="Dog", drug="Ivermectin")

TypeScript (sdk/typescript/openfda-vet.ts):

typescript
import { OpenFDAVet } from "./openfda-vet";

const client = new OpenFDAVet("YOUR_KEY");

// Search adverse events
const events = await client.search({ species: "Dog", drug: "Amoxicillin", limit: 100 });

// Count top reactions
const reactions = await client.topReactions("Cat", "Methimazole");

// Paginate through results
for await (const page of client.paginate({ species: "Dog", drug: "Ivermectin" })) {
  for (const event of page) console.log(event.unique_aer_id_number);
}

Practical Query Examples

Query 1: MDR1 Sensitivity to Ivermectin

Search for ivermectin adverse events in herding breeds (known MDR1 mutation risk):
drug.name:"ivermectin"
  AND animal.breed:("Collie" OR "Australian Shepherd" OR "Sheltie")
  AND reaction.outcome:("Death" OR "Serious" OR "Euthanasia")
Limit: 100

Query 2: Acetaminophen in Cats (Lethal Combination)

drug.name:"acetaminophen" AND animal.species:"CAT"
Expected outcome: High rate of hepatotoxicity, death (acetaminophen is lethal to cats)

Query 3: Drug Withdrawal Time Safety

Drug: penicillin, Animal: CATTLE, Outcome: Recovery with residue concerns
Verify no unusual severe outcomes reported; extract timeline to recovery

Query 4: Breed Predisposition to Drug Reaction

reaction.veddra_term_name:"seizure"
  AND (drug.name:"phenobarbital" OR drug.name:"levetiracetam")
  AND animal.species:"DOG"
Group by breed to identify predispositions

Query 5: Time-Based Safety Trend

drug.name:"enalapril"
  AND animal.species:"CAT"
  AND original_receive_date:[20150101 TO 20241231]
Count by year to track safety signal emergence over time

Response Structure

Adverse Event Record Example:

json
{
  "unique_aer_id_number": "USA-USFDACVM-2024-US-123456",
  "report_id": "123456789",
  "original_receive_date": "2024-03-15",
  "animal": {
    "species": "DOG",
    "breed": "Labrador Retriever",
    "age_value": 5,
    "age_unit": "year",
    "sex": "female",
    "weight_value": 30,
    "weight_unit": "kg"
  },
  "drug": {
    "name": "amoxicillin",
    "dose_value": 250,
    "dose_unit": "mg",
    "route": "oral",
    "frequency": "twice daily"
  },
  "reaction": {
    "veddra_term_name": "vomiting",
    "outcome": "Recovered",
    "severity": "moderate"
  },
  "serious": false
}

Use Cases in Veterinary AI

  1. Safety Signal Detection: Aggregate adverse events by drug-species-breed to identify unexpected patterns (e.g., increased hepatotoxicity in specific breed using drug X)

  2. Pharmacovigilance Monitoring: Track trends in serious adverse events over time; alert veterinarians to emerging safety signals

  3. Breed-Specific Dosing Refinement: Identify adverse event clusters by breed; inform precision medicine protocols

  4. Drug Interaction Warnings: Cross-reference adverse events to identify potential drug-drug interactions not captured in single-drug studies

  5. Clinical Decision Support: When recommending a drug, query recent adverse events to provide evidence-based safety profile to veterinarian

Limitations

  • Reporting Bias: Adverse events are voluntarily reported; underreporting of minor side effects, overreporting of serious outcomes
  • Incomplete Data: Many adverse event reports lack complete signalment (breed, age), dosing information, or outcome details
  • Temporal Lag: FDA data is typically 6-12 months behind current clinical use; emerging signals may not be captured
  • Causality Uncertainty: Reported adverse event may not be causally related to drug (confounding variables, concurrent medications)
  • Approved Drug Products Database: Limited to FDA-approved products; extralabel use (common in veterinary medicine) not captured
  • This skill is reference only: Data interpretation requires clinical expertise; not a substitute for veterinary consultation

Sources

Rate Limit Best Practices

  • Implement exponential backoff (wait 2^attempt seconds if rate limited)
  • Cache results locally to minimize API calls
  • Use count endpoint instead of fetching all records if only aggregate data needed
  • Batch queries by date range to reduce total requests
  • Monitor X-Rate-Limit-Remaining header; pause if approaching limit

Frequently asked questions

What does the Openfda Animal AI skill do?

Query the openFDA Animal and Veterinary endpoints for adverse event reports, approved animal drug products, and veterinary device data. REST API access to FDA CVM public datasets.

Why use Openfda Animal on TypingMind?

Because you install it once and use it with any model. Openfda Animal is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Openfda Animal in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OpenVet-Projects/VetClaw/tree/main/skills/databases/openfda-animal. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Openfda Animal?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Openfda Animal?

As many as you like. As long as a model supports skills, you can use Openfda Animal with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Openfda Animal AI skill free?

Yes. It is published on GitHub by OpenVet-Projects under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇