Skip to content
This repository was archived by the owner on Aug 15, 2018. It is now read-only.
This repository was archived by the owner on Aug 15, 2018. It is now read-only.

Steam API: Current Game #46

Open
Open

Description

@FM1337

So if you plan on reintroducing the steam API to Dan why not add this feature:

Current Game


Have Dan check every 5 minutes or so to see if a defined user is playing a game, and make it so that if the same game is being played twice in 2 checks, that it doesn't repeatedly report it and only report it once the user changes game, stops playing, or goes offline.

API that you can use to get current game can be found here https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerSummaries_.28v0002.29

Under private data

gameid

  • If the user is currently in-game, this value will be returned and set to the gameid of that game.
  • gameserverip
  • The ip and port of the game server the user is currently playing on, if they are playing on-line in a game using Steam matchmaking. Otherwise will be set to "0.0.0.0:0".
  • gameextrainfo
  • If the user is currently in-game, this will be the name of the game they are playing. This may be the name of a non-Steam game shortcut.
  • API link is http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=APIKEY&steamids=STEAMID

    Activity

    1. changed the title [-]Steam API[/-] [+]Steam API: Current Game[/+] on Apr 10, 2016
    2. matthijs186 commented on Apr 11, 2016

      @matthijs186
      Collaborator

      Interesting idea.
      Not sure how much traffic Steam allows on its API with only a dev API key. You're also unable to access private profiles.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions