cURL
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 } } } }
Get betting lines, spreads, and totals for basketball games
curl -X GET "https://v1.basketball.sportsapipro.com/bets/lines?gameId=12345" \ -H "x-api-key: YOUR_API_KEY"
Show Properties
Show Markets
Show Spread
Show Moneyline
Show Total
{ "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 } } } }
Your SportsAPI Pro API key
Game ID
12345
Betting lines retrieved successfully
Show child attributes
Was this page helpful?