A Ruby gem for interacting with the Steam Web API. This gem provides a structured and user-friendly way to fetch various types of data from Steam's API endpoints, such as game details, player information, and achievements.
- Fetch game details, news, and global achievements.
- Retrieve player summaries, friends, achievements, and game stats.
- Get owned games, recently played games, and Steam levels.
- Supports both authenticated and unauthenticated requests.
- Easy-to-use client configuration.
Add this line to your application's Gemfile:
$ bundle add steam_apiOr install it manually:
$ gem install steam_apiThen execute:
$ bundle installSteamApi::Client.configure do |config|
  config.api_token = "your-API-token-value"
endAlternatively, you can initialize the client directly:
client = SteamApi::Client.new("your-API-token-value")client = SteamApi::Client.new("your-API-token-value")
client.player_summaries.retrieve([76561198160009756])client = SteamApi::Client.new
client.app_details.retrieve(appid: 1091500, filters: ["basic"])For more examples, see the Usage section above.
- Ruby >= 3.0
- Docker (optional, for consistent development environments)
Run the following command to set up the gem using Bundler:
$ bin/setupLaunch an interactive Ruby session:
$ bin/consoleExecute all automated tests:
$ bin/rspecWe use standardrb for linting and code quality checks. To analyze the code, run:
$ bin/lintBug reports and pull requests are welcome on GitHub at GitHub Repository. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Code of Conduct.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Write tests for your changes.
- Run the tests to ensure everything works.
- Submit a pull request.
This gem is available as open source under the terms of the MIT License.
Everyone interacting in the Steam project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the Code of Conduct.