1.3.2 • Published 3 years ago

csgo-api v1.3.2

Weekly downloads
15
License
ISC
Repository
github
Last release
3 years ago

CSGO API

API for getting data from CSGO servers. Playcount, Maps, Player info, etc.

Installation

Install Package: npm i csgo-api

Usage

Examples

Get All Server Stats (object)

const CSGO = require("csgo-api") // Import the npm package.
const srv = new CSGO.Server('IP', 'PORT') // Set the IP with port.
 
srv.getServer().then(data => console.log(data)) // Get & log the data!

Get Player Count (in number)

const CSGO = require("csgo-api") // Import the npm package.
const srv = new CSGO.Server('IP', 'PORT') // Set the IP with port.
 
srv.getPlayerCount().then(data => console.log(data)) // Get & log the data!

See if the server is password protected

const CSGO = require("csgo-api") // Import the npm package.
const srv = new CSGO.Server('IP', 'PORT') // Set the IP with port.
 
srv.getPasswordProtected().then(data => console.log(data)) // Get & log the data!

To use any of the things below, just do the same as the example above.

ALL FUNCTION REQUESTS

  • getServer - (object)
  • getServerName - (string)
  • getMaxPlayers - (number)
  • getPlayerCount - (number)
  • getFolder - (string)
  • getAppID - (number)
  • getMap - (string)
  • getServer - (string)
  • getGame - (string)
  • getVersion - (number)
  • getResponseType - (number)
  • getProtocol - (number)
  • getBotCount - (number)
  • getServerType - (string)
  • getPlatform - (string)
  • getPasswordProtected - (number) 1/0
  • getVacEnabled - (number) 1/0
1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago