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 events/markets/selections where markets within said event match selected sort/groupId

GET
/competitions/{competitionId}/marketsByGroupid
sportsdata
Retrieves a list of events/markets/selections where markets within said event match selected sort/groupId
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
The competition 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)
marketSort
string 
required
Filter by market sort (e.g. MR (match result) -- (Outright)).
marketGroupId
string 
required
Filter by marketGroupId (e.g. OB_MG1276585).
Header Params
apiKey
string 
required
Your API Key available from your developer portal

Responses

🟢200Success
application/json
Body
marketGroups
array[object (marketgroup) {5}] 
optional
collectionId
string 
optional
The collectionId of the Market Group, If it has one
competitionId
string 
optional
The CompetitionId of the Market Group
id
string 
required
The Id of the Market Group
marketSort
string 
optional
The market sort of this group
name
string 
required
The Name of the Market Group
🟠400Incorrect or Missing Parameter
🟠404No data found for request
Modified at 2023-08-15 06:10:46
Previous
Retrieves a list of market groups for a given competition id
Next
Retrieves a list of events for the provided IDs.
Built with