Teamspeak 3
Sam's TS H2 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11142920json
{
"response": {
"channels": {
"onlinecount": 4,
"items": [
{
"clients": 1,
"id": 1,
"items": [],
"name": "Lobby",
"order": 0,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 128,
"items": [],
"name": "Заварник",
"order": 1,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 2,
"items": [],
"name": "Обмен полигонами",
"order": 5,
"parent_id": 0,
"topic": ""
},
{
"clients": 0,
"id": 5,
"items": [],
"name": "Спальня",
"order": 128,
"parent_id": 0,
"topic": ""
}
]
},
"external_id": "QNP1L8luNvTrItFLQjI8oj+ldIA=",
"platform": "Linux",
"created": 1342373403,
"uptime": 3046491,
"steam_id": null,
"domain": null,
"id": 11142920,
"ip": "188.168.24.98",
"port": 9987,
"query": 9987,
"color": 0,
"city": "Angarsk",
"description": "Добро пожаловать! \nВ случае недоступности не пользуйтесь сервером h1.samatix.ru :)",
"game": 9000043,
"owner": null,
"boosts": 1,
"last_offline": 1774524117,
"score": 0,
"last_online": 1776898218,
"icon": null,
"name": "Sam's TS H2",
"connect": "188.168.24.98:9987",
"request": "188.168.24.98:9987",
"map": null,
"gamemode": null,
"version": "3.13.7 Build: 1655727713",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": null,
"private": true,
"country": "RU",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1770933678,
"last_update": 1776898218,
"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": "ru",
"parked": false,
"app": {
"id": 1629110,
"steam_id": 9000043,
"name": "Teamspeak 3",
"url": "teamspeak-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11142920");
$data = json_decode($json, true);
var_dump($data);