Retrieves a list of events/markets/selections where markets within said event match selected sort/groupId
GET
/competitions/{competitionId}/marketsByGroupid
sportsdata
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.whapi.com/v2/sportsdata/competitions//marketsByGroupid?marketSort=&marketGroupId=' \
--header 'apiKey;'
Response Response Example
200 - response
{
"events": [
{
"id": "OB_EV123",
"name": "ManU v City",
"markets": {
"id": "OB_MA1234",
"name": "90 Minutes"
"selections": {
"id": "OB_OU12345",
"fractionalOdds": "2/1"
}
}
}
]
}
Request
Path Params
competitionId
string
required
Query Params
fields
array[string]
optional
include
array[string]
optional
exclude
array[string]
optional
marketSort
string
required
marketGroupId
string
required
Header Params
apiKey
string
required
Responses
Modified at 2023-08-15 06:10:46