Basketball odds API

Basketball leagues, markets and prices through one REST API.

Basketball has the sport key basketball. Its events are between two teams, home and away.

Leagues

LeagueKeyBookmakers delivering
NBAnba23
NBLnbl7

Also in the catalogue, with no prices delivered yet: WNBA (wnba) and Men's college basketball (ncaab).

Request the leagues

curl -sS "https://api.sockodds.com/v1/leagues?sport=basketball" \
  -H "Authorization: Bearer $SOCKODDS_API_KEY"
const response = await fetch("https://api.sockodds.com/v1/leagues?sport=basketball", {
  headers: { Authorization: `Bearer ${process.env.SOCKODDS_API_KEY}` },
});
console.log(JSON.stringify(await response.json(), null, 2));
import json, os, urllib.request

request = urllib.request.Request(
    "https://api.sockodds.com/v1/leagues?sport=basketball",
    headers={"Authorization": "Bearer " + os.environ["SOCKODDS_API_KEY"]},
)
with urllib.request.urlopen(request) as response:
    print(json.dumps(json.load(response), indent=2))

Response from a local copy of the API with invented test prices

{
  "data": [
    {
      "key": "nba",
      "name": "NBA",
      "sport": "basketball",
      "region": "us",
      "periods": [
        "full",
        "regulation",
        "half_1",
        "half_2",
        "quarter_1",
        "quarter_2",
        "quarter_3",
        "quarter_4"
      ]
    },
    {
      "key": "nbl",
      "name": "NBL",
      "sport": "basketball",
      "region": "au",
      "periods": [
        "full",
        "regulation",
        "half_1",
        "half_2",
        "quarter_1",
        "quarter_2",
        "quarter_3",
        "quarter_4"
      ]
    },
    {
      "key": "wnba",
      "name": "WNBA",
      "sport": "basketball",
      "region": "us",
      "periods": [
        "full",
        "regulation",
        "half_1",
        "half_2",
        "quarter_1",
        "quarter_2",
        "quarter_3",
        "quarter_4"
      ]
    },
    {
      "key": "ncaab",
      "name": "Men's college basketball",
      "sport": "basketball",
      "region": "us",
      "periods": [
        "full",
        "regulation",
        "half_1",
        "half_2"
      ]
    }
  ],
  "meta": {
    "count": 4,
    "cursor": null
  },
  "links": {
    "next": null
  }
}

Markets

18 market types are defined for basketball: winner, handicap, total_points, team_points_over_under, player_points_over_under, player_rebounds_over_under, player_assists_over_under, player_three_pointers_over_under, player_steals_over_under, player_blocks_over_under, player_points_rebounds_assists_over_under and player_points_rebounds_over_under and more. Each league page lists the markets and periods that apply to it, and Markets lists them all.

Search across the SockOdds documentation and catalogue.