Teamspeak 3
API für S57 Racing
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11142915json
{
"response": {
"channels": {
"onlinecount": 4,
"items": [
{
"clients": 2,
"id": 1,
"items": [],
"name": "Default Channel",
"order": 0,
"parent_id": 0,
"topic": "Default Channel has no topic"
},
{
"clients": 0,
"id": 2,
"items": [],
"name": "Admin",
"order": 1,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 5,
"items": [],
"name": "rfactor2",
"order": 2,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 6,
"items": [],
"name": "karts",
"order": 5,
"parent_id": 0,
"topic": ""
}
]
},
"external_id": "XiCY1uLlC4jIMVih9mP/zVOwJ8g=",
"platform": "Linux",
"created": 1724203537,
"uptime": 17838171,
"steam_id": null,
"domain": null,
"id": 11142915,
"ip": "104.238.162.79",
"port": 9987,
"query": 9987,
"color": 0,
"city": "Elk Grove Village",
"description": "Welcome to TeamSpeak, check www.teamspeak.com for latest information",
"game": 9000043,
"owner": null,
"boosts": 1,
"last_offline": 1770933678,
"score": 0,
"last_online": 1776898819,
"icon": null,
"name": "S57 Racing",
"connect": "104.238.162.79:9987",
"request": "104.238.162.79:9987",
"map": null,
"gamemode": null,
"version": "3.13.7 Build: 1655727713",
"numplayers": 2,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1770933678,
"last_update": 1776898819,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 132,
"language": "en",
"parked": false,
"app": {
"id": 1629110,
"steam_id": 9000043,
"name": "Teamspeak 3",
"url": "teamspeak-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11142915");
$data = json_decode($json, true);
var_dump($data);