API Reference
Skyblock has an extensive API designed for internal use. A rewrite is in progress, and expected to be released soon[citation needed]. Currently, all endpoints require no authorisation. While most endpoints have ratelimits, these figures are not known.
Get player list
This endpoint is originally used for the player lists on the forums index.
Values
{server id}: A numerical ID representing the subserver you are querying.7for Skywars.6for Skyblock Economy.4for Skyblock Survival.
Request
Send a POST request to https://skyblock.net/index.php?server-status/{server id}/query
- Request Body
_xfRequestUri=%2F&_xfNoRedirect=1&_xfResponseType=json
- Required Headers
Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Accept: application/json, text/javascript, */*; q=0.01
Response
{
"serverStatus": {
"online": true,
"players_online": "4",
"max_players": "250",
"player_list": [
"ZanyZandMrB",
"SteelersDieHard",
"Haberson",
"IslandDiscounts"
]
},
}
Examples
- Javascript - Complete API wrapper
- Python - Supports player listing on a server