Skip to content

steamworks-workshop-query

Read-only. Nothing here changes the account, the Workshop, or local files. Complete the setup in steamworks-js first.

  • workshop.getItem(publishedFileId, config?): one item, or null.
  • workshop.getItems(ids[], config?): a batch of ids; returns items and wasCached.
  • workshop.getAllItems(page, queryType, itemType, creatorAppId, consumerAppId, config?): the general query. queryType and itemType are the UGCQueryType and UGCType const enums.
  • workshop.getUserItems(page, accountId, listType, itemType, sortOrder, appIds, config?): items for one user. appIds takes { creator?, consumer? }.
  • workshop.getAppDependencies(itemId): the apps an item requires, as { result, appIds, totalAppDependencies }. If appIds is shorter than totalAppDependencies, the list is incomplete; report that instead of treating it as the full list. Paging is unverified against a live client.
  • workshop.getUserItemVote(itemId): the logged-in user’s vote, as { votedUp, votedDown, skipped }. It reads the account’s state, not the item’s, so say whose vote it is when you report it.

Useful fields on WorkshopItemQueryConfig: requiredTags, excludedTags, matchAnyTag, searchText, rankedByTrendDays, language, includeMetadata, includeLongDescription, includeAdditionalPreviews, onlyIds, onlyTotal, cachedResponseMaxAge, returnChildren.

  • returnChildren: true fills children (the ids of the item’s required items, bigint) and numChildren is the count; without it children is absent. This is how the current dependencies of an item are read; changing them belongs to steamworks-workshop-update.
  • Use onlyTotal or onlyIds when you only need counts or ids; they are cheaper.
  • Paginated results carry returnedResults, totalResults and wasCached. Loop pages until the collected count reaches totalResults or a page returns no items.
  1. Confirm the AppID (creatorAppId / consumerAppId) with the user. Results for the wrong AppID look valid but are for another game.
  2. Start with onlyTotal to size the result. Then page through with a fixed page size.
  3. Treat undefined or null entries in items as missing, not as errors to hide. Report how many were missing.
  4. Report the query used (AppID, filters, page range) next to the results, so the list can be reproduced.

Steam documents a per-page maximum (the plan states 50). Confirm this against the Steamworks documentation or a live query before relying on it. The first page index is also unconfirmed here; check the typings’ doc comments before paging.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.