DEVELOPER API

Info

Welcome to Crownlisting's Developer API. With our API you can get information about your server and display them on your own website.

In order to use our API, you need an API Key which you can get at https://crownlisting.com/account/settings


General API Calls


Allows you to render a line chart with the player amount of the last 24 hours.

https://api.crownlisting.com/get_chart_line/{api_key}

Return:


Allows you to render a bar chart with the player amount of the last 24 hours.

https://api.crownlisting.com/get_bar_line/{api_key}

Return:


You can link your users to your server page with a pre-filled username.

https://www.crownlisting.com/server/{X}/vote/Notch


Allows you to retrieve the player amount from your server.

https://api.crownlisting.com/get_player_amount/{api_key}

Return: {player_amount}
Allows you to retrieve the max capacity from your server.

https://api.crownlisting.com/get_slot_amount/{api_key}

Return: {max_player_amount}
Allows you to retrieve the amount of votes from your server.

https://api.crownlisting.com/get_vote_amount/{api_key}

Return: {vote_amount}
Allows you to retrieve the username of the last voter.

https://api.crownlisting.com/get_last_voter/{api_key}

Return: {username_last_voter}
Allows you to retrieve the amount of premium days for your server.

https://api.crownlisting.com/get_premium_days/{api_key}

Return: {premium_days}
Allows you to retrieve the favicon of your server

https://api.crownlisting.com/get_server_icon/{api_key}

Return: {server_icon}