Calculation API
Overview
The calculation API turns poker math into JSON. Send a scenario, get back a typed, versioned result
— the same engines that power Poker Lab, available over REST. Authenticate with a product API key
(pw_test_ / pw_live_); each successful call draws a small number of credits.
Endpoints
| Endpoint | What it does |
|---|---|
| Hold'em equity | Win/tie/loss probabilities for hands or ranges |
| ICM deals | ICM-fair prize-pool splits from chip stacks |
| Tournament payouts | Payout schedules from entrants and prize pool |
| Blind structures | Blind-level schedules for a target duration |
| Chip starting stacks | Chip denominations and per-player counts |
Code
What you can rely on
- Deterministic where it can be. Calculations use exact enumeration when the scenario is small enough, and a seeded Monte Carlo estimate (with sample count and margin of error) otherwise.
- Reproducible and auditable. Responses include the engine identifier, so you can store, share, and re-run a scenario later.
- Math, not strategy. The API computes probabilities and structures; it never gives action advice like "call" or "fold," and deal results are suggestions, not tournament rulings.
Conventions
Every endpoint returns the same envelope — requestId, creditsCharged, the engine identifier, and a
result — so you can handle responses uniformly. See How the API works
for authentication, the response envelope, and usage semantics, and the
API reference for the full schemas.