1.0.3 • Published 3 years ago

survivio-api v1.0.3

Weekly downloads
9
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

Survivio-API

A package to help fetch the Surviv.io API.

Usage

const surviv = require("surviv-io");

await surviv.getStats("username");
await surviv.getHistory("username", options);
await surviv.getLeaderboard(options);

Options of getHistory():

  • Offset: Integer. The offset of the matches.
  • Count: Integer. The amount of matches to retrieve.

Options of getLeaderboard():

  • Map: String. The name of the map. Listed below.
const maps = [
    "normal",
    "desert",
    "woods",
    "50vs50",
    "potato",
    "savannah",
    "halloween",
    "cobalt",
    "snow",
    "valentine",
    "saint patrick",
    "eggsplosion",
    "may 4th",
    "50vs50 last sacrifice",
    "storm",
    "beach",
    "contact",
    "inferno"
];
  • Interval: String. Daily, weekly or all time.
const intervals = [ "daily", "weekly", "alltime" ];
  • Type: String. The way the leaderboard is sorted. Listed below.
const types = [ "most_kills", "most_damage_dealt", "kpg", "kills", "wins" ];
  • Team: String. The team mode of the matches. Listed below.
const teamModes = [ "solo", "duo", "squad" ];
  • Count: Integer. The number of users to retrieve.
1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago