Aller au contenu
GET /v1/energy

Earthquake energy

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/richter-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/richter-api/v1/energy" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/richter-api/v1/energy", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/richter-api/v1/energy");
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/richter-api/v1/energy",
    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": {
        "note": "Radiated seismic energy: log10(E) = 1.5·M + 4.8 (E in joules). One ton of TNT ≈ 4.184×10⁹ J. Each whole magnitude step releases ~31.6× more energy.",
        "inputs": {
            "magnitude": 6
        },
        "log10_energy": 13.8,
        "energy_joules": 63095734448019.43,
        "classification": "strong (damage in populated areas)",
        "tnt_equivalent_tons": 15080.2425,
        "tnt_equivalent_kilotons": 15.080242
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:36.048Z",
        "request_id": "ed4e2c78-3757-4631-9251-685ba6d11448"
    },
    "status": "ok",
    "message": "Earthquake energy",
    "success": true
}