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

Points from han and fu

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

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

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

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

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

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

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

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

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

{
    "data": {
        "note": "Riichi scoring: base = fu × 2^(2 + han); a ron pays base×4 (dealer ×6) rounded up to 100, a tsumo splits base×2 from the dealer and base×1 from each non-dealer (dealer tsumo is base×2 from all three). From 5 han the hand is a limit hand and fu no longer matters. Add honba and riichi sticks separately.",
        "limit": null,
        "inputs": {
            "fu": 30,
            "han": 3,
            "tsumo": false,
            "dealer": false
        },
        "payments": {
            "discarder_pays": 3900
        },
        "base_points": 960,
        "total_points": 3900
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:46.479Z",
        "request_id": "8f177790-cb6a-4120-8722-c6684cc70493"
    },
    "status": "ok",
    "message": "Hand score",
    "success": true
}