Skip to main content
GET
/
trends
Betting Trends
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/trends \
  --header 'x-api-key: <api-key>'

Overview

Returns public betting trends showing the percentage of bets on each side for spreads, moneylines, and totals.

Query Parameters

games
integer
required
Game ID to get trends for

Code Examples

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

Response Structure

Betting trends for the game

Example Response

{
  "trends": {
    "gameId": 12345,
    "spread": {
      "homePercent": 65,
      "awayPercent": 35
    },
    "moneyline": {
      "homePercent": 72,
      "awayPercent": 28
    },
    "total": {
      "overPercent": 55,
      "underPercent": 45
    }
  }
}

Use Case: Fade the Public

Contrarian betting strategies look for situations where the public is heavily on one side:
// Fade the public strategy
const fadeThreshold = 70; // Fade when public is > 70%

if (trends.spread.homePercent > fadeThreshold) {
  console.log(`Fade play: ${trends.spread.homePercent}% on home - consider away`);
}

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

games
integer
required

Game ID

Example:

12345

Response

200

Betting trends retrieved successfully