Project

steamspy

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Ruby interface to the SteamSpy API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.9
~> 11.2

Runtime

~> 0.14
 Project Readme

steamspy-ruby Build Status

A Ruby interface to the SteamSpy API.

Installation

Add this line to your application's Gemfile:

gem 'steamspy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install steamspy

Usage

require 'steamspy'

steamspy = SteamSpy::Api.new

# Get application details
ss = steamspy.appdetails(730)
ss.status # => 200
ss.data   # => {...}

# Get games in genre
ss = steamspy.genre("Early Access")

# Get top 100 games by players in the last two weeks
ss = steamspy.top100in2weeks

# Get top 100 games by players since March 2009
ss = steamspy.top100forever

# Get top 100 games by owners
ss = steamspy.top100owned

# Get all games with owners data sorted by owners
ss = steamspy.all

More information about API could be found in the official website.

License

The SteamSpy rubygem is released under the MIT license.