Naar de inhoud
GET /v1/honba

Honba and riichi-stick bonuses

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/mahjong-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}