SportsData API
The William Hill SportsData REST API is a collection of GET methods to provide William Hill product data such as sport, competition, event, market and…
Media & content#openapi#entertainment
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
The William Hill SportsData REST API is a collection of GET methods to provide William Hill product data such as sport, competition, event, market and selection data (including prices).
Endpoints 15
sportsdata
- GETRetrieves a list of competitions for a given class id.
/classes/:classId/competitions/?isPublished=yes&fields=string&include=string&exclude=string&displayed=yes&channel=string&status=string&sort=id,asc&offset=0&limit=100&culture=stringRetrieves a list of competitions for a given class id. - GETRetrieves a list of events for a given class id.
/classes/:classId/events/?isPublished=yes&fields=string&include=string&exclude=string&displayed=yes&channel=string&settled=true&includeEmpty=true&status=string&sort=id,asc&offset=0&limit=100&headlineSummary=false&includeAllDescendants=false&isInPlay=true&marketCount=1&date=string&dateFrom=string&dateTo=string&eventSort=string&culture=string&marketPublished=yes&marketStatus=string&marketDisplayed=yes&marketChannel=string&marketSort=string&marketEW=string&selectionStatus=string&selectionChannel=string&selectionPublished=yesRetrieves a list of events for a given class id. 'includeAllDescendants' parameter should be accompanied with 'date' filter or one of 'dateFrom' and 'dateTo'… - GETRetrieves a specific competition
/competitions/:competitionId?fields=string&include=string&exclude=string&culture=stringRetrieves a specific competition - GETRetrieves a list of events for a given competition id.
/competitions/:competitionId/events/?isPublished=yes&fields=string&include=string&exclude=string&displayed=yes&channel=string&settled=true&includeEmpty=true&status=string&sort=id,asc&offset=0&limit=100&headlineSummary=false&includeAllDescendants=false&isInPlay=true&marketCount=1&date=string&dateFrom=string&dateTo=string&marketGroupId=string&eventSort=string&culture=string&marketPublished=yes&marketStatus=string&marketDisplayed=yes&marketChannel=string&marketSort=string&marketEW=string&selectionStatus=string&selectionChannel=string&selectionPublished=yesRetrieves a list of events for a given competition id. 'headlineSummary' and includeAllDescendants parameters should be accompanied with 'date' filter or one… - GETRetrieves a list of market groups for a given competition id
/competitions/:competitionId/marketgroups/?fields=string&include=string&exclude=string&sort=id,asc&offset=0&limit=100&culture=string&name=stringRetrieves a list of market groups for a given competition id - GETRetrieves a list of events/markets/selections where markets within said event match selected sort/groupId
/competitions/:competitionId/marketsByGroupid?fields=string&include=string&exclude=string&marketSort=string&marketGroupId=stringRetrieves a list of events/markets/selections where markets within said event match selected sort/groupId - GETRetrieves a list of events for the provided IDs.
/events/?ids=string&isPublished=yes&includeAllDescendants=false&fields=string&include=string&exclude=string&channel=string&settled=true&includeEmpty=true&headlineSummary=false&marketCount=1&sort=id,asc&offset=0&limit=100&marketIds=string&culture=string&marketPublished=yes&marketStatus=string&marketDisplayed=yes&marketChannel=string&marketSort=string&marketEW=string&selectionStatus=string&selectionChannel=string&selectionPublished=yesRetrieves a list of events for the provided IDs. - GETRetrieves a single event by ID.
/events/:eventId?includeAllDescendants=false&fields=string&include=string&exclude=string&headlineSummary=false&marketCount=1&marketIds=string&includeEmpty=true&culture=string&marketPublished=yes&marketStatus=string&marketDisplayed=yes&marketChannel=string&marketSort=string&marketEW=string&selectionStatus=string&selectionChannel=string&selectionPublished=yesRetrieves a single event by ID. - GETGets one or more specific markets
/events/:eventId/markets/?ids=string&includeAllDescendants=false&fields=string&include=string&exclude=string&includeEmpty=true&culture=string&marketPublished=yes&marketStatus=string&marketDisplayed=yes&marketChannel=string&marketSort=string&marketEW=string&selectionStatus=string&selectionChannel=string&selectionPublished=yesRetrieves one or more specific markets. Markets with Live at the end are always In-Play markets. However, not ALL In-Play markets have Live at the end of the… - GETGets one or more selections for a market
/events/:eventId/markets/:marketId/selections/?ids=string&fields=string&include=string&exclude=string&culture=string&selectionStatus=string&selectionChannel=string&selectionPublished=yesRetrieves one or more selections for a market - GETGets a list of all sports
/sports/?sort=id,asc&offset=0&isPublished=yes&limit=100&fields=string&include=string&exclude=string&culture=stringGets a list of all sports - GETRetrieves a list of classes for a given sport id.
/sports/:sportId/classes/?isPublished=yes&fields=string&include=string&exclude=string&displayed=yes&channel=string&status=string&sort=id,asc&offset=0&limit=100&culture=stringRetrieves a list of classes for a given sport id. - GETRetrieves a list of competitions for a given sport id.
/sports/:sportId/competitions/?isPublished=yes&fields=string&include=string&exclude=string&displayed=yes&channel=string&status=string&sort=id,asc&offset=0&limit=100&culture=stringRetrieves a list of competitions for a given sport id. - GETRetrieves a weighted list of Selections.
/topbets/?sportIds=string&competitionIds=string&limit=100&fields=string&include=string&exclude=string¶m_topBetEventId=string&sortName=string&culture=string&Locale=stringRetrieves a weighted list of Selections.
competitors
- GETRetrieves competitors for a single event by ID.
/events/:eventId/competitors?fields=string&include=string&exclude=stringRetrieves competitors for a single event by ID.
API details
- Base URL
https://sandbox.whapi.com/v2/sportsdata- Authentication
- None declared in the description
- Operations
- 15 operations on 15 pathsGET 15
- Main resources
- sportsdata 14competitors 1
- Response formats
application/json- Description format
- Swagger 2.0, API version
2 - Links
- OpenAPI document · Support
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the SportsData API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the SportsData API collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Retrieves a list of competitions for a given class id.” (GET /classes/:classId/competitions/?isPublished=yes&fields=string&include=string&exclude=string&displayed=yes&channel=string&status=string&sort=id,asc&offset=0&limit=100&culture=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the SportsData API?
The William Hill SportsData REST API is a collection of GET methods to provide William Hill product data such as sport, competition, event, market and… It is listed under Media & content and has 15 endpoints.
Who publishes the SportsData API?
It is listed from Whapi's public API description (an OpenAPI document), not published by Whapi on Swastik Codes. Anyone who controls whapi.com can claim the profile by adding a DNS TXT record.
What is the base URL of the SportsData API?
Requests go to https://sandbox.whapi.com/v2/sportsdata. Endpoint paths are added to this base URL.
How do I authenticate with the SportsData API?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the SportsData API have?
15 operations on 15 paths (15 GET). The largest groups are sportsdata, competitors.
Is forking the SportsData API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.