View Source SportMonks (sport_monks v0.1.0)

A client for the SportMonks API (v3).

Summary

Functions

Creates a new client using the configured API token.

Creates a new client with the given API token.

Types

@type client() :: SportMonks.Client.t()
@type response(type) :: {:ok, type} | {:error, SportMonks.Error.t()}

Functions

Link to this function

get_bookmaker_by_id(client, bookmaker_id, params \\ %{})

View Source

See SportMonks.Resources.Bookmakers.get_bookmaker_by_id/3.

Link to this function

get_bookmakers(client, premium, params \\ %{})

View Source

See SportMonks.Resources.Bookmakers.get_bookmakers/3.

Link to this function

get_bookmakers_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Bookmakers.get_bookmakers_by_fixture_id/3.

Link to this function

get_bookmakers_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Bookmakers.get_bookmakers_by_name/3.

Link to this function

get_coach_by_id(client, coach_id, params \\ %{})

View Source

See SportMonks.Resources.Coaches.get_coach_by_id/3.

Link to this function

get_coaches(client, params \\ %{})

View Source

See SportMonks.Resources.Coaches.get_coaches/2.

Link to this function

get_coaches_by_country_id(client, country_id, params \\ %{})

View Source

See SportMonks.Resources.Coaches.get_coaches_by_country_id/3.

Link to this function

get_coaches_by_latest(client, params \\ %{})

View Source

See SportMonks.Resources.Coaches.get_coaches_by_latest/2.

Link to this function

get_coaches_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Coaches.get_coaches_by_name/3.

Link to this function

get_commentaries(client, params \\ %{})

View Source

See SportMonks.Resources.Commentaries.get_commentaries/2.

Link to this function

get_commentaries_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Commentaries.get_commentaries_by_fixture_id/3.

Link to this function

get_expected_by_player(client, params \\ %{})

View Source

See SportMonks.Resources.Expected.get_expected_by_player/2.

Link to this function

get_expected_by_team(client, params \\ %{})

View Source

See SportMonks.Resources.Expected.get_expected_by_team/2.

Link to this function

get_fixture_by_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixture_by_id/3.

Link to this function

