# NBL odds API

NBL prices, markets and identifiers through one REST API.

The NBL has the league key `nbl` in the SockOdds API. It is a basketball league based in Australia (sport key `basketball`). Its events have a `home` and an `away` team.

## Request NBL odds

Current prices for the next NBL game, one market, from every bookmaker your plan includes:

```bash
curl -sS "https://api.sockodds.com/v1/odds?league=nbl&markets=winner&limit=1&starts_after=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
  -H "Authorization: Bearer $SOCKODDS_API_KEY"
```

```javascript
const response = await fetch(`https://api.sockodds.com/v1/odds?league=nbl&markets=winner&limit=1&starts_after=${new Date().toISOString().slice(0, 19)}Z`, {
  headers: { Authorization: `Bearer ${process.env.SOCKODDS_API_KEY}` },
});
console.log(JSON.stringify(await response.json(), null, 2));
```

```python
import json, os, urllib.request
from datetime import datetime, timezone

request = urllib.request.Request(
    f"https://api.sockodds.com/v1/odds?league=nbl&markets=winner&limit=1&starts_after={datetime.now(timezone.utc):%Y-%m-%dT%H:%M:%SZ}",
    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):

```json
{
  "data": [
    {
      "id": "ev_000ckk07g84c",
      "name": "Adelaide 36ers v Brisbane Bullets",
      "league": {
        "key": "nbl",
        "name": "NBL"
      },
      "scheduled_start": "2026-10-16T17:00:00.000Z",
      "status": "scheduled",
      "participants": [
        {
          "role": "away",
          "identity": {
            "key": "brisbane_bullets",
            "name": "Brisbane Bullets"
          }
        },
        {
          "role": "home",
          "identity": {
            "key": "adelaide_36ers",
            "name": "Adelaide 36ers"
          }
        }
      ],
      "markets": [
        {
          "id": "mk_gwhzq5xhezbxy2c9",
          "key": "winner",
          "name": "Winner",
          "period": "full",
          "subject": null,
          "alternate": false,
          "outcomes": [
            {
              "id": "oc_xxxs7pk4pasrj24e",
              "name": "Adelaide 36ers",
              "side": "home",
              "line": null,
              "prices": [
                {
                  "bookmaker": "mintbet",
                  "decimal_odds": 1.77,
                  "implied_probability": 0.564972,
                  "available": true,
                  "observed_at": "2026-10-15T07:58:00.000Z"
                },
                {
                  "bookmaker": "sportsbet",
                  "decimal_odds": 1.72,
                  "implied_probability": 0.581395,
                  "available": true,
                  "observed_at": "2026-10-15T07:58:00.000Z"
                }
              ]
            },
            {
              "id": "oc_f1y2anpw86sffn86",
              "name": "Brisbane Bullets",
              "side": "away",
              "line": null,
              "prices": [
                {
                  "bookmaker": "mintbet",
                  "decimal_odds": 2.18,
                  "implied_probability": 0.458716,
                  "available": true,
                  "observed_at": "2026-10-15T07:58:00.000Z"
                },
                {
                  "bookmaker": "sportsbet",
                  "decimal_odds": 2.12,
                  "implied_probability": 0.471698,
                  "available": true,
                  "observed_at": "2026-10-15T07:58:00.000Z"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "count": 1,
    "cursor": null
  },
  "links": {
    "next": null
  }
}
```

Prices are decimal and exactly as each bookmaker showed them, with the time we saw them. A price older than ten minutes is withheld rather than shown as current.

## Bookmakers

2 bookmakers deliver NBL prices through v1 as of 12 October 2026: [Sportsbet](https://sockodds.com/bookmakers/sportsbet-odds-api/) and [Mintbet](https://sockodds.com/bookmakers/mintbet-odds-api/).

## NBL markets

16 market types are defined for the NBL. Ask for any of them with `markets=`; a bookmaker quotes the markets it offers for each game.

### Game markets

| Market | Key | Sides | Line | Periods |
| --- | --- | --- | --- | --- |
| Winner | `winner` | `home`, `away`, `competitor_1`, `competitor_2` | No | `full`, `half_1`, `half_2`, `quarter_1`, `quarter_2`, `quarter_3`, `quarter_4` |
| Handicap | `handicap` | `home`, `away`, `competitor_1`, `competitor_2` | Yes | `full`, `half_1`, `half_2`, `quarter_1`, `quarter_2`, `quarter_3`, `quarter_4` |
| Total points | `total_points` | `over`, `under` | Yes | `full`, `half_1`, `half_2`, `quarter_1`, `quarter_2`, `quarter_3`, `quarter_4` |

### Team markets

| Market | Key | Sides | Line | Periods |
| --- | --- | --- | --- | --- |
| Team points over/under | `team_points_over_under` | `over`, `under` | Yes | `full`, `half_1`, `half_2`, `quarter_1`, `quarter_2`, `quarter_3`, `quarter_4` |

### Player markets

| Market | Key | Sides | Line | Periods |
| --- | --- | --- | --- | --- |
| Player points over/under | `player_points_over_under` | `over`, `under` | Yes | `full` |
| Player rebounds over/under | `player_rebounds_over_under` | `over`, `under` | Yes | `full` |
| Player assists over/under | `player_assists_over_under` | `over`, `under` | Yes | `full` |
| Player three-pointers over/under | `player_three_pointers_over_under` | `over`, `under` | Yes | `full` |
| Player steals over/under | `player_steals_over_under` | `over`, `under` | Yes | `full` |
| Player blocks over/under | `player_blocks_over_under` | `over`, `under` | Yes | `full` |
| Player points, rebounds and assists over/under | `player_points_rebounds_assists_over_under` | `over`, `under` | Yes | `full` |
| Player points and rebounds over/under | `player_points_rebounds_over_under` | `over`, `under` | Yes | `full` |
| Player points and assists over/under | `player_points_assists_over_under` | `over`, `under` | Yes | `full` |
| Player rebounds and assists over/under | `player_rebounds_assists_over_under` | `over`, `under` | Yes | `full` |
| Player double-double | `player_double_double_yes_no` | `yes`, `no` | No | `full` |
| Player triple-double | `player_triple_double_yes_no` | `yes`, `no` | No | `full` |

## Periods

`full` (Full match), `regulation` (Regulation time), `half_1` (First half), `half_2` (Second half), `quarter_1` (First quarter), `quarter_2` (Second quarter), `quarter_3` (Third quarter) and `quarter_4` (Fourth quarter).

## Plans

The NBL is included on Rookie and Pro. Pro adds recorded price history, from 23 December 2025. See [pricing](https://sockodds.com/pricing/).

## Related

- [Basketball odds API](https://sockodds.com/sports/basketball-odds-api/)
- [Every league](https://sockodds.com/leagues/)
- [Markets](https://sockodds.com/docs/markets/)
- [Quickstart](https://sockodds.com/docs/quickstart/)
