Hey,
if you are interested in: I did release my API to the public so it can be used from everyone - with which you can gather information from Mount & Blade Warband servers and others.
You call it like this:
https://api.dominic-poppe.dev/gameserver_information/v1/get_information?game=warband&serverip=YOURIP&port=YOURPORT
And you will receive a response like this:
An example, very simple PHP call would be:
The response is in UTF-8 JSON format.
You can read more about the API here: https://github.com/domipoppe/Game-Server-Status-Information-API
if you are interested in: I did release my API to the public so it can be used from everyone - with which you can gather information from Mount & Blade Warband servers and others.
You call it like this:
https://api.dominic-poppe.dev/gameserver_information/v1/get_information?game=warband&serverip=YOURIP&port=YOURPORT
And you will receive a response like this:
Code:
{
"CurPlayers": "0",
"MaxPlayers": "60",
"Status": "Online",
"Map Name": "Floodplain (Day)",
"Server Name": "My_Server",
"Server Build": "1157",
"Server Mod": "Napoleonic Wars"
}
An example, very simple PHP call would be:
Code:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.dominic-poppe.dev/gameserver_information/v1/get_information?game=warband&serverip=YOURIP&port=YOURPORT');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);
$response = json_decode($response, true);
echo "There are currently: " . $response["CurPlayers"] . " players on the server!";
?>
The response is in UTF-8 JSON format.
You can read more about the API here: https://github.com/domipoppe/Game-Server-Status-Information-API