krapio

Overview

What krapio covers and how the three Krunker APIs relate

krapio is a typed client for the Krunker.io APIs with zero dependencies, for Node 20+ and Bun. These pages document the APIs themselves; the library reference is generated from the source, and so is the OpenAPI document (raw: openapi.json) that lists every endpoint of the three tiers.

TierWhatAuthOn the client
Developer APIthe documented developer API (gapi.svc.krunker.io/api/*), corrected against the live serviceX-Developer-API-Keythe root: krunker.player, krunker.market, ...
Game APIwhat the game itself reads without any auth: market, Turf Wars, clans, social, shop, matchmakernonekrunker.game.*
Token APIwhat the game reads with the player's own FRVR token: wallet, inventory, trades, rankedAuthorization: Bearer <jwt>krunker.as(token).*
import { Krunker } from "krapio";

const krunker = new Krunker({ apiKey: process.env.KRUNKER_API_KEY, userAgent: "my-bot/1.0" });

await krunker.player.profile("NulPing");              // developer api
await krunker.game.market.stats({ sort: "rarity" });   // game api
await krunker.as(playerToken).player.wallet();         // token api

Reads only. Every write of the game API (buying, listing, trading, posting) is left out on purpose. The library caches nothing, put your own cache in front of it.

bun add krapio
# or
npm install krapio

How these documents were made

The developer API page is the document Krunker (FRVR) provides to key holders, with every difference found by calling the endpoints marked observed or undocumented. The game and token pages have no original: they were written from the game's client code and from live replies, one unauthenticated or one token bound GET per endpoint, in October 2026. None of that is documented or supported by Krunker and all of it can change without notice.

On this page