Poker Odds

FREEMIUM
By danielamitay
Updated 4 months ago
Tools
6.8/10
Popularity Score
697ms
Latency
89%
Success Rate

Poker Odds API Documentation

An API that calculates win/tie/lose odds for Texas Hold 'Em. Useful for creating poker playing bots.

View API Details
GETOdds
GETOdds

Request the win/tie/loss odds for a given set of hand cards, community cards, and player count. (As = Ace of Spades, Tc = Ten of Clubs, 4d = Four of Diamonds)

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
handSTRING
REQUIRED(Required) A comma-separated list of hand cards. Must consist of two cards.
playersNUMBER
REQUIRED(Required) The number of players at the table (including the player). Min: 2, Max: 10.
Optional Parameters
communitySTRING
OPTIONAL(Optional) A comma-separated list of community cards. If specified, must consist of three, four, or five cards.
Code Snippet
unirest.get("https://poker-odds.p.rapidapi.com/hold-em/odds?community=5d%2C7c%2CAh&hand=As%2CKd&players=3")
.header("X-RapidAPI-Host", "poker-odds.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://poker-odds.p.rapidapi.com/hold-em/odds
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://poker-odds.p.rapidapi.com/hold-em/odds?community=5d%2C7c%2CAh&hand=As%2CKd&players=3")
.header("X-RapidAPI-Host", "poker-odds.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication