Anne云服#20 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286463482338328",
"domain": null,
"id": 11704064,
"ip": "175.27.156.118",
"port": 21193,
"query": 21193,
"color": 0,
"city": "Nanjing",
"description": null,
"game": 550,
"owner": null,
"boosts": 1,
"last_offline": 1780262343,
"last_online": 1780302056,
"icon": null,
"name": "Anne云服#20",
"connect": "175.27.156.118:21193",
"request": "175.27.156.118:21193",
"map": "c2m1_highway",
"gamemode": "电信服",
"version": "2.2.4.3",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780262343,
"last_update": 1780302056,
"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": 13514,
"language": "zh",
"parked": false,
"app": {
"id": 11,
"steam_id": 550,
"name": "Left 4 Dead 2",
"url": "left-4-dead-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11704064");
$data = json_decode($json, true);
var_dump($data);