SportsData API
  1. sportsdata
SportsData API
  • sportsdata
    • Retrieves a list of competitions for a given class id.
      GET
    • Retrieves a list of events for a given class id.
      GET
    • Retrieves a specific competition
      GET
    • Retrieves a list of events for a given competition id.
      GET
    • Retrieves a list of market groups for a given competition id
      GET
    • Retrieves a list of events/markets/selections where markets within said event match selected sort/groupId
      GET
    • Retrieves a list of events for the provided IDs.
      GET
    • Retrieves a single event by ID.
      GET
    • Gets one or more specific markets
      GET
    • Gets one or more selections for a market
      GET
    • Gets a list of all sports
      GET
    • Retrieves a list of classes for a given sport id.
      GET
    • Retrieves a list of competitions for a given sport id.
      GET
    • Retrieves a weighted list of Selections.
      GET
  • competitors
    • Retrieves competitors for a single event by ID.
      GET
  1. sportsdata

Retrieves a weighted list of Selections.

GET
/topbets/
Retrieves a weighted list of Selections.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.whapi.com/v2/sportsdata/topbets/' \
--header 'apiKey;'
Response Response Example
200 - response
{
 bets:
 {
 weight: "",
 sports:
 {
 isPublished:true,
 id: "",
 name: ""
 },
 competitions:
 {
 isPublished: true,
 parentIds: ["",""],
 betInRunningDelay:9
 description:"The description of the competition"
 cashinAvailable:true,
 channels:["",""],
 displayed:true,
 flags:["",""],
 id:"",
 name:"",
 order: 1,
 status:"A"
 },
 events:
 {
 isPublished: true,
 parentIds:["",""],
 bettingStatus:"",
 betInRunningDelay:5,
 description:"The description of the event",
 cashinAvailable: true,
 channels:["",""],
 country: "",
 displayed: true, 
 flags: ["",""], 
 hasInPlayMarkets:true,
 hasLivePrices:true,
 id: "",
 isInPlay:true,
 marketCountActiveInPlay:2, 
 marketCountActivePreMatch: 3,
 marketCountActiveTotal:9,
 marketCountInPlay:6,
 marketCountPreMatch:2,
 name:"6:10 Windsor",
 order:4, 
 raceNum:"", 
 settled: true,
 eventSort:"",
 startDateTime:"",
 status:"A",
 markets:
 [ 
 {
 isPublished:true,
 parentIds:["",""],
 antepostMarket:true,
 betInRunningDelay:4,
 description:"Additional market information",
 channels:"",
 displayed:true,
 eachWay: true,
 eachWayFactorDen:5, 
 eachWayFactorNum:1,
 eachWayPlaces:3,
 earlyPriceAvailable:true,
 firstFourAvailable:true,
 firstPriceAvailable:true,
 flags:"",
 bestOddsGuaranteed:true,
 isInPlayMarket: true,
 hcapMakeup:5,
 hcapValue: 5,
 id:"OB_MA1",
 livePriceAvailable:true,
 marketGroupCollectionId:"",
 marketGroupId:"",
 marketGroupName:"",
 name:"",
 order:"5",
 quinellaAvailable:true,
 settled:true,
 marketSort:"",
 startingPriceAvailable:true,
 status:"A",
 selections:
 [
 {
 parentIds:["",""],
 isPublished:true,
 description:"",
 cashinPriceNum:5,
 cashinPriceDen:4,
 channels:["",""],
 csAway:5,
 csHome:5,
 currentPriceNum:5,
 currentPriceDen:5,
 displayed:true,
 resultType:"",
 id:"",
 name:"",
 order:5,
 result:"",
 runnerNum:5,
 settled:true,
 status:"A",
 oddsDecimal:1.1,
 resultType:"",
 priceFormatted:
 {
 fractional:"EVS",
 decimal:2,
 american:"+100"
 } 
 }
 ]
 }
 ],
 markets:
 {
 isPublished:true,
 parentIds:["",""],
 antepostMarket:true,
 betInRunningDelay:4,
 description:"Additional market information",
 channels:"",
 displayed:true,
 eachWay: true,
 eachWayFactorDen:5, 
 eachWayFactorNum:1,
 eachWayPlaces:3,
 earlyPriceAvailable:true,
 firstFourAvailable:true,
 firstPriceAvailable:true,
 flags:"",
 bestOddsGuaranteed:true,
 isInPlayMarket: true,
 hcapMakeup:5,
 hcapValue: 5,
 id:"OB_MA1",
 livePriceAvailable:true,
 marketGroupCollectionId:"",
 marketGroupId:"",
 marketGroupName:"",
 name:"",
 order:"5",
 quinellaAvailable:true,
 settled:true,
 marketSort:"",
 startingPriceAvailable:true,
 status:"A",
 selections:
 [
 {
 parentIds:["",""],
 isPublished:true,
 description:"",
 cashinPriceNum:5,
 cashinPriceDen:4,
 channels:["",""],
 csAway:5,
 csHome:5,
 currentPriceNum:5,
 currentPriceDen:5,
 displayed:true,
 resultType:"",
 id:"",
 name:"",
 order:5,
 result:"",
 runnerNum:5,
 settled:true,
 status:"A",
 oddsDecimal:1.1,
 priceFormatted:
 {
 fractional:"EVS",
 decimal:2,
 american:"+100"
 } 
 }
 ]
 },
 selections:
 {
 parentIds:["",""],
 isPublished:true,
 description:"",
 cashinPriceNum:5,
 cashinPriceDen:4,
 channels:["",""],
 csAway:5,
 csHome:5,
 currentPriceNum:5,
 currentPriceDen:5,
 displayed:true,
 resultType:"",
 id:"",
 name:"",
 order:5,
 result:"",
 runnerNum:5,
 settled:true,
 status:"A",
 oddsDecimal:1.1,
 resultType:"",
 priceFormatted:
 {
 fractional:"EVS",
 decimal:2,
 american:"+100"
 } 
 }
 }
}

Request

Query Params

Header Params

Responses

🟢200Success
application/json
Body

🔴500Server Error: Something went wrong
Modified at 2023-08-15 06:10:46
Previous
Retrieves a list of competitions for a given sport id.
Next
Retrieves competitors for a single event by ID.
Built with