/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/richter-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/richter-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/richter-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"notes": "Magnitudes are dimensionless; energy in joules; seismic moment M0 in newton-metres. One ton of TNT ≈ 4.184×10⁹ J.",
"service": "richter-api",
"formulae": {
"energy": "log10(E) = 1.5·M + 4.8 (joules)",
"energy_ratio": "10^(1.5·(M1 − M2))",
"amplitude_ratio": "10^(M1 − M2)",
"moment_magnitude": "Mw = (2/3)·log10(M0) − 6.07"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/energy": "Radiated energy, TNT equivalent and classification from a magnitude.",
"GET /v1/compare": "Amplitude and energy ratios between two magnitudes.",
"GET /v1/moment-magnitude": "Moment magnitude Mw from seismic moment M0 (or the inverse)."
},
"description": "Seismology calculator: earthquake radiated energy and TNT equivalent from magnitude, magnitude comparison (amplitude and energy ratios) and moment magnitude from the seismic moment."
},
"meta": {
"timestamp": "2026-06-05T11:30:36.268Z",
"request_id": "95e34a43-5602-4219-8103-5ba858c52de5"
},
"status": "ok",
"message": "Meta",
"success": true
}