Aller au contenu
GET /v1/dog

Dog age to human years

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/dogage-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/dogage-api/v1/dog" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dogage-api/v1/dog", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dogage-api/v1/dog");
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/dogage-api/v1/dog",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Epigenetic model (2019 UCSD): human = 16·ln(dog_age) + 31, valid for dog_age ≥ 1. The AKC table varies by size (small/medium/large/giant); the ×7 rule is the old rule of thumb. A 4-year-old dog is about 53 human years by the epigenetic model.",
        "inputs": {
            "age": 4,
            "size": "medium"
        },
        "human_age_akc": 32,
        "human_age_epigenetic": 53.18,
        "human_age_traditional": 28
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:20.657Z",
        "request_id": "5ef1c1b5-595c-41ea-909f-191cc11889b6"
    },
    "status": "ok",
    "message": "Dog age",
    "success": true
}