This module allows to get the information about games or apps from Steam.
> nupm install --git git@github.com:GooRoo/Steam.nu.git
> use steamWarning
Steam applies some limits on the amount of requests. For me, roughly 2 requests per second worked fine.
Get the detailed information:
> 'https://store.steampowered.com/app/1328670/Mass_Effect_Legendary_Edition/' | steam app-detailsSpecify the language of the response:
> 1328670 | steam app-details --lang ukrainianGet the prices information for one game:
> 'https://store.steampowered.com/app/1328670/Mass_Effect_Legendary_Edition/' | steam price-overviewGet the prices for several games:
> [1328670 1091500] | steam price-overview
╭───┬─────────┬─────────┬──────────┬─────────┬───────┬──────────────────┬───────────────────┬─────────────────╮
│ # │ id │ success │ currency │ initial │ final │ discount_percent │ initial_formatted │ final_formatted │
├───┼─────────┼─────────┼──────────┼─────────┼───────┼──────────────────┼───────────────────┼─────────────────┤
│ 0 │ 1328670 │ true │ EUR │ 5999 │ 479 │ 92 │ 59,99€ │ 4,79€ │
│ 1 │ 1091500 │ true │ EUR │ 5999 │ 5999 │ 0 │ │ 59,99€ │
╰───┴─────────┴─────────┴──────────┴─────────┴───────┴──────────────────┴───────────────────┴─────────────────╯Tip
You can mix numerical IDs with URLs. In the latter case, the URLs get parsed to extract the IDs.