s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
QueryItem
chevron_left
Classes
class
QueryItem
Constructors
functions
QueryItem
Properties
data_object
Accepted
data_object
AdditionalPreviews
data_object
Banned
data_object
Children
data_object
Comments
data_object
Created
data_object
Description
data_object
Favorites
data_object
FileHandle
data_object
Filename
data_object
Followers
data_object
HasImages
data_object
Id
data_object
Images
data_object
KeyValues
data_object
Metadata
data_object
Owner
data_object
OwnerId
data_object
OwnerName
data_object
PackageIdent
data_object
PlaytimeSessions
data_object
PlaytimeSessionsLast30Days
data_object
Preview
data_object
PreviewHandle
data_object
ReportScore
data_object
Score
data_object
SecondsPlayed
data_object
SecondsPlayedLast30Days
data_object
Size
data_object
Subscriptions
data_object
Tags
data_object
Thumbnail
data_object
Title
data_object
UniqueFavorites
data_object
UniqueFollowers
data_object
UniqueSubscriptions
data_object
UniqueWebsiteViews
data_object
Updated
data_object
Url
data_object
Visibility
data_object
VotesDown
data_object
VotesUp
data_object
WorkshopUrl
data_object
YouTubeVideos
Methods
functions
GetMeta
functions
Install
Static Methods
functions
GetVoteAsync
functions
InstallToCacheAsync
functions
SetSubscribed
functions
VoteAsync
QueryItem
An item on the Steam Workshop - a map, a game, someone's saved dupe - as the Workshop describes it. Read straight from Steam's answer to a query.
class
Sandbox.Storage
.
Sandbox.Engine
build
Constructors
1
QueryItem
(
)
data_object
Properties
44
Accepted
bool
Whether Steam accepted the item for use in the game.
AdditionalPreviews
int
How many images and videos it has besides its preview image
Banned
bool
Whether Steam has banned the item.
Children
IReadOnlyList`1
Required Workshop items. Null if Steam couldn't return the dependency list.
Comments
long
Number of comments on the Workshop item.
Created
DateTimeOffset
When the item was published.
Description
string
The Workshop description in Steam BBCode.
Favorites
UInt64
Current favorites.
FileHandle
UInt64
Steam Remote Storage handle for the item's primary file.
Filename
string
Filename supplied by Steam for the item's primary file.
Followers
UInt64
Current followers.
HasImages
bool
Does its page have any images - its preview, or others added to it
Id
UInt64
The item's Workshop id - what it's known by
Images
IReadOnlyList`1
Additional images in the order they appear on the Workshop page.
KeyValues
Dictionary`2
Key-value tags supplied by the publisher.
Metadata
string
Whatever its publisher put in its metadata
Owner
Profile
Who published it
OwnerId
long
Steam ID of the item's publisher.
OwnerName
string
The publisher's display name, when available.
PackageIdent
string
The package it's the files of (org.ident), or null. Only while packages are still found through the backend - an item is known by its Sandbox.Storage.QueryItem.Id.
PlaytimeSessions
UInt64
Total play sessions across all players.
PlaytimeSessionsLast30Days
UInt64
Play sessions across all players in the last 30 days.
Preview
string
Texture path for the main preview. Steam supplies a Workshop handle or a fallback URL.
PreviewHandle
UInt64
Steam Remote Storage handle for the item's main preview image.
ReportScore
UInt64
Number of times users have reported the item to Steam.
Score
float
Steam's score for it, from its votes - 0 to 1
SecondsPlayed
UInt64
Total seconds played across all players.
SecondsPlayedLast30Days
UInt64
Seconds played across all players in the last 30 days.
Size
UInt64
How big its files are, in bytes
Subscriptions
long
How many people are subscribed to it
Tags
List`1
Tags on the Workshop item.
Thumbnail
string
Texture path for the item's main preview.
Title
string
The title on the Workshop page.
UniqueFavorites
UInt64
Distinct users who have favorited the item.
UniqueFollowers
UInt64
Distinct users who have followed the item.
UniqueSubscriptions
UInt64
Distinct users who have subscribed to the item.
UniqueWebsiteViews
UInt64
Unique views of the item's Steam Workshop page.
Updated
DateTimeOffset
When the item was last updated.
Url
string
URL supplied by Steam for items that link to external content.
Visibility
int
Who can see the Workshop item.
VotesDown
int
Number of downvotes.
VotesUp
int
Number of upvotes.
WorkshopUrl
string
Its page on the Steam Workshop
YouTubeVideos
IReadOnlyList`1
YouTube video IDs in the order they appear on the Workshop page.
functions
Methods
2
GetMeta
(
key
,
defaultValue
)
T
A value its Steam metadata carries from the published meta - for a game, what's needed before it's downloaded, like its
LaunchMode
and
MaxPlayers
.
if it doesn't have it.
Install
(
token
)
Task`1
Install this item. This can return null if it's not of the right format.
functions
Static Methods
4
GetVoteAsync
(
item
)
Task`1
Gets the editor user's vote, or null if the item is unrated or Steam is unavailable.
InstallToCacheAsync
(
item
,
progress
,
token
)
Task`1
SetSubscribed
(
item
,
subscribed
)
Subscribe or unsubscribe the editor user's account to this Workshop item.
VoteAsync
(
item
,
up
)
Task`1
Votes on the item and reports whether Steam accepted the vote.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.