Totals
GET/leaderboards/totalServer-wide aggregate per stat, for one gamemode. Not per-player, see Profile Stats.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | required | gamemode id |
mode | string | conditional | required only for pillars (Seasonal); all other gamemodes crawled without it |
Response 200
Array, not object.
LIVE REQUESTopen raw
fetching https://stats.pika-network.net/api/leaderboards/total?type=bedwars ...
| Field | Type | Notes |
|---|---|---|
[].name | string | display name, matches Gamemode Catalog, not the raw stat key from Leaderboards |
[].total | number | players tracked for this stat |
[].average | number | mean across tracked players |
[].sum | number | sum across tracked players |
numeric encoding
Unlike /leaderboards, every numeric field here is a genuine JSON number, not a numeric string.
Request forms
text
GET /leaderboards/total?type=bedwarsbash
curl 'https://stats.pika-network.net/api/leaderboards/total?type=bedwars'ts
import { Gamemode, PikaNetworkClient } from '@kyizl/craftify';
const pika = new PikaNetworkClient();
await pika.getTotals({ gamemode: Gamemode.BedWars });Errors
| Status | Condition |
|---|---|
400 | invalid or missing type |
No 404 case.