Created
June 9, 2014 15:49
-
-
Save Andygmb/b60c16d3ffd684fe7e0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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