Skip to content

fix: use /um/ endpoints now that steam pages no longer expose a webapi token - #293

Merged
ganey merged 4 commits into
SteamDatabase:masterfrom
ganey:fix/um-endpoints-replace-webapi-token
Dec 4, 2026
Merged

ganey merged 4 commits into
SteamDatabase:masterfrom
ganey:fix/um-endpoints-replace-webapi-token

Conversation

@ganey

@ganey ganey commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Steam pages no longer expose a WebAPI access token (webapi_token, loyalty_webapi_token, g_wapit), so the calls that relied on one fail, are skipped, or run anonymously. pointssummary/ajaxgetasyncconfig now redirects to the store home page, which broke the family shared library, and the discovery queue throws at load.

Changes

  • scripts/um.js (new): a small protobuf encoder/decoder and UmCall for Steam's /um/<Service>/<Method> endpoints, authenticated by the login cookie. Const methods use GET with input_protobuf_encoded, others use POST with an application/octet-stream body, and the call throws unless X-eresult is 1. Field numbers come from SteamDatabase/Protobufs.
  • explore.js: Store.GetDiscoveryQueue and Store.SkipDiscoveryQueueItem go through /um/, with no token needed.
  • Family library: /um/ rejects a foreign Origin, so the background worker can no longer fetch it. A new store/family.js fetches FamilyGroups.GetSharedLibraryApps on store pages and hands the result to the background worker, which stores it in the existing userfamilydata cache (6h) and serves it to steamdb.info.
  • inventory.js: removed the badge info feature, since Player.GetBadges is not exposed on /um/.
  • Tests: tests/um.test.js (Node's built-in runner) covers the protobuf round trip, truncated input, and the GET/POST/error behavior of UmCall. It runs as part of npm test.

Notes

  • steamdb.info only gets family data after a store page has been visited within the last 6 hours. Otherwise it uses the stale cache, or shows the existing error if there is none.

  • In Firefox, content scripts get a wrapped ArrayBuffer, and decoding it threw Permission denied to access property "constructor". UmCall now copies the response into a local Uint8Array.

  • The inventory badge setting (enhancement-inventory-badge-info) is still in the options page, with its locale strings and CSS. It no longer does anything and can be removed in a follow-up.

  • achievements.js is intentionally untouched. It still reads the removed loyalty_webapi_token attribute, but Steam now redirects the old achievements pages to /achievements/<appid>, and fix: support steam's new achievements page #289 rewrites that file for the new page. The token cleanup belongs there.

Testing

npm test passes. Tested manually while logged in to Steam, in Chrome, Edge and Firefox:

  • Store page followed by steamdb.info: Userdata loaded Packages 500 Family Apps 12.
  • /explore Auto-discover: "Queue has been explored", with GetDiscoveryQueue and SkipDiscoveryQueueItem returning 200.

🤖 Generated with Claude Code

ganey and others added 3 commits December 4, 2026 16:35
…i token

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ganey
ganey force-pushed the fix/um-endpoints-replace-webapi-token branch from f670896 to e137b0b Compare December 4, 2026 16:35
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ganey
ganey merged commit 4e0e71a into SteamDatabase:master Dec 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant