/v1/age
Age from remaining fraction
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}