get_owned_games: Get a User's Owned Games

Description Usage Arguments Value Returns

View source: R/get-owned-games.R

Description

Returns a list of games a player owns along with some playtime information, if the profile is publicly visible. Private, friends-only, and other privacy settings are not supported.

Usage

1
2
get_owned_games(steam_key, steam64_id, include_appinfo = TRUE,
  include_played_free_games = FALSE)

Arguments

steam_key

A Steam Web API Key.

steam64_id

A 64-bit SteamID

include_appinfo

Logical. Include game name and logo information in the output.

include_played_free_games

Logical. By default, free games like Team Fortress 2 are excluded If include_played_free_games is set to TRUE, they will be returned if the player has played them at some point.

Value

A list of owned games

Returns

Each item in the resulting list contains:

appid

The unique identifier for the game

name

The name of the game

playtime_2weeks

The total number of minutes played in the last 2 weeks.

playtime_forever

The total number of minutes played on record, since Steam began tracking total playtime in early 2009.

img_icon_url

The filename for the game's icon. Accessible at http://media.steampowered.com/steamcommunity/public/images/apps/APP_ID/IMG_ICON_URL.jpg replacing APP_ID and IMG_ICON_URL as necessary.

img_logo_url

The filename for the game's logo. Accessible at http://media.steampowered.com/steamcommunity/public/images/apps/APP_ID/IMG_LOGO_URL.jpg replacing APP_ID and IMG_LOGO_URL as necessary.

has_community_visible_stats

Whether the program has stats accessible via get_user_stats_for_game


josegallegos07/steamR documentation built on May 19, 2019, 8:48 p.m.