/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/elo-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/elo-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/elo-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/elo-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"name": "Elo Rating API",
"notes": "Expected score Ea = 1 / (1 + 10^((Rb − Ra) / 400)); new rating = R + K × (score − expected). A higher K-factor makes ratings move faster (32 is common; 16–24 for established players, 40 for new ones). Ratings are returned rounded to whole numbers, with a precise value alongside. This computes ratings — it does not store players or a leaderboard. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/expected",
"params": {
"a": "player A's rating (required)",
"b": "player B's rating (required)"
},
"returns": "the win probability of each player and the favourite"
},
{
"path": "/v1/match",
"params": {
"a": "player A's rating (required)",
"b": "player B's rating (required)",
"k": "K-factor (default 32)",
"result": "a (A wins), b (B wins), draw — or 1, 0.5, 0 for A"
},
"returns": "both updated ratings, the point changes and expected scores"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Compute Elo ratings — the rating system used in chess, esports, games and leaderboards. The expected endpoint returns each player's win probability from their two ratings (the classic 1 / (1 + 10^((Rb−Ra)/400)) formula), tells you the favourite and the rating gap. The match endpoint applies a result — a win, a loss or a draw for player A — and returns both players' updated ratings, the points gained and lost, and the expected scores, using a configurable K-factor (default 32). Pure local maths, no key."
},
"meta": {
"timestamp": "2026-06-03T17:42:19.795Z",
"request_id": "af353ebe-e101-4a9c-8fd0-181168ef546d"
},
"status": "ok",
"message": "Meta",
"success": true
}