Free API
Concierge API
Enterprise API
Get a league by ID
Available for: Free API, Concierge API, Enterprise API.
Get a league's ID, name, and full name using its numeric ID. Check success and messages if the requested league is not found.
Free API covers its supported sportsbooks and delayed REST data. Concierge API covers NFL, NBA, MLB, NHL, and WNBA. Enterprise API follows the data scope selected for your integration.
Path Parameters
- Type: integerFormat: int32idrequired
Signed 32-bit integers (commonly used integer type).
Query Parameters
- Type: stringapi
-version
Headers
- Type: stringX
- A P I - Version
Responses
- 401
Authentication is missing, invalid, expired, or revoked.
- 403
This request is outside the key's API tier or data scope.
Request Example for get/league/{id}
curl https://data.unabated.com/league/1 \
--header 'X-Api-Key: YOUR_SECRET_TOKEN'
{
"data": {
"id": 1,
"name": null,
"fullName": null,
"modifiedOn": null
},
"success": true,
"messages": [
"string"
],
"pagination": {
"nextCursor": null,
"previousCursor": null
}
}