Openfda animal

From OpenVet-Projects/VetClaw · View interactive version

Openfda animal is an AI agent skill from the GitHub repository OpenVet-Projects/VetClaw. 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.

How to use this skill

Skill file

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

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:

Boolean Operators:

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:

Animal Fields:

Reaction Fields:

Report Fields:

Common Veterinary VEDDRA Terms

| Term | Category | Examples |

|------|----------|----------|

| Hepatotoxicity | Organ toxicity | Elevated ALT, liver damage |

| Nephrotoxicity | Organ toxicity | Elevated creatinine, kidney failure |

| Cardiotoxicity | Organ toxicity | Arrhythmias, myocarditis |

| Gastrointestinal | System | Vomiting, diarrhea, hemorrhage |

| Dermatitis | Skin | Rash, hives, edema |

| Anaphylaxis | Immune | Shock, acute hypersensitivity |

| Thrombocytopenia | Hematologic | Low platelet count, bleeding |

| Seizure | Neurologic | Convulsions, ataxia |

| Death | Fatal | Lethal outcome |

Rate Limits

Register for API Key:

https://open.fda.gov/apis/authentication/

Animal Meridian SDK Integration

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

Python (sdk/python/openfda_vet.py):

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):

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:

{
  "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)
  1. Pharmacovigilance Monitoring: Track trends in serious adverse events over time; alert veterinarians to emerging safety signals
  1. Breed-Specific Dosing Refinement: Identify adverse event clusters by breed; inform precision medicine protocols
  1. Drug Interaction Warnings: Cross-reference adverse events to identify potential drug-drug interactions not captured in single-drug studies
  1. Clinical Decision Support: When recommending a drug, query recent adverse events to provide evidence-based safety profile to veterinarian

Limitations

Sources

Rate Limit Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.