Ir al contenido
GET /v1/age

Age from remaining fraction

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/halflife-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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