Using bash to check games on Steam for Linux availibility

2 Beiträge / 0 neu
Letzter Beitrag
playingtux
Bild des Benutzers playingtux
Offline
Last seen: vor 22 Stunden 59 Minuten
AdminWelcome!
Beigetreten: 19.04.2014 - 19:08
Using bash to check games on Steam for Linux availibility

Inspired by this post on reddit, I wrote a simple bash-oneliner to check for availibility of a specific game/program on Steam.

Requirements:

  1. wget, curl or an equal tool
  2. the numerical appid for the game/program to check from steam
  3. the JSON-tool jq (most likely included in your distro)

With these requirements fulfilled, you can check the linux-availibility from command-line like this:

wget http://store.steampowered.com/api/appdetails?appids=255220 -O - | jq '.[] | { name: .data.name , linux: .data.platforms.linux }'

Output:

{
"name": "GRID Autosport",
"linux": false
}

Replace 255220 with whatever your appid is.

You can extend this from here for all your needs, e.g. build a loop or check for more appids at once...