Skip to content

Instantly share code, notes, and snippets.

@Andygmb
Created June 9, 2014 15:49
Show Gist options
  • Save Andygmb/b60c16d3ffd684fe7e0d to your computer and use it in GitHub Desktop.
Save Andygmb/b60c16d3ffd684fe7e0d to your computer and use it in GitHub Desktop.
import requests
STEAM_API_KEY = "your_api_key"
r = requests.get("http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key="+ STEAM_API_KEY + "&steamid=76561197973685973&format=json")
data = r.json()["response"]["games"]
for game in data:
print game["playtime_forever"], game["appid"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment