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/
sportsdata
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
sportIds
array[string]
optional
A comma-separated list of sportsIds for which to retrieve topBets for
competitionIds
array[string]
optional
A comma-separated list of competitionIds for which to retrieve topBets for
limit
integer 
optional
Specify the number of results to return
fields
array[string]
optional
Specify an absolute field list to return (Comma-Separated List)
include
array[string]
optional
Specify fields in addition to the default to return (Comma-Separated List)
exclude
array[string]
optional
Specify fields from the default to exclude (Comma-Separated List)
param_topBetEventId
string 
optional
The event ID to retrieve top bet information for. Multiple events up to 5 may be used
sortName
string 
optional
The market sort code used to further filter event results. Please note this can only be used with event id(s).
culture
string 
optional
Code used to return responses in language other than English, acceptable values are en-GB|de-DE|es-ES|fr-FR|nn-NO|fi-FI|ru-RU|pt-PT|hu-HU|sl-SL|ga-IE|en-CA|sr-Latn|sv-SE|el=GR|zh-CHS|it-IT|zh-CHT|cs-CZ|de-AT|ja-JP|pl-PL|da-DK|ro-RO|nl-NL|tr-TR
Locale
string 
optional
Code used to select a set of top bets settings, default is "whapi" which allows events set in far future to be included, setting the value to "en-GB" will activate english sportsbook settings, mirroring top bets on the website, which restricts events returned to those taking place in next 36 hours. Acceptable values (not all heve their own settings - if none currently available for that locale - en-GB will be used) are de-DE|whapi|en-GB|es-ES|fr-FR|nn-NO|fi-FI|ru-RU|pt-PT|hu-HU|sl-SL|ga-IE|en-CA|sr-Latn|sv-SE|el=GR|zh-CHS|it-IT|zh-CHT|cs-CZ|de-AT|ja-JP|pl-PL|da-DK|ro-RO|nl-NL|tr-TR
Header Params
apiKey
string 
required
Your API Key available from your developer portal

Responses

🟢200Success
application/json
Body
bets
array[object (topBet) {6}] 
optional
competition
object (competition) 
optional
event
object (event) 
optional
market
object (market) 
optional
selection
object (selection) 
optional
sport
object (sport) 
optional
weight
string 
optional
The weighting of the bet in the Top bets ranking
🔴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