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

Gets one or more selections for a market

GET
/events/{eventId}/markets/{marketId}/selections/
sportsdata
Retrieves one or more selections for a market
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.whapi.com/v2/sportsdata/events//markets//selections/' \
--header 'apiKey;'
Response Response Example
200 - response
{
 "selections": [
 {
 "id": "OB_OU3863",
 "currentPriceNum": 14,
 "currentPriceDen": 1,
 "name": "Liverpool 2-1",
 "status": "A"
 },
 {
 "id": "OB_OU3846",
 "currentPriceNum": 11,
 "currentPriceDen": 2,
 "name": "Forest Green 1-0",
 "status": "A"
 }
}

Request

Path Params
eventId
string 
required
The event ID to retrieve information for.
marketId
string 
required
The market id to retrieve information for
Query Params
ids
array[string]
optional
A comma-separated list of selectionIds
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)
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
selectionStatus
string 
optional
Specify a status to filter results by. This is currently A (active) or S (suspended)
selectionChannel
string 
optional
Specify a channel filter and only results from that channel will be returned
selectionPublished
string 
optional
Specify whether only active entities should be returned, according to the William Hill definition of active
Header Params
apiKey
string 
required
Your API Key available from your developer portal

Responses

🟢200Success
application/json
Body
selections
array[object (selection) {22}] 
optional
cashinPriceDen
number 
optional
The cashin price denominator
cashinPriceNum
number 
optional
The cashin price numerator
channels
array[string]
optional
A list of channels that applies to this selection
csAway
number 
optional
The away score in a correct score event
csHome
number 
optional
The home score in a correct score event
currentPriceDen
number 
optional
Denominator of the price
currentPriceNum
number 
optional
Numerator of the price
description
string 
optional
The description of the selection
displayed
boolean 
optional
Wether this selection should be displayed or not
id
string 
required
The Id of the selection
isPublished
boolean 
optional
Indicates if the item is published
name
string 
required
The name of the selection
oddsDecimal
number 
required
The selection price, in decimal format
oddsFractional
number 
required
The selection price, in fractional format
order
number 
optional
The display order of the selection
parentIds
array[string]
optional
A list of IDs of parent entities
priceFormatted
object (priceFormatted) 
optional
result
string 
optional
The result of this selection
resultType
string 
optional
football Result
runnerNum
number 
optional
The runner number in race events
settled
boolean 
optional
Wether this selection has been settled or not
status
string 
required
The status of the selection (A for Active or S for Suspended)
🟠400Incorrect or Missing Parameter
🟠404No data found for request
Modified at 2023-08-15 06:10:46
Previous
Gets one or more specific markets
Next
Gets a list of all sports
Built with