Get NBA odds

GET/v1/nba/odds

Pre-game and live odds from major sportsbooks. Moneyline, spread, totals, player props. Requires the licensed betting tier.

Code samples

# Get live scores across every league
curl "https://api.sportapi.io/v1/nba/scores/live" \
  -H "Authorization: Bearer $API_KEY"

# Response
{
  "games": [{
    "game_id": "0022500412",
    "status": "in_progress",
    "period": 3, "clock": "07:42",
    "home": { "team": "BOS", "score": 78 },
    "away": { "team": "LAL", "score": 71 },
    "last_play": "J. Tatum makes 3-pt jumper from 25 ft"
  }]
}

Query parameters

ParameterTypeRequiredDescription
game_idstringNoFilter to one game
booksstringNoComma-separated sportsbook IDs (e.g. dk,fd,mgm)
marketstringNomoneyline | spread | total | props

Response

{
  "game_id": "0022500412",
  "markets": {
    "moneyline": {
      "dk": { "home": -180, "away": 155 },
      "fd": { "home": -175, "away": 150 }
    },
    "spread": { "dk": { "home": -4.5, "home_price": -110, "away_price": -110 } }
  }
}

Error responses

StatusCodeDescription
401unauthorizedMissing or invalid API key
403tier_insufficientYour plan tier doesn't include this resource
429rate_limitedExceeded rate limit; honor Retry-After
500internal_errorServer error; retry with exponential backoff