Stats

Get available leagues from Stats Perform

Returns a list of leagues available from the Stats Perform API, optionally filtered by sport and API type

get/api/stats/mappings/leagues

Request

Request body

sportstring nullable

Filter mappings by sport type

api'stats_api' | 'sdapi' nullable

Filter mappings by StatsPerform API type

Example request

{
  "sport": "basketball",
  "api": "stats_api"
}

Response

List of stats perform mappings with the sport and league fields filled

idinteger

Unique identifier for the mapping

statsSportstring

Name of the sport in Stats Perform system

statsSportIdinteger

Numeric ID of the sport in Stats Perform system

statsLeagueAbbreviationstring nullable

League abbreviation in Stats Perform system

statsLeagueNamestring nullable

League name in Stats Perform system

statsTeamIdstring nullable

Team identifier in Stats Perform system

statsTeamNamestring nullable

Team name in Stats Perform system

suTeamIdinteger nullable

SponsorUnited team/property ID

suTeamNamestring nullable

SponsorUnited team/property name

statsApistring

Stats Perform API source identifier

Example response

[
  {
    "id": 1,
    "statsSport": "basketball",
    "statsSportId": 2,
    "statsLeagueAbbreviation": "nba",
    "statsLeagueName": "National Basketball Association",
    "statsTeamId": "sr:competitor:3417",
    "statsTeamName": "Los Angeles Lakers",
    "suTeamId": 456,
    "suTeamName": "Los Angeles Lakers",
    "statsApi": "SDAPI"
  }
]

Changes

No recorded changes to this operation across all 2 revisions of this API.