Skip to content

Odds

An oddID is a unique identifier for a specific betting option. It identifies a specific side/outcome to bet on within a specific market.

oddID Format

The oddID combines multiple identifiers into a single unique value:

{statID}-{statEntityID}-{periodID}-{betTypeID}-{sideID}
ComponentDescriptionExamples
statIDThe statistic being wagered onpoints, touchdowns, assists
statEntityIDWho the stat applies tohome, away, all, or a playerID
periodIDThe time period coveredgame, 1h, 1q
betTypeIDThe type of betml, sp, ou
sideIDWhich side of the bethome, away, over, under

Example oddIDs

oddIDDescription
points-home-game-ml-homeMoneyline bet on the home team to win the full game
points-away-game-sp-awaySpread bet on the away team for the full game
points-all-game-ou-overOver bet on total points for the full game
points-home-1h-ml-homeMoneyline bet on the home team to win the 1st half
assists-LEBRON_JAMES_NBA-game-ou-overOver bet on Lebron James assists for the full game

Accessing Odds

Each event returned by the /events endpoint contains odds data in the odds field. The odds field is an object where each key is an oddID and the value contains all data related to that betting option. In other words, you can access odds data by looking at odds.<oddID> for a given oddID.

json
{
  "eventID": "...",
  "odds": {
    "points-home-game-ml-home": {
      "oddID": "points-home-game-ml-home",
      "statID": "points",
      "statEntityID": "home",
      "periodID": "game",
      "betTypeID": "ml",
      "sideID": "home",
      "fairOdds": "-110",
      "bookOdds": "-115",
      "byBookmaker": {
        "draftkings": { "odds": "-112", "available": true },
        "fanduel": { "odds": "-118", "available": true }
      }
    },
    "points-all-game-ou-over": {
      "oddID": "points-all-game-ou-over",
      "statID": "points",
      "statEntityID": "all",
      "periodID": "game",
      "betTypeID": "ou",
      "sideID": "over",
      "fairOdds": "-108",
      "fairOverUnder": "224.5",
      "bookOdds": "-110",
      "bookOverUnder": "224.5",
      "byBookmaker": {
        "draftkings": { "odds": "-110", "overUnder": "224.5", "available": true }
      }
    }
  }
}

Key Odds Fields

FieldDescription
fairOddsConsensus odds without juice (vig removed)
bookOddsConsensus odds across bookmakers (includes juice)
fairSpread / bookSpreadThe spread/handicap value (for spread bets)
fairOverUnder / bookOverUnderThe over/under line (for O/U bets)
byBookmakerOdds broken down by individual bookmaker
started / endedWhether the bet period has started or ended
scoreThe final result value (when available)

Filtering by oddID

Use the oddID query parameter on the /events endpoint to request specific odds:

/events?oddID=points-home-game-ml-home,points-all-game-ou-over

Use includeOpposingOdds=true to automatically include the opposite side of each requested oddID.

See Supported Markets for a complete list of oddID values supported for each league and bookmaker.