Steam

Recently played

Get the games a Steam user has played recently, including total and recent playtime broken down by platform.

Endpoint

This endpoint returns the list of games a Steam user has played in the last two weeks, along with total playtime and per-platform playtime breakdowns.

GET   /v2/steam/users/{steamid}/recently-played

Required parameters

steamid
string
The Steam ID of the user whose recent activity you want to fetch. Accepts various Steam ID formats.

Authentication

Include your API key as the x-api-key request header.

x-api-key: YourSecretAPIKey

Response fields

The response is an array of recently-played entries.

Entry fields

FieldTypeDescription
gameobjectSummary of the game. See fields below.
game.idnumberThe Steam application ID.
game.namestringThe name of the game.
game.iconstringHash for constructing the game icon URL.
minutesnumberTotal playtime in minutes.
recentMinutesnumberPlaytime in the last two weeks, in minutes.
windowsMinutesnumberTotal playtime on Windows, in minutes.
macMinutesnumberTotal playtime on macOS, in minutes.
linuxMinutesnumberTotal playtime on Linux, in minutes.
disconnectedMinutesnumberPlaytime recorded while disconnected from Steam, in minutes.

The game.icon field is a hash, not a full URL. Combine it with game.id to get the image:

https://media.steampowered.com/steamcommunity/public/images/apps/{game.id}/{game.icon}.jpg

Response example

response.json
{
  "success": true,
  "result": [
    {
      "game": {
        "id": 244210,
        "name": "Assetto Corsa",
        "icon": "c35922c480816b55f18b2843c6d838ccbc8ff825"
      },
      "minutes": 2866,
      "recentMinutes": 629,
      "windowsMinutes": 2866,
      "macMinutes": 0,
      "linuxMinutes": 0,
      "disconnectedMinutes": 0
    }
  ]
}