API для Anne云服#25
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1781954319,
"app": {
"id": 11,
"name": "Left 4 Dead 2",
"steam_id": 550,
"url": "left-4-dead-2"
},
"color": 0,
"connect": "103.39.66.181:12003",
"country": "CN",
"domain": null,
"game": 550,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11837639,
"ip": "103.39.66.181",
"language": "zh",
"last_update": 1794696922,
"map": "黑色狂欢节 1:高速公路",
"maxplayers": 8,
"name": "Anne云服#25",
"numplayers": 0,
"official": null,
"points": 30,
"port": 12003,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 12003,
"request": "103.39.66.181:12003",
"secured": true,
"status": true,
"steam_id": "90297476443355160",
"version": "2.2.4.3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Шиянь",
"description": null,
"disabled_modules": [],
"gamemode": "电信服",
"hidden": false,
"last_offline": 1794544921,
"last_online": 1794696922,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 9935,
"wipe_period": null,
"hostip": "103.39.66.181",
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"sv_steamgroup": "25622692,43285641,26419628,2630068,2100201,887609,554109,964095,1158599,1895850,600445",
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11837639");
$data = json_decode($json, true);
var_dump($data);