Naar de inhoud
GET /v1/age

Age from remaining fraction

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "age": 11460,
        "note": "Age comes out in the same time unit as the half-life. Basis of radiometric (e.g. carbon-14) dating.",
        "formula": "t = T½ · log₂(1/fraction) = −ln(fraction) / λ.",
        "half_life": 5730,
        "decay_constant": 0.0001209681,
        "percent_remaining": 25,
        "fraction_remaining": 0.25,
        "half_lives_elapsed": 2
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:02.303Z",
        "request_id": "4f560efd-4936-43e7-8a3d-0ef2b79c0b66"
    },
    "status": "ok",
    "message": "Age from remaining fraction",
    "success": true
}