# Mahjong Hand Checker > Pay-per-call API (x402, USDC on Base (mainnet)) for checking a mahjong hand under Hong Kong, Taiwanese 16-tile, Riichi and Chinese Official rule sets. > STATUS: live. Operator: Ordstirr (https://ordstirr.com) ## What it does - Tells you whether a hand is a complete win, shows the shape (sets and pair, seven pairs, thirteen orphans) and every way it can be split, lists the tiles a ready hand is waiting on, and gives the shanten (tiles away from ready). - Scores the win (faan or tai, points, itemised) for Hong Kong Old Style and Taiwanese 16-tile. Riichi and Chinese Official get the win-shape check, waits and shanten; scoring for them is reported as not available. - Simple repeatable rules, no AI model, nothing is stored except a hash for the payment log. ## What it does NOT do - Scoring follows Ordstirr's own written rule sets (house rules from published faan/tai lists), not an official tournament ruling. - It does not use any tournament card or league card content. It does not cover American-style card mahjong. - Riichi yaku/dora/fu and Chinese Official fan are not scored (shape only). ## Endpoints - POST https://mahjong.ordstirr.com/v1/check-hand ($0.02) Check a mahjong hand: win or not, shape, waits, shanten and score (Hong Kong, Taiwanese, Riichi shape, Chinese Official shape) Example body: {"rules":"hk","tiles":"234c 567b 789d 555d 66b","winning_tile":"6b","self_drawn":true,"seat_wind":"E","round_wind":"E"} ## Terms - Informational only, as is, no warranty. Terms of service: https://ordstirr.com/agents/terms - Refund contact: li8ertyapps@gmail.com - Every paid response includes terms_url and a one-line notice field. ## How to call - No account, no API key. Unpaid requests return HTTP 402 with x402 terms in the PAYMENT-REQUIRED header. Pay with an x402 client (e.g. @x402/fetch) and retry. - Invalid input is rejected with HTTP 400 before any charge. ## Free endpoints - GET https://mahjong.ordstirr.com/health - GET https://mahjong.ordstirr.com/openapi.json - GET https://mahjong.ordstirr.com/docs - GET https://mahjong.ordstirr.com/.well-known/x402