=TSS= Combat Server - www.tactical-stealth-squad.de @ Joined Se 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286489893265408",
"domain": null,
"id": 11622731,
"ip": "195.201.169.5",
"port": 2330,
"query": 2331,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1780590265,
"last_online": 1780589534,
"icon": null,
"name": "=TSS= Combat Server - www.tactical-stealth-squad.de @ Joined Se",
"connect": "195.201.169.5:2330",
"request": "195.201.169.5:2331",
"map": "zargabad",
"gamemode": "[TSS]_Co08_Entering_the_mosque_0v00",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 30,
"add_date": 1779916104,
"last_update": 1780590265,
"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": 2977,
"language": "de",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11622731");
$data = json_decode($json, true);
var_dump($data);