简体   繁体   中英

Steam Web API get all genres of app?

I'm trying to make a fun little program that incorporates showing information about steam games, but I'm not sure how to get all the genres of a specific game.

For this example I'll be using Borderlands 2.

This first image is from the steam store ( https://store.steampowered.com/app/49520/Borderlands_2/ )

蒸汽商店的标签

This second image is from the web api ( https://store.steampowered.com/api/appdetails?appids=49520 )

steam web api 标签

Why is it that it only has 2 genres on the webapi but way more on the steam store? Is there another place I can use to get the rest of the genres?

I'm not aware of any documented (be it officially or unofficially) API function that will allow you to read all genres of an App.

Since you were asking for another place to get rest of the genres, did you consider scraping the data straight from the Steam Store page? Assuming you use NodeJS, getting the data with something like cheerio should be easy enough.

But: be aware that the page you are scraping from might change at any point in time without any notice. Of course, the same applies to the API you were considering to use, which is under development, not officially documented, and meant to be used internally by Steam.

The screenshot you posted is of community defined store tags and not genre data. I have not been able to find the store tag data as part of a publicly available API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM