Difference between revisions of "WebAPI/GetRecentlyPlayedGames"

From Team Fortress Wiki
Jump to: navigation, search
m (God I am bad at wiki.)
('''Main article about WebAPI.''')
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
'''Main article about [[WebAPI]].'''
 
== URL ==
 
== URL ==
 
<nowiki>GET http://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v1</nowiki>
 
<nowiki>GET http://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v1</nowiki>
  
 
== Method-specific parameters ==
 
== Method-specific parameters ==
::;{{API optional|steamid}} ''(uint64)'': The 64 bit ID of the friend.
+
::;{{API optional|steamid}} ''(uint64)'': The 64 bit ID of the player.
 
::;{{API optional|count}} ''(uint32)'': The number of games to return.
 
::;{{API optional|count}} ''(uint32)'': The number of games to return.
  

Latest revision as of 20:15, 18 December 2021

Main article about WebAPI.

URL

GET http://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v1

Method-specific parameters

steamid (Optional) (uint64)
The 64 bit ID of the player.
count (Optional) (uint32)
The number of games to return.

Result data

response
total_count
Total number of results.
games
An array of results.
appid
An integer containing the program's ID.
name
A string containing the program's publicly facing title.
playtime_2weeks
An integer of the player's playtime in the past 2 weeks, denoted in minutes.
playtime_forever
An integer of the the player's total playtime, denoted in minutes.
img_icon_url
The program icon's file name, accessible at: http://media.steampowered.com/steamcommunity/public/images/apps/APPID/IMG_ICON_URL.jpg, replacing "APPID" and "IMG_ICON_URL" as necessary.
img_logo_url
The program logo's file name, accessible at: http://media.steampowered.com/steamcommunity/public/images/apps/APPID/IMG_LOGO_URL.jpg, replacing "APPID" and "IMG_ICON_URL" as necessary.