Skip to main content
GET
/
bets
/
lines
Betting Lines
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/bets/lines \
  --header 'x-api-key: <api-key>'
{
  "lines": {
    "gameId": 123,
    "markets": {
      "spread": {
        "home": {
          "line": 123,
          "odds": 123
        },
        "away": {
          "line": 123,
          "odds": 123
        }
      },
      "moneyline": {
        "home": 123,
        "away": 123
      },
      "total": {
        "line": 123,
        "over": 123,
        "under": 123
      }
    }
  }
}
V1 Legacy Endpoint — This is a V1 API endpoint. For new integrations, we recommend using the Basketball V2 API which provides richer data and more endpoints.

Overview

Returns betting lines for basketball games including point spreads, moneylines, and over/under totals from multiple sportsbooks.

Query Parameters

gameId
integer
required
Game ID to get lines for

Code Examples

curl -X GET "https://v1.basketball.sportsapipro.com/bets/lines?gameId=12345" \
  -H "x-api-key: YOUR_API_KEY"

Response Structure

lines
object
Betting lines for the game

Example Response

{
  "lines": {
    "gameId": 12345,
    "homeTeam": "Los Angeles Lakers",
    "awayTeam": "Boston Celtics",
    "markets": {
      "spread": {
        "home": { "line": -3.5, "odds": -110 },
        "away": { "line": 3.5, "odds": -110 }
      },
      "moneyline": {
        "home": -165,
        "away": 140
      },
      "total": {
        "line": 224.5,
        "over": -110,
        "under": -110
      }
    }
  }
}

Odds Format

All odds are returned in American format:
  • Negative odds (e.g., -150): Amount to bet to win $100
  • Positive odds (e.g., +130): Amount won on a $100 bet

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

gameId
integer
required

Game ID

Example:

12345

Response

200 - application/json

Betting lines retrieved successfully

lines
object
Last modified on April 12, 2026