API Reference

The following section outlines the API of smite-python.

Main Functions

class smite.SmiteClient(dev_id, auth_key, lang=1)

Represents a connection to the Smite API. This class is used to interact with the API and retrieve information in JSON.

Note

Any player with Privacy Mode enabled in-game will return a null dataset from methods that require a player name

get_data_used()
Returns:Returns a dictionary of daily usage limits and the stats against those limits

Note

Getting your data usage does contribute to your daily API limits

get_demo_details(match_id)
Parameters:match_id – ID of the match
Returns:Returns information regarding a match

Note

It is better practice to use get_match_details()

get_esports_proleague_details()
Returns:Returns the matchup information for each matchup of the current eSports pro league session.
get_friends(player)
Parameters:player – The player name or a player ID
Returns:Returns a list of friends
get_god_ranks(player)
Parameters:player – The player name or player ID
Returns:Returns the rank and worshippers value for each God the player has played
Parameters:god_id – ID of god you are querying. Can be found in get_gods return result.
Returns:Returns a dictionary of recommended items for a particular god
get_god_skins(god_id)
Param:god_id: ID of god you are querying. Can be found in get_gods return result.
Returns:Returnss all skin information for a particular god
get_gods()
Returns:Returns all smite Gods and their various attributes
get_items()
Returns:Returns all Smite items and their various attributes
get_league_leaderboard(queue, tier, season)
Parameters:
  • queue – The queue to obtain data from
  • tier – The tier to obtain data from
  • season – The season to obtain data from
Returns:

Returns the top players for a particular league

get_league_seasons(queue)
Parameters:queue – The queue to obtain data from
Returns:Returns a list of seasons for a match queue
get_match_details(match_id)
Parameters:match_id – The id of the match
Returns:Returns a dictionary of the match and it’s attributes.
get_match_history(player)
Parameters:player – The player name or player ID
Returns:Returns the recent matches and high level match statistics for a particular player.
get_match_ids_by_queue(queue, date, hour=-1)
Parameters:
  • queue – The queue to obtain data from
  • date – The date to obtain data from
  • hour – The hour to obtain data from (0-23, -1 = all day)
Returns:

Returns a list of all match IDs for a specific match queue for given time frame

get_match_player_details(match_id)
Parameters:match_id – The ID of the match
Returns:Returns player information for a live match
get_motd()
Returns:Returns information about the most recent Match of the Days
get_player(player_name)
Parameters:player_name – the string name of a player
Returns:Returns league and non-league high level data for a given player name
get_player_achievements(player_id)
Parameters:player_id – ID of a player
Returns:Returns a select number of achievement totals for the specified player ID
get_player_status(player_name)
Parameters:player_name – the string name of a player
Returns:Returns the current online status of a player
get_queue_stats(player, queue)
Parameters:
  • player – The player name or player ID
  • queue – The id of the game mode
Returns:

Returns match summary statistics for a player and queue

get_team_details(clan_id)
Parameters:clan_id – The id of the clan
Returns:Returns the details of the clan in a python dictionary
get_team_match_history(clan_id)
Parameters:clan_id – The ID of the clan.
Returns:Returns a history of matches from the given clan.

Warning

This method is deprecated and will return a null dataset

get_team_players(clan_id)
Parameters:clan_id – The ID of the clan
Returns:Returns a list of players for the given clan.
get_top_matches()
Returns:Returns the 50 most watch or most recent recorded matches
ping()
Returns:Indicates whether the request was successful

Note

Pinging the Smite API is used to establish connectivity. You do not need to authenticate your ID or key to do this.

search_teams(search_team)
Parameters:search_team – The string search term to search against
Returns:Returns high level information for clan names containing search_team string

Exceptions

class smite.SmiteError(*args, **kwargs)
class smite.NoResultError(*args, **kwargs)

Enums

class smite.Endpoint

Valid enums: PC, PS4, XBOX