Lists

class Lists

Lists.

Functions

Link copied to clipboard
suspend fun countries(): List<Country>

all_countries.php: names and flags. Free key: 50.

Link copied to clipboard
suspend fun leagues(): List<League>

all_leagues.php: id, name and sport (plus alternate names with a premium key). Free key: 5.

suspend fun leagues(country: String, sport: String? = null): List<League>

search_all_leagues.php?c=&s= — full league records in a country, optionally for one sport. Free key: 5–10.

Link copied to clipboard
suspend fun players(teamId: Long): List<Player>

lookup_all_players.php?id= — a team's squad. Free key: 10.

Link copied to clipboard
suspend fun seasons(leagueId: Long, badges: Boolean = false, posters: Boolean = false, descriptions: Boolean = false): List<Season>

search_all_seasons.php?id= — a league's seasons. Season names alone unless you ask for badges, posters or descriptions (one per request). Free key: 5.

Link copied to clipboard
suspend fun sports(): List<Sport>

all_sports.php. Free key: 2.

Link copied to clipboard
suspend fun teamsInCountry(sport: String, country: String): List<Team>

search_all_teams.php?s=&c= — every team of a sport in a country. Free key: 10.

Link copied to clipboard
suspend fun teamsInLeague(leagueName: String): List<Team>

search_all_teams.php?l= — every team in a league, by league name. Free key: 10.