League

A league or cup. Lists (all_leagues.php, v2 search/league) fill only a few fields; look it up by id for the rest.

Properties

Link copied to clipboard

strLeagueAlternate, split on commas

Link copied to clipboard

idAPIfootball

Link copied to clipboard

idAPIfootballv3

Link copied to clipboard

strBadge

Link copied to clipboard

strBanner

Link copied to clipboard

strCountry

Link copied to clipboard

strCurrentSeason, e.g. 2026-2027 or 2026. Pass it to season endpoints.

Link copied to clipboard

The English description, if any.

Link copied to clipboard

strDescriptionEN, strDescriptionDE, ... keyed by language code (EN, DE)

Link copied to clipboard

intDivision: 1 for a top flight; cups often use 0 or 99

Link copied to clipboard

strNaming: the event-name template, e.g. {strHomeTeam} vs {strAwayTeam}

Link copied to clipboard

strFanart1..strFanart4

Link copied to clipboard

dateFirstEvent

Link copied to clipboard

intFormedYear

Link copied to clipboard

strGender

Link copied to clipboard
val id: Long?

idLeague

Link copied to clipboard

strComplete: whether TheSportsDB considers its data complete

Link copied to clipboard

idCup: true for a cup competition

Link copied to clipboard

strLocked

Link copied to clipboard
val logo: String?

strLogo

Link copied to clipboard
val name: String?

strLeague

Link copied to clipboard

strPoster

Link copied to clipboard

Every field as the API sent it. Use it for fields not modelled yet: team.raw["strKeywords"].

Link copied to clipboard
Link copied to clipboard

strSport

Link copied to clipboard

strTrophy

Link copied to clipboard

strTvRights: free text

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String