Learn how to join our server and start playing in 60 seconds!
Play Now

PikaNetwork API

ShadowedLeaves

Great Reporter
Joined
Jun 19, 2023
Messages
941
Points
64
IGN
ShadowedLeaves
Pika Network API

An API (Application Programming Interface) is a set of rules and tools that allow different software systems to communicate with each other. It defines the methods and data formats that applications can use to request services or exchange data.

Despite not many players knowing about this, Pika Network has their own public API.
(A public API is open for anyone to use, while a private API is restricted to specific users or internal applications)

API URL: https://stats.pika-network.net/api

Get Player Data

URL: https://stats.pika-network.net/api/profile/{username}
{username} is a string that can be replaced with the username of any player on Pika Network (e.g. ShadowedLeaves)

Click here for an example using {username}=fyi

Responses

200 - Successfully retrieved player data
404 - Username was not found
429 - Rate limit reached

Retrieved Data​

discord_verified
lastSeen
ranks
email_verified
discord_boosting
clan (Guild Name, Guild Tag, Guild Trophies, Guild Creation Time, Guild Members)
rank (Level, Experience, Percentage, Rank Display)
friends
username

Get Recap Data

URL: https://stats.pika-network.net/api/recaps/{id}
{id} is a string that can be replaced with the UUID of a BedWars game (You can obtain the UUID of a BedWars game by typing /recap in a BedWars lobby. Select a BedWars game and click Copy to obtain a link with the UUID)

Click here for an example using the BedWars {id}=8b17beb5-e8be-489f-b083-fed74ad8d7d7

Responses

200 - Successfully retrieved recap data
400 - Invalid recap ID
404 - Recap was not found
429 - Rate limit reached

Retrieved Data​

id
mapName
gameType
gameServerName
gameStart
gameDuration
users (Blocks moved, Kills, Resources collected, Blocks placed, Deaths, Time of death, Time of death (ms), Items bought, Assists, Beds destroyed)
winners

Get Collective Leaderboard Data​

URL: https://stats.pika-network.net/api/leaderboards/total?type={gamemode}&interval={interval}
{gamemode} is a string that can be replaced with a gamemode on PIka Network (opfactions opprison opskyblock bedwars classicskyblock survival kitpvp unrankedpractice rankedpractice oplifesteal skypvp skymines genpvp)
{interval} is a string that can be replaced with the time interval at which you want the statistics to be displayed (weekly monthly total)

Click here for an example using {gamemode}=bedwars & {interval}=total

Responses​

200 - Successfully retrieved collective leaderboard data
429 - Rate limit reached

Retrieved Data​

Kills
Wins
Games played
Final kills
Final deaths
Beds destroyed
Deaths
Losses
Melee kills
Bow kills
Void kills
Arrows shot
Arrows hit

Get Leaderboard Entries​

URL: https://stats.pika-network.net/api/leaderboards?type={gamemode}&mode={mode}&interval={interval}&stat={stat}&offset={offset}&limit={limit}
{gamemode} is a string that can be replaced with a gamemode on PIka Network (opfactions opprison opskyblock bedwars classicskyblock survival kitpvp unrankedpractice rankedpractice oplifesteal skypvp skymines genpvp)
{mode} is a string that can be replaced with the Bedwars game mode(applies ONLY to BedWars) (SOLO DOUBLES TRIPLES QUADS ALL_MODES)
{interval} is a string that can be replaced with the time interval at which you want the statistics to be displayed (weekly monthly total)
{stat} is a string that can be replaced with a specific statistic to get the leaderboard of (Kills Deaths Wins Losses)
{offset} is an OPTIONAL integer that determines where the leaderboard should start from (Default=0, e.g. 1 offset would start from Place #2)
{limit} is an OPTIONAL integer that can limit the amount of entries shown (1-25)

Click here for an example using {gamemode}=bedwars & {mode}=ALL_MODES & {interval}=total & {stat}=Wins & {limit}=5

Responses​

200 - Successfully retrieved leaderboard entries data
400 - Invalid query
429 - Rate limit reached

Retrieved Data​

Metadata
Entries (Place, Value, ID, Clan)

Get Player Leaderboard Entries​

URL: https://stats.pika-network.net/api/profile/{username}/leaderboard?type={gamemode}&interval={interval}&mode={mode}
{username} is a string that can be replaced with the username of any player on Pika Network (e.g. ShadowedLeaves)
{gamemode} is a string that can be replaced with a gamemode on PIka Network (opfactions opprison opskyblock bedwars classicskyblock survival kitpvp unrankedpractice rankedpractice oplifesteal skypvp skymines genpvp)
{interval} is a string that can be replaced with the time interval at which you want the statistics to be displayed (weekly monthly total)
{mode} is a string that can be replaced with the Bedwars game mode(applies ONLY to BedWars) (SOLO DOUBLES TRIPLES QUADS ALL_MODES)

Click here for an example using {username}=ShadowedLeaves & {gamemode}=bedwars & {interval}=total & {mode}=ALL_MODES

Responses​

200 - Successfully retrieved player leaderboard entries data
400 - Invalid query
404 - Username was not found
429 - Rate limit reached

Retrieved Data​

Bow kills
Kills
Games played
Final deaths
Arrows shot
Highest winstreak reached
Beds destroyed
Arrows hit
Losses
Melee kills
Final kills
Deaths
Void kills
Wins
Entries (Place, Value, ID)

DM shadowedleaves_ on Discord if you find any errors or things to clarify on.

References (some are outdated)
 
Last edited:

ieoub

Legendary Pika
Joined
Nov 25, 2023
Messages
346
Points
65
give credits to @MrSpeedy35 and @mallusrgreat 😥
 
OP
OP
ShadowedLeaves

ShadowedLeaves

Great Reporter
Joined
Jun 19, 2023
Messages
941
Points
64
IGN
ShadowedLeaves
give credits to @MrSpeedy35 and @mallusrgreat 😥
Click on the "References" button on the bottom
 
Top