/football-stats-client

Swift package client to interact with football-api.

Primary LanguageSwift

FootballStats

Swift Client to interact with Football-Data API. It uses Swift Async Await API to fetch data from API.

Initialize passing API Key

let client = FootballDataClient(apiKey: "Your API KEY")

Fetch Standings

Fetch latest table standings for EPL

let standings = try await client.fetchStandings(competitionId: 2021, filterOption: .latest)

Fetch Top Scorers

Fetch top scorers for Spanish La Liga on season 2020/2021

let scorers = try await client.fetchTopScorers(competitionId: 2014, filterOption: .year(2020))