🐾PetFeedingCalculator

Feeding API for developers

The exact engine behind the PetFeedingCalculator calculator, as a REST endpoint. One call returns daily calories, grams, ounces, cups and meal splits for any dog or cat — computed with the veterinary RER/MER formula. Ideal for pet-tech apps, pet food e-commerce (portion-per-bag calculators), smart feeders and veterinary tools.

Endpoint

POST /api/v1/feeding

Authentication: Authorization: Bearer <key> or x-api-key header. In development you can test with the key demo-key.

Request

curl -X POST https://petfeedingcalculator.com/api/v1/feeding \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"species":"dog","weightLbs":65,"stage":"adult-neutered","foodType":"dry"}'

Response

{
  "input": { "species": "dog", "weightLbs": 65, "stage": "adult-neutered", "foodType": "dry" },
  "result": {
    "weightLbs": 65, "weightKg": 29.5,
    "rerKcal": 887, "factor": 1.6, "stageLabel": "Adult, neutered/spayed",
    "dailyKcal": 1419, "kcalPer100g": 380,
    "gramsPerDay": 373, "ouncesPerDay": 13.2, "cupsPerDay": 3.7,
    "mealsPerDay": 2, "kcalPerMeal": 710, "gramsPerMeal": 187
  }
}

Parameters

  • species"dog" or "cat" (required)
  • weightLbs — 0.5–350, or weightKg (required)
  • stage — dogs: puppy-young, puppy-older, adult-neutered, adult-intact, active, senior, weight-loss; cats: kitten, adult-neutered, adult-intact, senior, weight-loss
  • foodType dry | wet | raw (optional, default dry)

Get an API key

The API is in early access. Email hello@petfeedingcalculator.com with a line about your use case and expected volume — you'll get a key and current pricing within one business day. Free evaluation tier available.

Estimates are for healthy pets and do not replace veterinary advice. See the methodology.