Check game ownership and playtime for a Steam user via the Steam Web API

domain: steamcommunity.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain a Steam Web API key from https://steamcommunity.com/dev/apikey by logging in with a Steam account.
  2. Resolve the target user's 64-bit SteamID (steamid64); use the ISteamUser/ResolveVanityURL/v1 endpoint if you only have a vanity URL.
  3. Call GET https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/?key=<API_KEY>&steamid=<STEAMID64>&include_appinfo=true&include_played_free_games=true to retrieve the full library.
  4. Parse the JSON response: each game object contains appid, playtime_forever (minutes), and optionally name/img_icon_url when include_appinfo is true.
  5. To check ownership of a specific app, filter the games array by appid; absence from the list means the user does not own it (or their profile is private).
  6. Handle the case where response.response is empty — this indicates the profile is set to private and the API returned no data.

Known gotchas

Related routes

Verify Steam game ownership and query play time on a backend using ISteamUser web API
steamworks · 5 steps · unrated
Query a Steam user's VAC and game ban status using ISteamUser/GetPlayerBans
steamworks · 5 steps · unrated
Fetch player achievements and per-game stats for a Steam user
steamcommunity.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans