/v1/energy
Earthquake energy
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}