Bot API
Write your own bot and let it play against the house, on a leaderboard of its own.
- 1
Register a bot
Pick a name and you get an API key. It is shown exactly once.
- 2
Send the key
Every request carries the header
Authorization: Bot gwb_…. Bodies and answers are JSON. - 3
Play & climb
Your bot starts with 1,000 chips, plays every game below and shows up on the bot leaderboard.
Register a bot
By registering a bot you confirm that you are 18 or older and accept the Terms of use.
Your first request
A dice roll staking 1 chip that wins if the number lands under 50.00. The answer holds the result, the payout and the new balance.
curl -X POST https://<your-domain>/api/games/dice \
-H "Authorization: Bot gwb_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"stake":100,"target":5000,"direction":"under"}'Rules & limits
Amounts in cents
All amounts are whole numbers in cents: 100 = 1.00 chip. Stakes from 10 to 10,000,000.
Rate limit
Bots: 10 actions per second, at most 2,500 actions a day (the count restarts at 0:00 UTC), all bots together at most 50,000 a day, and 30 reads per 10 s. People, for comparison: 20 actions per 2 s.
Status codes
429 = rate limit (error "bot_daily_limit": the daily cap of your bot is reached; "bot_pool_exhausted": the shared daily allowance of all bots is used up – either way it starts over at 0:00 UTC, see "resetsAt"), 402 = not enough balance, 409 = wrong state (e.g. betting closed).
Idempotency key
A unique key per bet prevents double bets when you resend after a timeout.
Card counting allowed
In blackjack each bot keeps its shoe (6 decks) – counting is explicitly allowed.
History
A bot's bets stay in its history for 7 days, then we delete them. Balance, rank and leaderboard stay.
Markets read-only
The football and stock markets run on real data: bots can read prices and matches (GET /api/markets/football, /api/markets/stocks) but not trade (403 "bot_no_markets").
As fair as for people
Bots play through the same server-side endpoints as people, so automation gives no edge. They have their own rate limit and leaderboard and get no daily bonus.
Endpoints
Paths relative to this site. GET reads, POST acts; a round's follow-up moves are listed below each other.
Account
Register, read the profile, refill the balance.
- POST
/api/bots/registerPublic, 3 per IP and hour. acceptTerms: true confirms that you are 18 or older and accept the terms of use; without it you get 400 terms_not_accepted.
{"name":"mybot","acceptTerms":true} → { apiKey, terms } - GET
/api/meProfile, balance, rank (rank: 0 Rookie to 10 Obsidian), unread notices from us (notices). Mark one read: POST /api/me/notices {"id":1}.
- POST
/api/bonus/refillRefill the balance to 1,000 when it's below 1 (once an hour).
- GET
/api/leaderboard?board=botsBot leaderboard.
Instant games
One request, one round: the answer holds the result and the new balance.
- POST
/api/games/dice{"stake":100,"target":5000,"direction":"under"} - POST
/api/games/coinflip{"stake":100,"side":"heads","flips":1} - POST
/api/games/targettarget in hundredths: 250 = 2.50×, from 101 to 1000000.
{"stake":100,"target":250} - POST
/api/games/longshotdirection: long or short. leverage: 1, 2, 5, 10, 25, 50, 100, 250, 500 or 1000; from 25× by rank, as for the certificates in Markets.
{"stake":100,"direction":"long","leverage":10} - POST
/api/games/gems{"stake":100} - POST
/api/games/darts{"stake":100,"risk":"medium"} - POST
/api/games/scratchRank game: for bots too, only from its rank on.
{"stake":100,"ticket":"gold"} - POST
/api/games/balldrop{"stake":100,"rows":12,"risk":"medium"} - POST
/api/games/roulette{"bets":[{"type":"red","amount":100},{"type":"straight","value":17,"amount":50}]} - POST
/api/games/slots{"stake":200,"theme":"pharaoh"} - POST
/api/games/baccaratFields: player, banker, tie, playerPair, bankerPair.
{"bets":{"banker":500,"tie":50}} - POST
/api/games/bingo1–4 cards of 25 numbers each, row by row, column B 1–15 … O 61–75, centre 0; 35 balls.
{"stake":100,"cards":[[3,17,33,48,64, …]]} - POST
/api/games/skyacemode: slow, normal, fast, turbo. Premium game: bots only on its free day.
{"stake":100,"mode":"normal"} - POST
/api/games/casescount: 1–5 cases at once. Premium game: bots only on its free day.
{"caseId":"bronze","count":3} - POST
/api/games/kenoPremium game: bots only on its free day.
{"stake":100,"picks":[3,11,19,24,32]}
Games of moves
Start the round, then send moves until it ends.
- POST
/api/games/blackjack{"action":"deal","stake":1000} {"action":"hit|stand|double|split|insurance|no_insurance"} - GET
/api/games/blackjackCurrent hand and shoe info (position, cut card, running count).
- POST
/api/games/poker{"action":"deal","stake":100} {"action":"call"} | {"action":"fold"} - POST
/api/games/videopoker{"action":"deal","stake":100} {"action":"draw","held":[0,2]} - POST
/api/games/schafkopfCard c: suit c >> 3 (0 acorns, 1 leaves, 2 hearts, 3 bells), rank c & 7 (ace, 10, king, Ober, Unter, 9, 8, 7). The answer holds your hand, the cards you may play (legal) and what the others did since (events).
{"action":"start","stake":100} {"action":"bid","bid":null | {"kind":"sauspiel","suit":0} | {"kind":"wenz"} | {"kind":"solo","suit":2}} {"action":"play","card":5} - POST
/api/games/wattenCards as in Schafkopf. schlag: rank 0–7 (ace, 10, king, Ober, Unter, 9, 8, 7), trump: suit 0–3. The answer says in announce what you have to announce, and in legal which cards you may play. Rank game: for bots too only from its rank.
{"action":"start","stake":100} {"action":"move","move":{"schlag":5} | {"trump":2} | {"card":5}} - POST
/api/games/mines{"action":"start","stake":100,"mines":3} {"action":"reveal","tile":7} {"action":"cashout"} - POST
/api/games/hiloPremium game: bots only on its free day.
{"action":"start","stake":100} {"action":"higher|lower|skip"} {"action":"cashout"} - POST
/api/games/towerPremium game: bots only on its free day.
{"action":"start","stake":100,"level":"medium"} {"action":"climb","col":1} {"action":"cashout"} - POST
/api/games/chickenPremium game: bots only on its free day.
{"action":"start","stake":100,"level":"easy"} {"action":"step"} {"action":"cashout"} - POST
/api/games/balloonPremium game: bots only on its free day.
{"action":"start","stake":100,"level":"medium"} {"action":"pump"} {"action":"cashout"} - POST
/api/games/shellsPremium game: bots only on its free day.
{"stake":100,"cups":3,"pick":1} - POST
/api/games/sicboPremium game: bots only on its free day.
{"bets":[{"spot":"small","amount":100},{"spot":"total:10","amount":50}]} - POST
/api/games/penaltyPremium game: bots only on its free day.
{"action":"start","stake":100,"level":"medium"} {"action":"shoot","zone":2} {"action":"cashout"} - POST
/api/games/fivedicePremium game: bots only on its free day.
{"action":"start","stake":100,"variant":"quick|medium|full"} {"action":"roll","held":[0,3]} {"action":"score","box":"fullHouse"} - POST
/api/games/crapsPremium game: bots only on its free day.
{"bets":{"pass":100,"field":50}} {"bets":{"passOdds":300}}
Live rounds
Rounds shared with every player: read the state, then bet.
- GET
/api/crash/statePublic round state, no auth.
- POST
/api/crash/bet{"stake":100,"autoCashout":2.0} - POST
/api/crash/cashout{"roundId":123,"multiplier":1.85} - GET
/api/wheel/stateRound, booster, result and events. Spots: x2, x4, x13, blue, orange, red, coin, treasure, balldrop.
- POST
/api/wheel/bet{"bets":[{"spot":"x2","stake":100},{"spot":"red","stake":50}]} - POST
/api/wheel/pickTreasure hunt only, with chips on it.
{"roundId":12,"block":7} - GET
/api/race/stateThe current race for everyone: the field with its chances to win and odds, after the close the order and the run.
- POST
/api/race/betRank game: bots too only from its rank on. win and place name one horse, exacta two and trifecta three in finishing order.
{"bets":[{"lanes":[2],"kind":"win","stake":100},{"lanes":[4],"kind":"place","stake":50},{"lanes":[4,2],"kind":"exacta","stake":20},{"lanes":[4,2,0],"kind":"trifecta","stake":10}]} - GET
/api/race/me - GET
/api/jackpot/stateThe open pot for everyone: the entries, house bots included, after the close the draw.
- POST
/api/jackpot/joinRank game: for bots too, only from its rank on.
{"stake":500} - GET
/api/jackpot/me - GET
/api/bingoPlayers' room: the round selling cards, the last draw (balls, winners, other players' cards).
- POST
/api/bingoUp to 6 cards per round, 10 chips each.
{"cards":[[…]]} - POST
/api/lotterystake per ticket, default 1000.
{"tickets":[[1,7,12,25,33]],"stake":1000}