/SteamAPI

SteamAPI library (WEB) for Java.

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Library SteamAPI - this wrapper for Steam WEB API, for Java.

codecov Build Status Maven Central

Example

class SteamApiExample {
    
    public static void main(String[] args) throws SteamApiException, NoSuchElementException {
        SteamApi steamApi = SteamApi.getInstance("KEY");
        SteamId steamId = new SteamId(76561198201241926);
        PlayerSummaries playerSummaries = steamApi.getSteamUserInterface()
                                                           .getPlayerSummaries(steamId)
                                                           .orElseThrow();
        System.out.println("Result: " + playerSummaries.getDisplayName());
    }
}

Usage in your project

Maven

<dependency>
    <groupId>org.steambuff</groupId>
    <artifactId>SteamAPI</artifactId>
    <version>{REPLACE_TO_VERSION}</version>
</dependency>

Gradle

compile 'org.steambuff:SteamAPI:{REPLACE_TO_VERSION}'

Another system

JavaDoc

Available method's

  • GetPlayerSummaries (v0002)
  • GetNewsForApp (v0002)
  • GetGlobalAchievementPercentagesForApp (v0002)
  • GetGlobalStatsForGame (v0001)
  • GetFriendList (v0001)
  • GetPlayerAchievements (v0001)
  • GetUserStatsForGame (v0002)
  • GetOwnedGames (v0001)
  • GetRecentlyPlayedGames (v0001)
  • IsPlayingSharedGame (v0001)
  • GetSchemaForGame (v2)
  • GetPlayerBans (v1)

Additional methods

  • getSteamIdByPage (Get SteamId by profile user)
  • getSteamIdByLogin (Get SteamId by profile login)