SportsData API
  1. competitors
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. competitors

Retrieves competitors for a single event by ID.

GET
/events/{eventId}/competitors
competitors
Retrieves competitors for a single event by ID.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.whapi.com/v2/sportsdata/events//competitors' \
--header 'apiKey;'
Response Response Example
200 - response
{
 "competitors": 
 [
 {
 "id": "1",
 "name": "Springer Dinger",
 "age": "3",
 "drawNumber": "4",
 "jockeyName": "Atzeni, A",
 "weightPounds": "134",
 "silkImageUrl": "http://whdn.williamhill.com/content/sportsbook/silks/55336.gif",
 "trainerName": "Varian, R",
 "ownerName": "Sheikh Mohammed Obaid Al Maktoum"
 "colour": "grey",
 "sex": "Male",
 "formGuide": "4-2711",
 "rating": "27",
 "overview":
 {
 "runner":"Good pedigree; took him five times to click but won his Lingfield novice nicely in the end and duly confirmed himself progressive by following up at Newmarket, again over 7f (good ground); pace was true there so form looks okay and rates a danger to all off 6lb higher."
 "sire":"top-class 2yo over 6-7f inc Phoenix S. Lagardere; sire of Group winners; good record with fillies",
 }
 ]
}

Request

Path Params
eventId
string 
required
The event ID to retrieve information for.
Query Params
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)
Header Params
apiKey
string 
required
Your API Key available from your developer portal

Responses

🟢200Success
application/json
Body
competitors
array[object (competitor) {14}] 
optional
age
number 
optional
The age of the horse
colour
string 
optional
The colour of the horse (There are 5 colours. b = Bay. bl = Black. br = Brown. ch = Chestnut. gr = Grey)
drawNumber
number 
optional
The stall number that the horse is allocated and will start from
formGuide
string 
optional
The form of a horse is a record of significant events, mainly its performance in previous races. For example: The value 874-1 means that the horse finished 8th, then 7th in the next race, then 4th, hyphen here means he did not finish in the race, and was 1st in the last race he was running in.
id
number 
required
Unique identifier of the competitor in the event
jockeyName
string 
optional
The name of the Jockey who's riding the horse
name
string 
optional
The name of competitor that the information is being given for
overview
string 
optional
Additional information about the horse's performance
ownerName
string 
optional
The name of the horses owner(s)
rating
string 
optional
The rating of the horse which is defined by a rating provider. It represents the horse's performance (the higher the rating, the better the horse is)
sex
string 
optional
The sex of the horse (F|M)
silkImageUrl
string 
required
The URL for the image that represents the 'silk' (Coathing pattern) worn by the jockey.
trainerName
string 
optional
The name of the horses trainer
weightPounds
string 
optional
The rider weight (in pounds)
🟠400Incorrect or Missing Parameter
🟠404No data found for request
Modified at 2023-08-15 06:10:46
Previous
Retrieves a weighted list of Selections.
Built with