Share your repls and programming experiences

← Back to all posts
Unofficial Krunker.io Api
h
Theboys619

Well if you play krunker.io and want to get stats here you go, I guess.

Here is how to use it:

Unofficial Krunker API

Note: This is my first post on repl.it/talk so yea...

This is an unofficial krunker.io api.
Made in Node.js.

Packages Used

All packages are available on npm.

  • msgpack-lite - Encode and decode data to and from krunker's WebSocket server
  • axios - Make requests to krunker
  • ws - WebSockets for retrieving data
  • express - Web Server
  • cors - Cors middleware, javascript fetch then works

How to Use

Base Url

User Stats

Endpoints

GET /user/:username - Retrieve stats from player
Average response time: 958ms

Class Stats

Endpoints

GET /class/:classname - Retrieve default class stats
Average response time: 257ms

GET /class/all - Retrieve default class stats
Average response time: 364ms

Market Items

Endpoints

GET /market - Retrieve market items
Average response time: 2136ms

Optional Queries

?count=#NUMBER - Get amount of items in market (max is 100)
?data=raw - Get raw/original data of the market

Both can be combined, Ex: /market?count=60&data=raw

Game Stats

Endpoints

GET /game?game=[GAMEID] - Retrieve game stats
Average response time: 105ms

Code Examples

All are examples for GET /user/:username
Some may not be correct, not too familiar with some.

Node.js (axios)

Javascript (fetch)

Python (requests)

CSharp

cURL

Response Examples

User Stats Response

User stats example response:

GET /user/Theboys619

Class Stats Response

Triggerman default class stats example response:

GET /class/Triggerman

Market Items Response

Market listed items example response:

GET /market?count=1

Market Items Raw Response

Raw market items example response:

GET /market?count=1&data=raw

Game Stats Response

Game Stats example response:

GET /game?game=SV:gwlpx

Voters
KevinGzuz
JonathonBruske
CodeBreaker20
RohilPatel
DynamicSquid
Theboys619
Comments
hotnewtop
puddleisthebest

Yo whats your discord? also have you gotten the new krunker API? thanks!

Theboys619

I can try. @puddleisthebest

Theboys619

I think I already figured it out anyway @Theboys619

Theboys619

Well I got far enough to reconnect to their servers and get data back. But sadly they have a captcha that I got to figure out how to get around. Which I don't know how hard that's going to be. @puddleisthebest

puddleisthebest

@Theboys619 damn yeah krunkers been putting aton of captchas recently, I'm kinda new but I found these API links and maybe they'll be useful? idk but you should go check them out here's were I posted them- https://www.reddit.com/r/KrunkerIO/comments/k1rw6f/krunker_api_links_most_recent_update_at_11262020/?utm_source=share&utm_medium=web2x&context=3

Theboys619

Another problem is I cannot host the API on repl.it. I think they might of blocked requests from this site or something like that. @puddleisthebest

CodeBreaker20

Could you re-make the gameapi please? Thanks so much

BugleTV

pls pls pls fix this thanks

Cuet1337

Can you get the api back up please?
Thank you.

Theboys619

I'll see what I can do. They changed it quite a bit. @Cuet1337

[deleted]

0/10, says im not a hacker even though i am

Theboys619

What's your account? Also what is your username? And are you flagged as a hacker on krunker.io? @roylatgnail

[deleted]

@Theboys619 i was joking. Im not flagged as a hacker

Theboys619

oh...makes sense @roylatgnail