/v1/dog
Dog age to human years
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}