WebAPI/GetUGCFileDetails

From Team Fortress Wiki
< WebAPI
Revision as of 21:45, 13 May 2012 by Lagg (talk | contribs) (The method written for generating the ID is a bit roundabout, generally people use bitshifting in most languages. Which is why we assume prior knowledge. Thanks for halp)
Jump to: navigation, search

URL

http://api.steampowered.com/ISteamRemoteStorage/GetUGCFileDetails/v1/

Method-specific parameters

steamid (Optional)
If specified, only returns details if the file is owned by the SteamID specified
ugcid
ID of UGC file to get info for
appid
appID of product

Result data

data
Array containing the file information
filename
Path to the file along with its name
url
URL to the file
size
Size of the file
status (Optional)
Object returned on non-HTTP errors
code
Integer identifying error that occurred, currently 9 is the only known return value which means that the file with the given ID was not found.

Notes

This request is used to fetch file information for given UGC files. Currently certain items found in a player's backpack that can have a custom texture applied to a part of them have attributes attached used for generating the 64 bit ID. The attribute values for generating the ID are stored in two attributes for portability reasons: custom texture lo is the low word, and custom texture hi is the high word.