Oddlyx LogoOddlyx

Consensus Endpoint

View consensus lines and public betting splits across sportsbooks.

GET
/api/v1/nba/odds/consensus

Description

Aggregates odds and public betting information across sportsbooks to provide a market-wide view of sentiment and pricing.

Parameters

NameTypeRequiredDescription
datestring
Optional
YYYY-MM-DD. Defaults to today.
game_idinteger | array
Optional
Filter by game ID(s).
market_typestring
Optional
Filter by specific market key (e.g., 'moneyline').

Response

Returns a list of games with consensus data for their available markets.

Example Request

curl -X GET "https://odds-marketplace.onrender.com/api/v1/nba/odds/consensus?date=2024-01-15" \
  -H "Authorization: Bearer sk_your_api_key_here"

Example Response

{
  "success": true,
  "data": [
    {
      "game_id": 401123456,
      "away_team": { "id": 14, "abbr": "LAL" },
      "home_team": { "id": 21, "abbr": "DEN" },
      "start_time": "2024-01-15T23:00:00.000Z",
      "status": "scheduled",
      "markets": {
        "moneyline": {
          "consensus_home": -135,
          "consensus_away": 115,
          "public_betting": {
            "home_percentage": 65,
            "away_percentage": 35,
            "total_bets": 12500
          }
        },
        "spread": {
          "consensus_line": -5.5
        }
      }
    }
  ],
  "count": 1
}