krapio
Library referenceClasses

Krunker

the three krunker apis behind one object:

  • the documented developer api on the root (krunker.player, krunker.market, ...), needs apiKey
  • krunker.game.*, what the game itself reads without any auth
  • krunker.as(token).*, what the game reads with the player's own frvr token

Extends

Constructors

Constructor

new Krunker(options?): Krunker;

Parameters

ParameterType
options?KrunkerOptions

Returns

Krunker

Overrides

KrunkerDeveloperApi.constructor

Properties

PropertyModifierTypeDescriptionInherited from
clanreadonlyClanApi-KrunkerDeveloperApi.clan
eventsreadonlyEventsApineeds an events scope on the keyKrunkerDeveloperApi.events
gamereadonlyKrunkerGameApi--
kpdreadonlyKpdApineeds the kpd scope on the keyKrunkerDeveloperApi.kpd
leaderboardreadonlyLeaderboardApi-KrunkerDeveloperApi.leaderboard
mapreadonlyMapApi-KrunkerDeveloperApi.map
marketreadonlyMarketApi-KrunkerDeveloperApi.market
matchreadonlyMatchApi-KrunkerDeveloperApi.match
modsreadonlyModsApi-KrunkerDeveloperApi.mods
playerreadonlyPlayerApi-KrunkerDeveloperApi.player
skinsreadonlySkinsApi-KrunkerDeveloperApi.skins

Accessors

configured

Get Signature

get configured(): boolean;

false without an api key, every call throws KrunkerConfigError then

Returns

boolean

Inherited from

KrunkerDeveloperApi.configured

Methods

as()

as(token): TokenSession;

the endpoints bound to a player's token; throws KrunkerTokenError before any request when it is not a live jwt

Parameters

ParameterType
tokenstring

Returns

TokenSession


rateLimit()

rateLimit(): RateLimitState;

what the last replies said about the key's window, for a health or admin view

Returns

RateLimitState

Inherited from

KrunkerDeveloperApi.rateLimit

On this page