SteamAPIでWorkshop Itemの詳細を取得する
GetPublishedFileDetailsを使えば Workshop のItemの詳細を取得することが出来ます.
APIドキュメントは以下
ISteamRemoteStorage Interface (Steamworks Documentation)
payloadに指定するpublishedfileids[0]
とはなんなのか?
これはWorkshopにアップロードされたアイテムのIDで,以下の例だと971653735がpublishedfileidになります.
https://steamcommunity.com/sharedfiles/filedetails/?id=971653735
idを指定して叩いてあげればこんな感じで詳細を取得できます.
{ "response": { "result": 1, "resultcount": 1, "publishedfiledetails": [ { "publishedfileid": "971653735", "result": 1, "creator": "76561198067216145", "creator_app_id": 571740, "consumer_app_id": 571740, "filename": "", "file_size": 5034927, "file_url": "", "hcontent_file": "8591794897085375969", "preview_url": "https://steamuserimages-a.akamaihd.net/ugc/836957960631748738/02BBE5847C95E4646B6E5311355920CE5A6718A2/", "hcontent_preview": "836957960631748738", "title": "Golf It With Your Friends ! - Ancient [18 Holes]", "description": "Golf With Your Friends Map rebuild in Golf It!\r\n\r\nIf u find any Bugs or Glitches let us know!\r\n\r\nIt contains 18 holes and the anticipated time per round is 5 minutes.\r\n\r\nObjects placed: 4500+\r\nTime needed to build: 9h\r\n\r\nMade by Heisenburrg, Daniklaus, Thom4$ & Jan", "time_created": 1499618722, "time_updated": 1499814875, "visibility": 0, "banned": 0, "ban_reason": "", "subscriptions": 936, "favorited": 5, "lifetime_subscriptions": 1013, "lifetime_favorited": 5, "views": 580, "tags": [ { "tag": "Maps" } ] } ] } }