Aller au contenu
GET /v1/honba

Honba and riichi-stick bonuses

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/mahjong-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Each honba counter adds 300 points to the win (100 from each player on a tsumo, all 300 from the discarder on a ron). Riichi sticks on the table are worth 1000 each and go to the winner. Sticks are picked up; honba carries to the next hand if the dealer keeps winning or on a draw.",
        "inputs": {
            "honba": 2,
            "points": 3900,
            "riichi_sticks": 1
        },
        "total_won": 5500,
        "honba_bonus": 600,
        "riichi_stick_bonus": 1000
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:46.268Z",
        "request_id": "06faedde-9d94-4e20-a671-2cef6c3b3934"
    },
    "status": "ok",
    "message": "Honba bonus",
    "success": true
}