← All guides
On this page
Guide Poker semantics · 01/09 Range tools 14 min Intermediate

How do I process poker ranges with an API?

Use PokerKit range endpoints to turn documented notation into concrete combos, inspect deterministic range properties, or estimate range equity with explicit Monte-Carlo controls; use GTO range endpoints when the task is a documented solver range workflow.

Updated Maintained by Pokerai API

Direct answer: use POST /v1/pokerkit/range/expand to expand notation. Use /range/value and /range/nut-advantage for deterministic board-based range analysis, and /range/equity-advantage when you need a Monte-Carlo equity-share estimate. For solver-derived ranges, use the published /v1/gto/range, /v1/gto/flop/projected-range, or /v1/gto/turn/projected-range contracts.

Quick facts

NotationPokerKit range notation arrays such as ["AA", "KQs"]; expand returns concrete two-card combos.
Deterministicrange/expand, range/value, and range/nut-advantage do not use Monte-Carlo sampling.
Monte-Carlorange/equity-advantage accepts documented sample_count and seed; a seed supports reproducible sampling.
QuotaThe deterministic PokerKit range endpoints charge 1 general quota. range/equity-advantage charges 1 solve quota.
GTO rangesGTO range endpoints are separate solver workflows. Read their current request and response schema from the Reference or OpenAPI snapshot.
Use boundaryFor training, coaching, hand review, study, and research; not real-money real-time assistance.

Range notation

Pass a JSON array of notation strings. AA denotes a pocket-pair hand class and KQs denotes suited king-queen; the expand response lists concrete card pairs. Keep notation, board, and player order with your stored review input so a result remains interpretable.

Minimal verified request and response

This public docs-code example calls POST /v1/pokerkit/range/expand. Send your API key in Authorization: Bearer $POKERAI_API_KEY and JSON content type.

{"notation": ["AA", "KQs"]}
{"result": [["Ac", "Ad"], ["Ac", "Ah"], ["Ac", "As"], ["Ad", "Ah"], ["Ad", "As"], ["Ah", "As"], ["Kc", "Qc"], ["Kd", "Qd"], ["Kh", "Qh"], ["Ks", "Qs"]]}

Each inner array is one concrete two-card combo. This response explains the supplied notation; it is not a GTO action recommendation.

Choose the range operation

NeedPublic endpointMethod
Expand notationPOST /v1/pokerkit/range/expandDeterministic combo expansion.
Build a value range on a boardPOST /v1/pokerkit/range/valueDeterministic made-category floor using aggression or floor.
Compare nut sharePOST /v1/pokerkit/range/nut-advantageDeterministic combo-count nut-share split.
Compare equity sharePOST /v1/pokerkit/range/equity-advantageMonte-Carlo estimate for two supplied ranges; use sample_count and seed only as documented.
Advance a solver rangePOST /v1/gto/range, /flop/projected-range, or /turn/projected-rangePublished GTO range contracts for the stated solver workflow.

Deterministic versus Monte-Carlo

Do not label an expand, value, or nut-advantage result as a simulation: those operations are deterministic for the supplied input. equity-advantage is different: it is Monte-Carlo, so its result is an estimate for the submitted ranges and board. A fixed seed makes sampling reproducible, not universally exact; retain the returned sample_count when presenting the result.

Quota and errors

SignalMeaningWhat to do
401missing_api_key or invalid_api_key.Send a valid API-key header; do not expose it in client logs.
429quota_exceeded when the applicable monthly counter is exhausted.Wait for reset or reduce work; do not retry an unchanged request.
422Request validation failed.Check the current Reference or OpenAPI schema for the endpoint and correct the body.

Check quota documentation and the dashboard for current counters. GTO range endpoints follow their own documented quota behavior.

Training and review only

Use Pokerai API for training, coaching, hand review, study, and research. Real-time assistance at real-money tables is prohibited. Do not connect range analysis to live-table automation or present it as a live action instruction.

Related resources