HelpersFutures

inner class HelpersFutures

CompletableFuture versions of Helpers.

Functions

Link copied to clipboard

A league's current season name, e.g. 2026-2027 or 2026; null if the league is unknown.

Link copied to clipboard

The channels showing an event. Free key: at most 2.

Link copied to clipboard
fun eventsOnLocalDate(date: LocalDate, zone: ZoneId, sport: String? = null, leagueId: Long? = null): CompletableFuture<List<Event>>

Events on a calendar day in your time zone. The API files events under their UTC date, so a local day can span two API days; this fetches both and keeps the events that start on date in zone. Optionally narrowed to a sport or a leagueId. Free key: at most 3 events per UTC day.

Link copied to clipboard

A league's teams, with badges. Premium: one call. Free key: the league's name is looked up, then up to 10 teams.

Link copied to clipboard
fun liveScores(sport: String? = null, leagueId: Long? = null): CompletableFuture<List<LiveScore>>

Games in progress, optionally for one sport (e.g. Soccer) or one leagueId. Premium: v2 live scores. Free key: v1's undocumented live feed, which needs a sport; for a league, the league's sport is looked up and the results filtered.

Link copied to clipboard

A league's latest results. Premium: up to about 20. Free key: 1.

Link copied to clipboard
fun roundEvents(leagueId: Long, round: Int, season: String? = null): CompletableFuture<List<Event>>

Every event in one round (matchday) of a season (season defaults to the current one). Premium: filtered from the season schedule. Free key: v1's undocumented eventsround.php, which returns the whole round (premium keys get 404 from it, hence the two routes).

Link copied to clipboard
fun seasonEvents(leagueId: Long, season: String? = null): CompletableFuture<List<Event>>

Every event of a league's season (season defaults to the current one). Premium: the whole season in one call. Free key: only the first 5 events.

Link copied to clipboard

A team's schedule across all competitions, past and future. Premium: the full schedule (one call). Free key: the next and the last event only, and only home games (a free-key limit).

Link copied to clipboard
fun tvListings(country: String, sport: String? = null, days: Int = 7, from: LocalDate = LocalDate.now(ZoneOffset.UTC)): CompletableFuture<List<TvListing>>

A country's TV listings for the next days days from from, optionally for one sport. Premium: about a week of the country's listings in one call, filtered here. Free key: one call per day, which needs a sport, and returns 1 listing per call.

Link copied to clipboard
fun upcomingLeagueEvents(leagueId: Long, days: Int = 7, from: LocalDate = LocalDate.now(ZoneOffset.UTC)): CompletableFuture<List<Event>>

A league's events starting in the next days UTC days, beginning with from. Premium: filtered from the season schedule (one or two calls). Free key: one eventsday call per day, each limited to 3 events.