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:
Click here for an example using
404 - Username was not found
429 - Rate limit reached
Click here for an example using the BedWars
400 - Invalid recap ID
404 - Recap was not found
429 - Rate limit reached
Click here for an example using
429 - Rate limit reached
Click here for an example using
400 - Invalid query
429 - Rate limit reached
Click here for an example using
400 - Invalid query
404 - Username was not found
429 - Rate limit reached
DM
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/apiGet 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}=fyiResponses
200 - Successfully retrieved player data404 - 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
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-fed74ad8d7d7Responses
200 - Successfully retrieved recap data400 - 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
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}=totalResponses
200 - Successfully retrieved collective leaderboard data429 - 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
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}=5Responses
200 - Successfully retrieved leaderboard entries data400 - Invalid query
429 - Rate limit reached
Retrieved Data
Metadata
Entries (Place, Value, ID, Clan)
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_MODESResponses
200 - Successfully retrieved player leaderboard entries data400 - 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)
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)
mallusrgreat.stoplight.io
</> PikaNetwork API </>
What is an API? An API (Application Programming Interface) is a way for two or more computers to communicate with eachother. It is a type of software interface, offering a service to other pieces of software. PikaNetwork has an API? Well yes, sadly it is not known to most of the programmers in...
pika-network.net
PikaNetwork API Documentation
I'm too bored I just made an OpenAPI 3.0 specification for the PikaNetwork Stats API. You can preview the documentation here, and I've also hosted it on Stoplight here. The link to the spec file is here. LMK about typos, errors, missing endpoints, or missing/invalid information
pika-network.net
Pika Network Stats API | PikaNetwork Stats API
Official Pika Network API used for getting stats of users, and leaderboards. Powered by Stoplight.
Last edited: