Ir al contenido
GET /v1/calories

Daily caloric needs (RER/MER)

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/petfood-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/petfood-api/v1/calories" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/petfood-api/v1/calories", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/petfood-api/v1/calories");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/petfood-api/v1/calories",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "RER (resting) = 70 × (kg)^0.75. MER (maintenance, daily need) = RER × a lifestage factor — neutered adult dog 1.6, cat 1.2; weight loss 1.0/0.8; puppy 2–3, kitten 2.5. Pass a custom factor to override. A guide, not a substitute for your vet.",
        "inputs": {
            "unit": "kg",
            "factor": 1.6,
            "weight": 10,
            "species": "dog",
            "lifestage": "neutered",
            "weight_kg": 10
        },
        "mer_kcal": 629.8,
        "rer_kcal": 393.6,
        "mer_factor": 1.6
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:03.705Z",
        "request_id": "0bc88731-c04f-4c4d-b910-0de899239d08"
    },
    "status": "ok",
    "message": "Caloric needs",
    "success": true
}