Μετάβαση στο περιεχόμενο
GET /v1/compare

Magnitude comparison

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/richter-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/richter-api/v1/compare" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/richter-api/v1/compare", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/richter-api/v1/compare");
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/compare",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "note": "Per magnitude unit: ground-motion amplitude scales ×10 and radiated energy ×10^1.5 ≈ 31.6. Ratios use M1 relative to M2.",
        "inputs": {
            "magnitude1": 7,
            "magnitude2": 6
        },
        "summary": "Magnitude 7 shakes the ground 10× as much and releases 31.62× the energy of magnitude 6.",
        "energy_ratio": 31.622777,
        "amplitude_ratio": 10,
        "magnitude_difference": 1
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:35.946Z",
        "request_id": "2afe57ec-8a63-45ad-8132-a6f20c68a3df"
    },
    "status": "ok",
    "message": "Magnitude comparison",
    "success": true
}