PokerData NLHE API

The NLHE API from PokerData — 9 operation(s) for nlhe.

GitHub OpenAPI

Operations 9

GET /api/v1/ranges/games Preflop game catalog #
GET /api/v1/ranges/nl/config NLHE 6-max table config #
GET /api/v1/ranges/nl/range NLHE 6-max range (no per-hand EV) #
GET /api/v1/ranges/nl/node NLHE 6-max decision node (no per-hand EV) #
GET /api/v1/ranges/nl/v2 NLHE discovery #
GET /api/v1/ranges/nl/v2/config NLHE 6-max v2 table config #
GET /api/v1/ranges/nl/v2/range NLHE range #
GET /api/v1/ranges/nl/v2/node NLHE decision node #
GET /api/v1/ranges/nl/v2/spots NLHE spots #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pokerdata-io:pokerdata-io-nlhe-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pokerdata-io-nlhe-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PokerData NLHE API
  version: 1.0.0
  description: 'Read-only JSON APIs for GTO preflop ranges (NLHE & PLO) and postflop replay-pack strategy trees. schemaVersion 1. sizeBb, stacks, blinds, and ante are big blinds. evs are small blinds (evUnit sb) relative to folding when evBaseline is fold (every stored fold EV is 0). Two small blinds are one big blind; evs are not rescaled. An omitted hand weight means 0. full=1 writes all 169 hold''em hands with explicit 0. Code 40000+pct is a raise of pct percent of the pot after calling (blinds and a dead ante are in the pot): raiseTo = currentBet + (pct/100) * potAfterCall. nlmtt8 40bb open 40034 is sizeBb 2.19 (pack label 2.2x); SB 40060 is sizeBb 2.8 (label 2.8x). Convergence is not published.'
  contact:
    url: https://pokerdata.io/api
servers:
- url: https://pokerdata.io
  description: Preflop ranges and postflop catalog/node
- url: https://www.pokerstudy.ai
  description: Replay-pack bundles
security:
- bearerAuth: []
tags:
- name: NLHE
paths:
  /api/v1/ranges/games:
    get:
      tags:
      - NLHE
      summary: Preflop game catalog
      description: Stacks and positions for each public game. Security is optional. A Bearer key is accepted but not required.
      security:
      - {}
      - bearerAuth: []
      responses:
        '200':
          description: Catalog
          content:
            application/json:
              example:
                games:
                - id: nl
                  discovery: /api/v1/ranges/nl/v2
                  stacks:
                  - 20
                  - 30
                  - 40
                  - 50
                  - 70
                  - 100
                  - 150
                  - 200
                  positions:
                  - BB
                  - BTN
                  - CO
                  - HJ
                  - SB
                  - UTG
      operationId: getApiV1RangesGames
      x-operation-id-source: derived
  /api/v1/ranges/nl/config:
    get:
      tags:
      - NLHE
      summary: NLHE 6-max table config
      description: Seats, stacks, blinds, and open sizes for one depth. Security is optional.
      security:
      - {}
      - bearerAuth: []
      parameters:
      - $ref: '#/components/parameters/stack'
      responses:
        '200':
          description: Table config
      operationId: getApiV1RangesNlConfig
      x-operation-id-source: derived
  /api/v1/ranges/nl/range:
    get:
      tags:
      - NLHE
      summary: NLHE 6-max range (no per-hand EV)
      description: Same trees as /nl/v2/range without EV. Needs a key (free with an account, 25 calls a month) or $0.01 a call over x402.
      parameters:
      - $ref: '#/components/parameters/stack'
      - $ref: '#/components/parameters/spot'
      - $ref: '#/components/parameters/handNl'
      responses:
        '200':
          description: Range
      operationId: getApiV1RangesNlRange
      x-operation-id-source: derived
  /api/v1/ranges/nl/node:
    get:
      tags:
      - NLHE
      summary: NLHE 6-max decision node (no per-hand EV)
      description: Same trees as /nl/v2/node without EV. Needs a key (free with an account, 25 calls a month) or $0.01 a call over x402.
      parameters:
      - $ref: '#/components/parameters/stack'
      - $ref: '#/components/parameters/history'
      - $ref: '#/components/parameters/handNl'
      responses:
        '200':
          description: Node
      operationId: getApiV1RangesNlNode
      x-operation-id-source: derived
  /api/v1/ranges/nl/v2:
    get:
      tags:
      - NLHE
      summary: NLHE discovery
      description: Covered stacks and positions plus manifest metadata. Free, no key.
      security: []
      responses:
        '200':
          description: Discovery payload
          content:
            application/json:
              example:
                game: nl
                version: 2
                generatedAt: '2026-06-08T12:00:00.000Z'
                bundleCount: 48
                stacks:
                - 20
                - 30
                - 40
                - 50
                - 70
                - 100
                - 150
                - 200
                positions:
                - BB
                - BTN
                - CO
                - HJ
                - SB
                - UTG
      operationId: getApiV1RangesNlV2
      x-operation-id-source: derived
  /api/v1/ranges/nl/v2/config:
    get:
      tags:
      - NLHE
      summary: NLHE 6-max v2 table config
      description: Seats, stacks, blinds, and open sizes for one depth, v2 trees. Security is optional.
      security:
      - {}
      - bearerAuth: []
      parameters:
      - $ref: '#/components/parameters/stack'
      responses:
        '200':
          description: Table config
      operationId: getApiV1RangesNlV2Config
      x-operation-id-source: derived
  /api/v1/ranges/nl/v2/range:
    get:
      tags:
      - NLHE
      summary: NLHE range
      description: The range for one spot. Path must end in an action. Only nonzero weights are returned. Needs a key (free with an account, 25 calls a month) or $0.01 a call over x402.
      parameters:
      - $ref: '#/components/parameters/stack'
      - $ref: '#/components/parameters/spot'
      - $ref: '#/components/parameters/handNl'
      responses:
        '200':
          description: Range
          content:
            application/json:
              example:
                game: nl
                version: 2
                stack: 100
                spot: UTG_60%_HJ_Call
                actor: HJ
                hand: AKs
                freq: 0.35
                ev: 1.84
                combos: 61.9
                weights:
                  AKs: 0.35
                  QQ: 0.62
                  JJ: 1
                evs:
                  AKs: 1.84
                  QQ: 2.31
        '401':
          description: Missing or inactive key
        '404':
          description: Spot not in the dataset
      operationId: getApiV1RangesNlV2Range
      x-operation-id-source: derived
  /api/v1/ranges/nl/v2/node:
    get:
      tags:
      - NLHE
      summary: NLHE decision node
      description: Every available action at a node, with ranges. Path must end in a position. Needs a key (free with an account, 25 calls a month) or $0.01 a call over x402.
      parameters:
      - $ref: '#/components/parameters/stack'
      - $ref: '#/components/parameters/history'
      - $ref: '#/components/parameters/handNl'
      responses:
        '200':
          description: Node
      operationId: getApiV1RangesNlV2Node
      x-operation-id-source: derived
  /api/v1/ranges/nl/v2/spots:
    get:
      tags:
      - NLHE
      summary: NLHE spots
      description: Every valid decision node for a stack, tagged by depth (1 = RFI, 2 = vs open, …).
      parameters:
      - $ref: '#/components/parameters/stack'
      responses:
        '200':
          description: Spot list
      operationId: getApiV1RangesNlV2Spots
      x-operation-id-source: derived
components:
  parameters:
    handNl:
      name: hand
      in: query
      schema:
        type: string
        example: AKs
      description: 169-grid class.
    spot:
      name: spot
      in: query
      required: true
      schema:
        type: string
      description: Action path ending in an action.
    stack:
      name: stack
      in: query
      required: true
      schema:
        type: integer
      description: Stack depth in bb.
    history:
      name: history
      in: query
      required: true
      schema:
        type: string
      description: Action path ending in the position about to act.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pdk_
      description: Key from https://pokerdata.io/app/dashboard. Prefix `pdk_`.
    clerkCookie:
      type: apiKey
      in: cookie
      name: __session
      description: Poker Study AI Clerk session. Studio required.