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 list of classes for a given sport id.

GET
/sports/{sportId}/classes/
sportsdata
Retrieves a list of classes for a given sport id.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.whapi.com/v2/sportsdata/sports//classes/' \
--header 'apiKey;'
Response Response Example
200 - response
{
 "classes": [
 {
 "id": "OB_CL1",
 "name": "UK Football",
 "status": "A"
 }
 ]
}

Request

Path Params
sportId
string 
required
The sport id to retrieve information for.
Query Params
isPublished
string 
optional
Specify whether only active entities should be returned, according to the William Hill definition of active
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)
displayed
string 
optional
Specify whether to return displayed entities or not
channel
string 
optional
Specify a channel filter and only results from that channel will be returned
status
string 
optional
Specify a status to filter results by. This is currently A (active) or S (suspended)
sort
string 
optional
The field to order the response by, followed by the order. For example: name,desc
offset
integer 
optional
Skip over a number of elements by specifying a start value for the query
limit
integer 
optional
Specify the number of results to return
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
Header Params
apiKey
string 
required
Your API Key available from your developer portal

Responses

🟢200Success
application/json
Body
classes
array[object (class) {4}] 
optional
id
string 
required
The Id of the Class
isPublished
boolean 
optional
Indicates if the item is published
name
string 
required
The description of the Class
status
string 
optional
Indicates if the class is (A)ctive or (S)uspended
🟠400Incorrect or Missing Parameter
🟠404No data found for request
Modified at 2023-08-15 06:10:46
Previous
Gets a list of all sports
Next
Retrieves a list of competitions for a given sport id.
Built with