Search

class Search

Search endpoints. Free key: one result each.

Functions

Link copied to clipboard
suspend fun events(name: String, season: String? = null, date: LocalDate? = null): List<Event>

searchevents.php?e= — events by name, Home vs Away. Narrow with a season (2016-2017) or a date; pass at most one of them.

Link copied to clipboard
suspend fun eventsByFilename(filename: String, season: String? = null): List<Event>

searchfilename.php?e= — events by their Event.filename, e.g. English Premier League 2015-04-26 Arsenal vs Chelsea.

Link copied to clipboard
suspend fun players(name: String): List<Player>

searchplayers.php?p= — players by name. Fills only a summary of each player.

Link copied to clipboard
suspend fun teams(name: String): List<Team>

searchteams.php?t= — teams by name. Premium returns many matches (15 for "Arsenal").

Link copied to clipboard
suspend fun venues(name: String): List<Venue>

searchvenues.php?v= — venues by name.