API для TSZ服务器
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "85568392936290532",
"domain": null,
"id": 11630668,
"ip": "43.249.192.215",
"port": 49125,
"query": 49125,
"color": 0,
"city": "Jinan",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780567468,
"last_online": 1780590085,
"icon": "https://tc.tyteam.cn/260526/wi6Uyi0r_4D732A72DFB9B91F167EF02666F5C2B8_1779791922.jpg",
"name": "TSZ服务器",
"connect": "43.249.192.215:49125",
"request": "43.249.192.215:49125",
"map": "Russia",
"gamemode": "欢迎来到我们的公益服务器 q群:1103192062",
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779916699,
"last_update": 1780590085,
"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": 1224,
"language": "zh",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11630668");
$data = json_decode($json, true);
var_dump($data);