Gets a list of all sports
GET
/sports/
sportsdata
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.whapi.com/v2/sportsdata/sports/' \
--header 'apiKey;'
Response Response Example
200 - response
{
"sports": [
{
"id": "OB_SP43",
"name": "Horse Racing"
},
{
"id": "OB_SP9",
"name": "Football"
}
]
}
Request
Query Params
sort
string
optional
offset
integer
optional
isPublished
string
optional
limit
integer
optional
fields
array[string]
optional
include
array[string]
optional
exclude
array[string]
optional
culture
string
optional
Header Params
apiKey
string
required
Responses
Modified at 2023-08-15 06:10:46