2.0.1 • Published 1 year ago

faceit-node-api v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

faceit-node-api

Lightweight node.js module for easier use of the Faceit Data API.

On the 27th of September, 2022, this module covers all the Data APIs provided by Faceit. Please check the latest documentation from the Official Faceit Developers web page.

Example of usage:

import { Faceit, Players, Tournaments } from 'faceit-node-api';

Faceit.setApiKeys(['your_api_key_1', 'your_api_key_2']);

const players = new Players();
const tournaments = new Tournaments();

players.getPlayerDetailsByNickname('your_nickname')
  .then((data) => {
    // do something with received players data from the Faceit API
  })

tournaments.getMatchesOfATournament('your_tournament_id', { limit: 20, offset: 10 })
  .then((data) => {
    // do something with received tournaments data from the Faceit API
  })

Note that limit and offset aren't required attributes, and by default, they are equal to 20 and 0, respectively.