PokerData Grading API

The Grading API from PokerData — 1 operation(s) for grading.

GitHub OpenAPI

Operations 1

POST /api/v1/grade/hands Grade hand histories #

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-grading-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-grading-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PokerData Grading 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: Grading
paths:
  /api/v1/grade/hands:
    post:
      tags:
      - Grading
      summary: Grade hand histories
      description: Grade every hero decision in raw hand-history text (no-limit hold'em, heads-up raised pots, cash 2-6 players and tournaments 2-8 players). Preflop decisions grade from the solved ranges; flops not yet solved are solved exactly for the hand, with the hand's own first flop bet in the tree. A solve still running when solveWaitSeconds runs out returns solve_pending; resend to read it. Enterprise keys only.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - text
              properties:
                text:
                  type: string
                  description: Hand-history text, one or many hands (PokerStars, GGPoker, Winamax, WPN/ACR, 888poker, partypoker, iPoker, CoinPoker, DriveHUD XML). 2 MB max.
                hero:
                  type: string
                  description: Player to grade. Default the "Dealt to" player.
                accuracy:
                  type: string
                  enum:
                  - fast
                  - standard
                  - precise
                  default: standard
                  description: Exploitability target for new flop solves, 2% / 1% / 0.5% of the pot.
                solveWaitSeconds:
                  type: integer
                  minimum: 0
                  maximum: 300
                  default: 30
                  description: How long the whole request may wait on live solves.
                maxFlopSolves:
                  type: integer
                  minimum: 0
                  maximum: 20
                  default: 8
                  description: New exact flop solves this request may start.
                maxHands:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 25
                include:
                  type: array
                  items:
                    type: string
                    enum:
                    - ranges
                    - strategy
                    - classes
                    - equity
                    - combos
                  description: Study data per decision. Default all but combos; [] for grades only.
      responses:
        '200':
          description: Summary plus every hand with its graded decisions
        '400':
          description: Invalid body or field out of range
        '403':
          description: Not an Enterprise plan (code enterprise_required)
        '413':
          description: Body over 2 MB
        '422':
          description: No supported hand-history format found
        '503':
          description: Grading service unavailable (code engine_unavailable)
      operationId: postApiV1GradeHands
      x-operation-id-source: derived
components:
  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.