1.0.2 • Published 6 years ago

rocketleague v1.0.2

Weekly downloads
87
License
ISC
Repository
github
Last release
6 years ago

Rocket League

A simple to use module for interacting with the Rocket League API.

Install

$ npm install rocketleague

How to

// require the package
const rl = require('rocketleague');
const client = new rl.Client('apikey');
client.getLeaderboard(true, 'wins').then(leaderboard => console.log(leaderboard));
  • All methods return a promise.

Methods

getPlatforms()
getSeasons()
getPlaylists()
getTiers()
getPlayer(username, platform) // steam, xbl, psn
search(username)
getLeaderboard(playlist, type) // if type is not present, search ranked
playlisttype
duelwins
doublesgoals
standardmvps
chaossaves
rankedDuelshots
rankedDoublesassists
rankedSoloStandardnull
rankedStandardnull
mutatorMashupnull
snowDaynull
rocketLabsnull
hoopsnull
rumblenull
dropshotnull

Example Response

[
  {
    uniqueId: '76561197970407331',
    displayName: ':)',
    platform: { id: 1, name: 'Steam' },
    avatar: 'http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/ac/ac004713ebfc3b544e5be20ace0d0d6db83e5d22_full.jpg',
    profileUrl: 'https://rocketleaguestats.com/profile/Steam/76561197970407331',
    signatureUrl: 'http://signature.rocketleaguestats.com/normal/Steam/76561197970407331.png',
    stats: {
      wins: 22813,
      goals: 86356,
      mvps: 5594,
      saves: 10080,
      shots: 124931,
      assists: 8423
    },
    rankedSeasons: {
      '1': [Object],
      '2': [Object],
      '3': [Object],
      '4': [Object],
      '5': [Object],
      '6': [Object]
    },
    lastRequested: 1511566115,
    createdAt: 1456957821,
    updatedAt: 1511566114,
    nextUpdateAt: 1511566294
  },
  {
    ...
  }
]
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

8 years ago