This topic has been locked
Fi Jan 19, 2022 @ 5:36pm
Producing List of IDs from a Workshop Collection
Hi,

I've been trying to find a way to get a list of IDs from every mod I have added into my own collections because there are some games like Project Zomboid that need them for hosting a server and... like Project Zomboid... some of those games don't exactly make it easy to add workshop mods to a server with the whole "click one-by-one after scrolling back down to where we left off from the last one" thing they have going on.

I found a few old ways to do it, but those methods' domains are now gone and the other methods were made only for Medieval Engineer and Space Engineer.

Is this still possible today? If so, how?
Last edited by Fi; Jan 19, 2022 @ 5:37pm
Originally posted by MalikQayum:
you need to use the API to make a post request with the ISteamRemoteStorage interface and the use the GetCollectionDetails method.

https://steamapi.xpaw.me/#ISteamRemoteStorage/GetCollectionDetails
< >
Showing 1-15 of 21 comments
The author of this thread has indicated that this post answers the original topic.
MalikQayum Jan 20, 2022 @ 4:11am 
you need to use the API to make a post request with the ISteamRemoteStorage interface and the use the GetCollectionDetails method.

https://steamapi.xpaw.me/#ISteamRemoteStorage/GetCollectionDetails
Last edited by MalikQayum; Jan 20, 2022 @ 4:12am
Fi Jan 20, 2022 @ 2:31pm 
Originally posted by MalikQayum:
you need to use the API to make a post request with the ISteamRemoteStorage interface and the use the GetCollectionDetails method.

https://steamapi.xpaw.me/#ISteamRemoteStorage/GetCollectionDetails

What does it mean by this? https://i.imgur.com/65ZFsSB.png
Last edited by Fi; Jan 20, 2022 @ 2:33pm
MalikQayum Jan 20, 2022 @ 2:55pm 
you can safely ignore it, and proceed, unless you deliberately are trying to post data to valve trying to do something malicious.
Fi Jan 20, 2022 @ 3:23pm 
Originally posted by MalikQayum:
unless you deliberately are trying to post data to valve trying to do something malicious.

The intent is explained in the very first post.

I assumed it meant that something damaging and disastrous might happen to my collections hence why I asked—the warning's vague after all, but if it's a warning for something else entirely unrelated to my thread then I'll give it a shot.

How exactly does it work? I see that it has collectioncount and publishedfileids, so I'm guessing if I'm just trying to get a list of IDs from one collection, I can input "1" for the former's and... the link to my collection in the latter's Value field?

Never mind, I figured out that publishedfileids wants the ID at the end of a desired collection's URL, but I'm still a smidgen uncertain about the collectioncount part—better to be safe than sorry.
Last edited by Fi; Jan 20, 2022 @ 3:40pm
ReBoot Jan 20, 2022 @ 3:30pm 
I got a bit of working code web-scraping the collection HTML. Interested?
Fi Jan 20, 2022 @ 3:33pm 
Originally posted by ReBoot:
I got a bit of working code web-scraping the collection HTML. Interested?

Sure, if it's safe.

The more alternatives, the better for others wondering about the same thing.
ReBoot Jan 20, 2022 @ 3:37pm 
I'll get you the code tomorrow. Then you can check yourself, how safe the code is ;)
MalikQayum Jan 20, 2022 @ 4:14pm 
collectioncount is the amount of collections you are requesting data for.
in your case it is 1.

collectioncount = 1
publishedfileids[0] = your collection id

if you are requesting data for more than 1 collection lets say 2.
collectioncount = 2
publishedfileids[0] = your collection id 1
publishedfileids[1] = your collection id 2

collectioncount is just incremented for every collection you add.

When valve has provided you with an API that does exactly what you need, you should not be web scraping. also web scraping is highly frowned upon and nobody likes it. sure you can do it but you might end up getting temp ip bans for doing it.
but the question remains, why do it? when in this case, they give the data to you in an API, right?
Last edited by MalikQayum; Jan 20, 2022 @ 4:30pm
Fi Jan 20, 2022 @ 4:52pm 
Originally posted by MalikQayum:
collectioncount is the amount of collections you are requesting data for.
in your case it is 1.

collectioncount = 1
publishedfileids[0] = your collection id

if you are requesting data for more than 1 collection lets say 2.
collectioncount = 2
publishedfileids[0] = your collection id 1
publishedfileids[1] = your collection id 2

collectioncount is just incremented for every collection you add.

Ah, okay, so it was what I presumed, and it gave me all of the IDs I needed of my mods. All I have to do now is put them in the format their game's .ini recognizes, and I'm good to go.

Thanks a ton~

Originally posted by MalikQayum:
When valve has provided you with an API that does exactly what you need, you should not be web scraping. also web scraping is highly frowned upon and nobody likes it. sure you can do it but you might end up getting temp ip bans for doing it.
but the question remains, why do it? when in this case, they give the data to you in an API, right?

I'm unfortunately not... uhh... API, code, script—whatever all of this is—savvy, so I have no idea what "web scraping" does.

I assumed it was something hopefully safe they put together and hosted on GitHub like the ones I found for Medieval Engineer and Space Engineer, but if using it is frowned upon and could earn me a temporary IP ban, I'll certainly pass and advise others watching this thread to do the same.

The API you shared was very sufficient enough anyway.
Last edited by Fi; Jan 20, 2022 @ 4:53pm
Jinx Cole Oct 23, 2022 @ 8:13pm 
Originally posted by AKJ:
I made this: https://gist.github.com/Saturate/1519244dee074f3b6afdea349580f0e0

It will do the job :)
You are a god send. I hate to ask but do you know if somthing like this would work with the mod ID as well?
LANGSOMT Nov 16, 2022 @ 12:25pm 
Originally posted by Jinx Cole:
Originally posted by AKJ:
I made this: https://gist.github.com/Saturate/1519244dee074f3b6afdea349580f0e0

It will do the job :)
You are a god send. I hate to ask but do you know if somthing like this would work with the mod ID as well?

Nope unfortunately not, but I'm working on making a script to get both 😁 for easy config. Maybe I'll finish it tomorrow.
Wurf Feb 5, 2023 @ 7:28pm 
Originally posted by AKJ:
Originally posted by Jinx Cole:
You are a god send. I hate to ask but do you know if somthing like this would work with the mod ID as well?

Nope unfortunately not, but I'm working on making a script to get both 😁 for easy config. Maybe I'll finish it tomorrow.

Did you ever happen to finish that? :missing:
LANGSOMT Feb 10, 2023 @ 7:25am 
Originally posted by Wurf:
Originally posted by AKJ:

Nope unfortunately not, but I'm working on making a script to get both 😁 for easy config. Maybe I'll finish it tomorrow.

Did you ever happen to finish that? :missing:

Nope, didn't need it. But if I can find some time, I'll finish the script and release it :)
MoonGuy Apr 10, 2023 @ 11:15pm 
6
2
2
3
For anyone still looking for some tool like this, I made one on my website. https://getcollectionids.moonguy.me/.
Also here is a guide about it:
https://steamcommunity.com/sharedfiles/filedetails/?id=2960839553
< >
Showing 1-15 of 21 comments
Per page: 1530 50

Date Posted: Jan 19, 2022 @ 5:36pm
Posts: 21