# NCAA Basketball Odds API

The Odds API covers NCAAB odds for live and upcoming games in a simple JSON API.

Not a developer? Current NCAAB 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.

# Features

  • NCAAB 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.

  • Additional markets including player props, quarter and half time markets, and more are covered for most US bookmakers. See the full list of betting markets.

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

  • NCAAB scores are covered, with final scores available for games completed up to 3 days ago.

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

  • Historical NCAAB odds data is available on paid usage plans. Historical odds for featured markets (moneyline, spreads, totals) are available from mid-2020. Historical odds for other markets are available from May 2023. More information on historical odds data can be found here.

  • The API response includes deep links to bookmaker websites.

# Querying NCAAB Odds

Featured markets (moneyline, spreads and totals) can be queried using the odds endpoint. For additional markets including player props, use the event-odds endpoint.

Parameters

To query current NCAAB odds for featured markets, the following parameters need to be provided:

  • sport   In this case basketball_ncaab
  • regions   Regions of bookmakers to return, for example us
  • markets   For example, h2h for moneyline, spreads and totals
  • apiKey   Get a free API key

See the documentation for more options

Example API Request

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

Example API Response

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

[{
    "id": "9d4a4c158fb7ee8ac579ea4d16eb4633",
    "sport_key": "basketball_ncaab",
    "sport_title": "NCAAB",
    "commence_time": "2025-02-15T00:00:00Z",
    "home_team": "Loyola (Chi) Ramblers",
    "away_team": "Saint Louis Billikens",
    "bookmakers": [
      {
        "key": "betonlineag",
        "title": "BetOnline.ag",
        "last_update": "2025-02-14T23:16:03Z",
        "markets": [
          {
            "key": "h2h",
            "last_update": "2025-02-14T23:16:03Z",
            "outcomes": [
              {"name": "Loyola (Chi) Ramblers", "price": -145},
              {"name": "Saint Louis Billikens", "price": 125}
            ]
          },
          {
            "key": "spreads",
            "last_update": "2025-02-14T23:16:03Z",
            "outcomes": [
              {"name": "Loyola (Chi) Ramblers", "price": -112, "point": -2.0},
              {"name": "Saint Louis Billikens", "price": -108, "point": 2.0}
            ]
          },
          {
            "key": "totals",
            "last_update": "2025-02-14T23:16:03Z",
            "outcomes": [
              {"name": "Over", "price": -105, "point": 140.0},
              {"name": "Under", "price": -115, "point": 140.0}
            ]
          }
        ]
      },
      ...

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.

# Query Any NCAAB Markets

Any supported NCAAB markets can be queried one game at a time using the event-odds endpoint.

Parameters

To query current NCAAB odds for any market, including player props, half and quarter time markets and more, the following parameters need to be provided:

  • sport   In this case basketball_ncaab
  • eventId   This example uses the id of Saint Louis Billikens @ Loyola (Chi) Ramblers (id 9d4a4...). A list of current event ids can be queried using the events endpoint.
  • regions   Regions of bookmakers to return, for example us
  • markets   For example h2h_h1 (1st half moneyline), player_points, player_rebounds
  • apiKey   Get a free API key

See the documentation for more options.

Example API Request

https://api.the-odds-api.com/v4/sports/basketball_ncaab/events/9d4a4c158fb7ee8ac579ea4d16eb4633/odds?regions=us2&markets=h2h_h1,player_points,player_rebounds&oddsFormat=american&apiKey=YOUR_API_KEY

Example API Response

The response will contain the specified NCAAB game including odds from the specified bookmakers and markets.

{
  "id": "9d4a4c158fb7ee8ac579ea4d16eb4633",
  "sport_key": "basketball_ncaab",
  "sport_title": "NCAAB",
  "commence_time": "2025-02-15T00:00:00Z",
  "home_team": "Loyola (Chi) Ramblers",
  "away_team": "Saint Louis Billikens",
  "bookmakers": [
    {
      "key": "espnbet",
      "title": "ESPN BET",
      "markets": [
        {
          "key": "h2h_h1",
          "last_update": "2025-02-14T23:20:13Z",
          "outcomes": [
            {"name": "Loyola (Chi) Ramblers", "price": -140},
            {"name": "Saint Louis Billikens", "price": 110}
          ]
        },
        {
          "key": "player_points",
          "last_update": "2025-02-14T23:20:13Z",
          "outcomes": [
            {"name": "Over", "description": "Robbie Avila", "price": 105, "point": 16.5},
            {"name": "Under", "description": "Robbie Avila", "price": -150, "point": 16.5},
            {"name": "Over", "description": "Gibson Jimerson", "price": 115, "point": 16.5},
            {"name": "Under", "description": "Gibson Jimerson", "price": -165, "point": 16.5},
            ...
          ]
        },
        {
          "key": "player_rebounds",
          "last_update": "2025-02-14T23:20:13Z",
          "outcomes": [
            {"name": "Over", "description": "Kalu Anya", "price": -135, "point": 7.5},
            {"name": "Under", "description": "Kalu Anya", "price": -105, "point": 7.5},
            {"name": "Over", "description": "Robbie Avila", "price": -185, "point": 5.5},
            {"name": "Under", "description": "Robbie Avila", "price": 130, "point": 5.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

If you only need featured markets (moneyline, spreads, totals), it will be more cost-efficient to query the odds endpoint since it will return multiple games.

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.