XPack

Sportsbook API

@XPack

Sportsbook API offers real-time odds for 20 sports leagues across 10 US sportsbooks. Endpoints cover betting advantages, odds (last, closing, opening), events, competitions, participants, and markets. It provides data for various aspects of sports betting, like getting event lists or odds for specific markets.

Sportsbook API Documentation

1. Overview

Sportsbook API is a sports betting API which provides up to the minute odds for 10 major US sportsbooks across 20 different sports leagues.

2. Endpoints

2.1 /v0/advantages/

  • Description: Get betting advantages such as arbitrage, plus ev, or middles
  • Example Usage:
    • Request: GET /v0/advantages/
    • Response: [Details of available betting advantages]

2.2 /v1/advantages/

  • Description: Get betting advantages such as arbitrage, plus ev, middles, or line changes
  • Example Usage:
    • Request: GET /v1/advantages/
    • Response: [Details of available betting advantages including line changes]

2.3 /v1/markets/{marketKey}/outcomes/last

  • Description: Get the last odds for each sportsbook for a single betting market for a single event. These odds may no longer be available to be wagered on.
  • Example Usage:
    • Request: GET /v1/markets/{marketKey}/outcomes/last
    • Response: [Object containing last odds for each sportsbook in the specified market]

2.4 /v1/markets/{marketKey}/outcomes/closing

  • Description: Get the closing odds for each sportsbook for a single betting market for a single event
  • Example Usage:
    • Request: GET /v1/markets/{marketKey}/outcomes/closing
    • Response: [Object containing closing odds for each sportsbook in the specified market]

2.5 /v1/competitions/{competition}/events

  • Description: Get a list of events for a single competition including the main markets and latest outcomes (moneyline, point spread, point total). This endpoint only works for MATCH type events. Futures events will require using a different endpoint
  • Example Usage:
    • Request: GET /v1/competitions/{competition}/events
    • Response: [Array of event objects for the specified competition]

2.6 /v0/participants/{participantKey}/events

  • Description: Get all events for a single participant
  • Example Usage:
    • Request: GET /v0/participants/{participantKey}/events
    • Response: [Array of event objects related to the specified participant]

2.7 /v0/events/

  • Description: Get event data for up to 100 events by providing their event keys
  • Example Usage:
    • Request: GET /v0/events/?eventKeys=eventKey1,eventKey2
    • Response: [Array of event data objects for the specified event keys]

2.8 /v0/competitions/{competitionKey}/instances

  • Description: Get a list of all competition instances (seasons) for a single competition
  • Example Usage:
    • Request: GET /v0/competitions/{competitionKey}/instances
    • Response: [Array of competition instance objects for the specified competition]

2.9 /v1/markets/{marketKey}/outcomes/opening

  • Description: Get the opening odds for each sportsbook for a single betting market for a single event
  • Example Usage:
    • Request: GET /v1/markets/{marketKey}/outcomes/opening
    • Response: [Object containing opening odds for each sportsbook in the specified market]

2.10 /v0/markets/{marketKey}/outcomes/closing

  • Description: Get the closing odds for each sportsbook for a single betting market for a single event
  • Example Usage:
    • Request: GET /v0/markets/{marketKey}/outcomes/closing
    • Response: [Object containing closing odds for each sportsbook in the specified market]

2.11 /v0/markets/{marketKey}/outcomes

  • Description: Get all historical outcomes for a single betting market
  • Example Usage:
    • Request: GET /v0/markets/{marketKey}/outcomes
    • Response: [Array of historical outcome objects for the specified market]

2.12 /v0/events/{eventKey}

  • Description: Get information about a single event
  • Example Usage:
    • Request: GET /v0/events/{eventKey}
    • Response: [Object containing details about the specified event]

2.13 /v0/markets/{marketKey}/outcomes/last

  • Description: Get the last odds for each sportsbook for a single betting market for a single event. These odds may no longer be available to be wagered on.
  • Example Usage:
    • Request: GET /v0/markets/{marketKey}/outcomes/last
    • Response: [Object containing last odds for each sportsbook in the specified market]

2.14 /v0/participants/{participantKey}

  • Description: Get information about a participant
  • Example Usage:
    • Request: GET /v0/participants/{participantKey}
    • Response: [Object containing details about the specified participant]

2.15 /v0/competitions/{competitionKey}/events

  • Description: Get a list of events for a single competition
  • Example Usage:
    • Request: GET /v0/competitions/{competitionKey}/events
    • Response: [Array of event objects for the specified competition]

2.16 /v0/markets/{marketKey}/statistics/latest

  • Description: Get the latest statistics for a single market
  • Example Usage:
    • Request: GET /v0/markets/{marketKey}/statistics/latest
    • Response: [Object containing the latest statistics for the specified market]

2.17 /v0/competitions/

  • Description: Get a list of all competitions that Sportsbook API offers
  • Example Usage:
    • Request: GET /v0/competitions/
    • Response: [Array of competition objects offered by the API]

2.18 /v0/events/{eventKey}/markets

  • Description: Get a list of all markets for a single event
  • Example Usage:
    • Request: GET /v0/events/{eventKey}/markets
    • Response: [Array of market objects for the specified event]

2.19 /v0/markets/{marketKey}/outcomes/opening

  • Description: Get the opening odds for each sportsbook for a single betting market for a single event
  • Example Usage:
    • Request: GET /v0/markets/{marketKey}/outcomes/opening
    • Response: [Object containing opening odds for each sportsbook in the specified market]

2.20 /v0/markets/{marketKey}/outcomes/latest

  • Description: Get the latest odds for a single betting market for a single event
  • Example Usage:
    • Request: GET /v0/markets/{marketKey}/outcomes/latest
    • Response: [Object containing the latest odds for the specified market]

2.21 /v1/markets/{marketKey}/outcomes/latest

  • Description: Get the latest odds for a single betting market for a single event
  • Example Usage:
    • Request: GET /v1/markets/{marketKey}/outcomes/latest
    • Response: [Object containing the latest odds for the specified market]

2.22 /v0/markets/{marketKey}

  • Description: Get information about a single betting market. Outcomes are not returned from this call.
  • Example Usage:
    • Request: GET /v0/markets/{marketKey}
    • Response: [Object containing details about the specified market]
XPack MCP
{
  "mcpServers": {
    "sportsbook-api": {
      "type": "sse",
      "autoApprove":"all",
      "url": "https://mcp.xpack.ai/v1/mcp/sportsbook-api2?authkey={Your-XPack-Auth-Key}"
    }
  }
}
© 2025 XPack. All rights reserved.