Riot API

A Ruby wrapper around connecting to the Riot API

This is an ALPHA version. Please open up issues or send a pull request for any bugs you find =)


Add this line to your application's Gemfile:

gem 'riot-api'

Or install it yourself as:

$ gem install riot_api


If you haven't already, you'll need to go to and get an API key.

require 'riot-api'

# Before you can use the API, you have to give it your API Key
# Search by Summoner name
summoner = RiotAPI::Summoner.find_by_name('MrQuackers')
# => #<RiotAPI::Summoner:0x000000017a0840 @region="na", @id=20933307, @name="MrQuackers", @profile_icon_id=535, @summoner_level=30, @revision_date=1387030959000, @revision_date_str="12/14/2013 02:22 PM UTC"> # => "MrQuackers"
summoner.summoner_level # => 30
summoner.mastery_pages # => Returns an array of mastery pages
MasteryPage.find("NA", 20933307) # => Equivalent to above



  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

For more information and a complete list see the contributor page on GitHub.