Skip to content

NBA All-Star Odds API ​

The Odds API covers NBA All-Star (NBA All-Star Game) odds for live and upcoming games in a simple JSON API.

Not a developer? Current NBA All-Star odds can also be accessed in Excel or Google Sheets. For website owners, the odds widget brings bookmaker odds into websites with a simple HTML tag.

Looking for NBA odds? See the NBA odds API

Features ​

  • NBA All-Star odds are covered for live and upcoming games.

  • Featured markets, including moneyline, spreads, totals are covered for several bookmakers. See the full list of bookmakers.

  • Odds are refreshed at regular intervals. More information on update intervals can be found here.

  • Current odds data are available on all usage plans, including the free usage plan.

  • Historical NBA All-Star odds data is available from Feb 2024 on paid usage plans. More information on historical odds data can be found here.

  • The API response includes deep links to bookmaker websites.

Querying NBA All-Star Odds ​

Featured markets (moneyline, spreads and totals) can be queried using the odds endpoint.

Parameters

To query current NBA All-Star odds for featured markets, the following parameters need to be provided:

  • sport   In this case basketball_nba_all_stars. Data will only be returned when NBA All-Star is in season
  • regions   Regions of bookmakers to return, for example us
  • markets   For example, h2h for moneyline, spreads, totals
  • oddsFormat   decimal or american. This example uses american
  • apiKey   Get a free API key

See the documentation for more options

Example API Request

https://api.the-odds-api.com/v4/sports/basketball_nba_all_stars/odds?regions=us&markets=h2h,spreads,totals&oddsFormat=american&apiKey=YOUR_API_KEY

Example API Response

The API will return live and upcoming NBA All-Star games, including start times, home and away teams, and odds from bookmakers for the specified regions and markets.

json
[{
    "id": "72280d4c6bf5c7f9b01f162e4bfd53a8",
    "sport_key": "basketball_nba_all_stars",
    "sport_title": "NBA All Star",
    "commence_time": "2026-02-15T22:00:00Z",
    "home_team": "World",
    "away_team": "USA Stars",
    "bookmakers": [
        {
            "key": "draftkings",
            "title": "DraftKings",
            "last_update": "2026-02-14T13:55:13Z",
            "markets": [
                {
                    "key": "h2h",
                    "last_update": "2026-02-14T13:55:13Z",
                    "outcomes": [
                        {"name": "USA Stars", "price": 114},
                        {"name": "World", "price": -135}
                    ]
                },
                {
                    "key": "spreads",
                    "last_update": "2026-02-14T13:55:13Z",
                    "outcomes": [
                        {"name": "USA Stars", "price": -105, "point": 2.5},
                        {"name": "World", "price": -115, "point": -2.5}
                    ]
                },
                {
                    "key": "totals",
                    "last_update": "2026-02-14T13:55:13Z",
                    "outcomes": [
                        {"name": "Over", "price": -110, "point": 82.5},
                        {"name": "Under", "price": -110, "point": 82.5}
                    ]
                }
            ]
        },
        ...

The usage cost of the API call in this example is

usage cost = [number of markets] x [number of regions] = 3 x 1 = 3 credits

See the API documentation for details.

Other Sports ​

See the full list of sports covered by The Odds API.

Stay Updated ​

Follow us on X.com or Bluesky to stay updated on new sports, bookmakers, markets and features.