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
| Field | Type | Description |
|---|---|---|
game | object | Summary of the game. See fields below. |
game.id | number | The Steam application ID. |
game.name | string | The name of the game. |
game.icon | string | Hash for constructing the game icon URL. |
minutes | number | Total playtime in minutes. |
recentMinutes | number | Playtime in the last two weeks, in minutes. |
windowsMinutes | number | Total playtime on Windows, in minutes. |
macMinutes | number | Total playtime on macOS, in minutes. |
linuxMinutes | number | Total playtime on Linux, in minutes. |
disconnectedMinutes | number | Playtime 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
}
]
}