get_fixtures(client, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures/2.

Link to this function

get_fixtures_by_date(client, date, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_date/3.

Link to this function

get_fixtures_by_date_range(client, start_date, end_date, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_date_range/4.

Link to this function

get_fixtures_by_date_range_for_team_id(client, start_date, end_date, team_id, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_date_range_for_team_id/5.

Link to this function

get_fixtures_by_head_to_head(client, team_id_1, team_id_2, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_head_to_head/4.

Link to this function

get_fixtures_by_ids(client, fixture_ids, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_ids/3.

Link to this function

get_fixtures_by_latest(client, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_latest/2.

Link to this function

get_fixtures_by_market_id(client, market_id, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_market_id/3.

Link to this function

get_fixtures_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_name/3.

Link to this function

get_fixtures_by_tv_station_id(client, tv_station_id, past, params \\ %{})

View Source

See SportMonks.Resources.Fixtures.get_fixtures_by_tv_station_id/4.

Link to this function

get_league_by_id(client, league_id, params \\ %{})

View Source

See SportMonks.Resources.Leagues.get_league_by_id/3.

Link to this function

get_leagues(client, params \\ %{})

View Source

See SportMonks.Resources.Leagues.get_leagues/2.

Link to this function

get_leagues_by_country_id(client, country_id, params \\ %{})

View Source

See SportMonks.Resources.Leagues.get_leagues_by_country_id/3.

Link to this function

get_leagues_by_date(client, date, params \\ %{})

View Source

See SportMonks.Resources.Leagues.get_leagues_by_date/3.

Link to this function

get_leagues_by_live(client, params \\ %{})

View Source

See SportMonks.Resources.Leagues.get_leagues_by_live/2.

Link to this function

get_leagues_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Leagues.get_leagues_by_name/3.

Link to this function

get_leagues_by_team_id(client, team_id, current, params \\ %{})

View Source

See SportMonks.Resources.Leagues.get_leagues_by_team_id/4.

Link to this function

get_livescores(client, params \\ %{})

View Source

See SportMonks.Resources.Livescores.get_livescores/2.

Link to this function

get_livescores_by_inplay(client, params \\ %{})

View Source

See SportMonks.Resources.Livescores.get_livescores_by_inplay/2.

Link to this function

get_livescores_by_latest(client, params \\ %{})

View Source

See SportMonks.Resources.Livescores.get_livescores_by_latest/2.

Link to this function

get_market_by_id(client, market_id, params \\ %{})

View Source

See SportMonks.Resources.Markets.get_market_by_id/3.

Link to this function

get_markets(client, premium, params \\ %{})

View Source

See SportMonks.Resources.Markets.get_markets/3.

Link to this function

get_markets_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Markets.get_markets_by_name/3.

Link to this function

get_news_post_match(client, params \\ %{})

View Source

See SportMonks.Resources.News.get_news_post_match/2.

Link to this function

get_news_post_match_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.News.get_news_post_match_by_season_id/3.

Link to this function

get_news_pre_match(client, params \\ %{})

View Source

See SportMonks.Resources.News.get_news_pre_match/2.

Link to this function

get_news_pre_match_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.News.get_news_pre_match_by_season_id/3.

Link to this function

get_news_pre_match_by_upcoming_fixture(client, params \\ %{})

View Source

See SportMonks.Resources.News.get_news_pre_match_by_upcoming_fixture/2.

Link to this function

get_odds(client, history, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds/3.

Link to this function

get_odds_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_by_fixture_id/3.

Link to this function

get_odds_by_fixture_id_and_bookmaker_id(client, fixture_id, bookmaker_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_by_fixture_id_and_bookmaker_id/4.

Link to this function

get_odds_by_fixture_id_and_market_id(client, fixture_id, market_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_by_fixture_id_and_market_id/4.

Link to this function

get_odds_by_time_range(client, start_time, end_time, history, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_by_time_range/5.

Link to this function

get_odds_in_play(client, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_in_play/2.

Link to this function

get_odds_in_play_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_in_play_by_fixture_id/3.

Link to this function

get_odds_in_play_by_fixture_id_and_bookmaker_id(client, fixture_id, bookmaker_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_in_play_by_fixture_id_and_bookmaker_id/4.

Link to this function

get_odds_in_play_by_fixture_id_and_market_id(client, fixture_id, market_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_in_play_by_fixture_id_and_market_id/4.

Link to this function

get_odds_in_play_by_latest(client, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_in_play_by_latest/2.

Link to this function

get_odds_pre_match(client, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_pre_match/2.

Link to this function

get_odds_pre_match_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_pre_match_by_fixture_id/3.

Link to this function

get_odds_pre_match_by_fixture_id_and_bookmaker_id(client, fixture_id, bookmaker_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_pre_match_by_fixture_id_and_bookmaker_id/4.

Link to this function

get_odds_pre_match_by_fixture_id_and_market_id(client, fixture_id, market_id, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_pre_match_by_fixture_id_and_market_id/4.

Link to this function

get_odds_pre_match_by_latest(client, params \\ %{})

View Source

See SportMonks.Resources.Odds.get_odds_pre_match_by_latest/2.

Link to this function

get_player_by_id(client, player_id, params \\ %{})

View Source

See SportMonks.Resources.Players.get_player_by_id/3.

Link to this function

get_players(client, params \\ %{})

View Source

See SportMonks.Resources.Players.get_players/2.

Link to this function

get_players_by_country_id(client, country_id, params \\ %{})

View Source

See SportMonks.Resources.Players.get_players_by_country_id/3.

Link to this function

get_players_by_latest(client, params \\ %{})

View Source

See SportMonks.Resources.Players.get_players_by_latest/2.

Link to this function

get_players_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Players.get_players_by_name/3.

Link to this function

get_predictability_by_league_id(client, league_id, params \\ %{})

View Source

See SportMonks.Resources.Predictions.get_predictability_by_league_id/3.

Link to this function

get_probabilities(client, params \\ %{})

View Source

See SportMonks.Resources.Predictions.get_probabilities/2.

Link to this function

get_probabilities_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Predictions.get_probabilities_by_fixture_id/3.

Link to this function

get_referee_by_id(client, referee_id, params \\ %{})

View Source

See SportMonks.Resources.Referees.get_referee_by_id/3.

Link to this function

get_referees(client, params \\ %{})

View Source

See SportMonks.Resources.Referees.get_referees/2.

Link to this function

get_referees_by_country_id(client, country_id, params \\ %{})

View Source

See SportMonks.Resources.Referees.get_referees_by_country_id/3.

Link to this function

get_referees_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Referees.get_referees_by_name/3.

Link to this function

get_referees_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Referees.get_referees_by_season_id/3.

Link to this function

get_rivals(client, params \\ %{})

View Source

See SportMonks.Resources.Rivals.get_rivals/2.

Link to this function

get_rivals_by_team_id(client, team_id, params \\ %{})

View Source

See SportMonks.Resources.Rivals.get_rivals_by_team_id/3.

Link to this function

get_round_by_id(client, round_id, params \\ %{})

View Source

See SportMonks.Resources.Rounds.get_round_by_id/3.

Link to this function

get_rounds(client, params \\ %{})

View Source

See SportMonks.Resources.Rounds.get_rounds/2.

Link to this function

get_rounds_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Rounds.get_rounds_by_name/3.

Link to this function

get_rounds_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Rounds.get_rounds_by_season_id/3.

Link to this function

get_schedules_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Schedules.get_schedules_by_season_id/3.

Link to this function

get_schedules_by_season_id_and_team_id(client, season_id, team_id, params \\ %{})

View Source

See SportMonks.Resources.Schedules.get_schedules_by_season_id_and_team_id/4.

Link to this function

get_schedules_by_team_id(client, team_id, params \\ %{})

View Source

See SportMonks.Resources.Schedules.get_schedules_by_team_id/3.

Link to this function

get_season_by_id(client, params \\ %{})

View Source

See SportMonks.Resources.Seasons.get_season_by_id/2.

Link to this function

get_seasons(client, params \\ %{})

View Source

See SportMonks.Resources.Seasons.get_seasons/2.

Link to this function

get_seasons_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Seasons.get_seasons_by_name/3.

Link to this function

get_seasons_by_team_id(client, team_id, params \\ %{})

View Source

See SportMonks.Resources.Seasons.get_seasons_by_team_id/3.

Link to this function

get_squad_by_season_id_and_team_id(client, season_id, team_id, params \\ %{})

View Source

See SportMonks.Resources.Squads.get_squad_by_season_id_and_team_id/4.

Link to this function

get_squad_by_team_id(client, team_id, extended, params \\ %{})

View Source

See SportMonks.Resources.Squads.get_squad_by_team_id/4.

Link to this function

get_stage_by_id(client, round_id, params \\ %{})

View Source

See SportMonks.Resources.Stages.get_stage_by_id/3.

Link to this function

get_stages(client, params \\ %{})

View Source

See SportMonks.Resources.Stages.get_stages/2.

Link to this function

get_stages_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Stages.get_stages_by_name/3.

Link to this function

get_stages_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Stages.get_stages_by_season_id/3.

Link to this function

get_standings(client, params \\ %{})

View Source

See SportMonks.Resources.Standings.get_standings/2.

Link to this function

get_standings_by_live_for_league_id(client, league_id, params \\ %{})

View Source

See SportMonks.Resources.Standings.get_standings_by_live_for_league_id/3.

Link to this function

get_standings_by_round_id(client, round_id, params \\ %{})

View Source

See SportMonks.Resources.Standings.get_standings_by_round_id/3.

Link to this function

get_standings_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Standings.get_standings_by_season_id/3.

Link to this function

get_standings_correction_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Standings.get_standings_correction_by_season_id/3.

Link to this function

get_statistics_by_coach(client, coach_id, params \\ %{})

View Source

See SportMonks.Resources.Statistics.get_statistics_by_coach/3.

Link to this function

get_statistics_by_player(client, player_id, params \\ %{})

View Source

See SportMonks.Resources.Statistics.get_statistics_by_player/3.

Link to this function

get_statistics_by_referee(client, referee_id, params \\ %{})

View Source

See SportMonks.Resources.Statistics.get_statistics_by_referee/3.

Link to this function

get_statistics_by_round(client, round_id, params \\ %{})

View Source

See SportMonks.Resources.Statistics.get_statistics_by_round/3.

Link to this function

get_statistics_by_stage(client, stage_id, params \\ %{})

View Source

See SportMonks.Resources.Statistics.get_statistics_by_stage/3.

Link to this function

get_statistics_by_team(client, team_id, params \\ %{})

View Source

See SportMonks.Resources.Statistics.get_statistics_by_team/3.

Link to this function

get_team_by_id(client, team_id, params \\ %{})

View Source

See SportMonks.Resources.Teams.get_team_by_id/3.

Link to this function

get_teams(client, params \\ %{})

View Source

See SportMonks.Resources.Teams.get_teams/2.

Link to this function

get_teams_by_country_id(client, country_id, params \\ %{})

View Source

See SportMonks.Resources.Teams.get_teams_by_country_id/3.

Link to this function

get_teams_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Teams.get_teams_by_name/3.

Link to this function

get_teams_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Teams.get_teams_by_season_id/3.

Link to this function

get_topscorers_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Topscorers.get_topscorers_by_season_id/3.

Link to this function

get_topscorers_by_stage_id(client, stage_id, params \\ %{})

View Source

See SportMonks.Resources.Topscorers.get_topscorers_by_stage_id/3.

Link to this function

get_transfer_by_id(client, transfer_id, params \\ %{})

View Source

See SportMonks.Resources.Transfers.get_transfer_by_id/3.

Link to this function

get_transfers(client, params \\ %{})

View Source

See SportMonks.Resources.Transfers.get_transfers/2.

Link to this function

get_transfers_by_date_range(client, start_date, end_date, params \\ %{})

View Source

See SportMonks.Resources.Transfers.get_transfers_by_date_range/4.

Link to this function

get_transfers_by_latest(client, params \\ %{})

View Source

See SportMonks.Resources.Transfers.get_transfers_by_latest/2.

Link to this function

get_transfers_by_player_id(client, player_id, params \\ %{})

View Source

See SportMonks.Resources.Transfers.get_transfers_by_player_id/3.

Link to this function

get_transfers_by_team_id(client, team_id, params \\ %{})

View Source

See SportMonks.Resources.Transfers.get_transfers_by_team_id/3.

Link to this function

get_tv_station_by_id(client, tv_station_id, params \\ %{})

View Source

See SportMonks.Resources.TVStations.get_tv_station_by_id/3.

Link to this function

get_tv_stations(client, params \\ %{})

View Source

See SportMonks.Resources.TVStations.get_tv_stations/2.

Link to this function

get_tv_stations_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.TVStations.get_tv_stations_by_fixture_id/3.

Link to this function

get_value_bets(client, params \\ %{})

View Source

See SportMonks.Resources.Predictions.get_value_bets/2.

Link to this function

get_value_bets_by_fixture_id(client, fixture_id, params \\ %{})

View Source

See SportMonks.Resources.Predictions.get_value_bets_by_fixture_id/3.

Link to this function

get_venue_by_id(client, venue_id, params \\ %{})

View Source

See SportMonks.Resources.Venues.get_venue_by_id/3.

Link to this function

get_venues(client, params \\ %{})

View Source

See SportMonks.Resources.Venues.get_venues/2.

Link to this function

get_venues_by_name(client, name, params \\ %{})

View Source

See SportMonks.Resources.Venues.get_venues_by_name/3.

Link to this function

get_venues_by_season_id(client, season_id, params \\ %{})

View Source

See SportMonks.Resources.Venues.get_venues_by_season_id/3.

@spec new() :: client()

Creates a new client using the configured API token.

@spec new(String.t()) :: client()

Creates a new client with the given API token.