API
We offer a publicly usable API for our servers added to the server list. Through the API, we publicly provide most of the information that is displayed about TeamSpeak3 servers here on our server list.
You can use this API, for example, to display server information on your website, etc.
A maximum of 500 requests per 15 minutes is allowed, after which the IP address will be blocked! Request an increase in the request limit
The API for each server is located at the address:Usage examples:
<?php
try {
$server = json_decode(file_get_contents("https://teamspeak3-servers.eu/server/teamspeak-server.eu:9987/api.json"), false);
echo "Clients on-line: ".$server->clients; //on-line clients count
echo "Maximum clients: ".$server->clients_max; //maximum clients
echo "Current server ping: ".$server->ping; //current ping
} catch (Exception $e) {
echo "There is a error: ".$e->getMessage();
}
?>
<script>
fetch("https://teamspeak3-servers.eu/server/teamspeak-server.eu:9987/api.json").then(async (result) => {
if (result.ok) {
let server = await result.json();
console.log("Clients on-line: "+server.clients);
console.log("Maximum clients: "+server.clients_max);
console.log("Current server ping: "+server.ping);
}
}).catch((err) => {
console.error("There is a error: ", err);
});
</script>