Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
7.93k stars 420 forks source link

Add game score from Steam #3412

Open zclimber opened 8 months ago

zclimber commented 8 months ago

Problem description

Currently scores are retrieved from PC Gaming Wiki, where Metacritic, IGDB and OpenCritic scores are filled. These scores might not be present for game, more likely for smaller/indie games.

Feature description

So Heroic could also retrieve Steam score (percent of positive reviews) for game.

Alternatives

No response

Additional information

There's an official API to get reviews from Steam - https://partner.steamgames.com/doc/store/getreviews. And similar queries are already made on Linux to check Steam Deck status of game.

kmturley commented 1 month ago

For example for this game: https://store.steampowered.com/app/275850/No_Mans_Sky/

You can call this endpoint: https://store.steampowered.com/appreviews/275850?json=1

Which returns this data:

{
    "query_summary": {
        "num_reviews": 20,
        "review_score": 6,
        "review_score_desc": "Mostly Positive",
        "total_positive": 114283,
        "total_negative": 32763,
        "total_reviews": 147046
    },
}