Whapi Sportsdata
Tool for the whapi-sportsdata API.
- Base URL:
https://sandbox.whapi.com/v2/sportsdata - Auth:
bearer(pass your key via theapiKeyinput)
Operations
getcompetitionsforclass— GET /classes/{classId}/competitions/ — Retrieves a list of competitions for a given class id.geteventsforclass— GET /classes/{classId}/events/ — Retrieves a list of events for a given class id.getcompetition— GET /competitions/{competitionId} — Retrieves a specific competitiongeteventsforcompetition— GET /competitions/{competitionId}/events/ — Retrieves a list of events for a given competition id.getmarketgroupsforcompetition— GET /competitions/{competitionId}/marketgroups/ — Retrieves a list of market groups for a given competition idgetmarketsbygroupid— GET /competitions/{competitionId}/marketsByGroupid — Retrieves a list of events/markets/selections where markets within said event match selected sort/groupId
Inputs
apiKey— your whapi-sportsdata API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: getcompetitionsforclass
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: getcompetitionsforclass, geteventsforclass, getcompetition, geteventsforcompetition, getmarketgroupsforcompetition, getmarketsbygroupid |
classId |
string | no | — | Path parameter classId (required by some operations). |
competitionId |
string | no | — | Path parameter competitionId (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |