Naar de inhoud
GET /v1/dog

Dog age to human years

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/dogage-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}