Ruby library for wrapping API methods as documented:

Getting Started

Install the gem:

gem install rscrobbler

Generate your auth token:


Configure the library with your LastFM credentials:

include 'rscrobbler'
LastFM.establish_session do |session|
  session.api_key    = (see:
  session.api_secret = (see:
  session.username   = ( username)
  session.auth_token = (auth token from generate_lastfm_auth_token)

Once authenticated, call API methods using the following syntax:

LastFM::Track.scrobble( artist:'Childish Gambino', track:'Bonfire', )

See documentation for detailed method and parameter information.