API для [CN]NLG战队随机攻防服务器#1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"eosSessionId": "c9ce90860807472f9257a4690716c9e7",
"steam_id": null,
"domain": null,
"id": 14061671,
"ip": "202.189.22.2",
"port": 14004,
"query": 14004,
"project_id": null,
"color": 0,
"city": "Beijing",
"description": null,
"game": 393380,
"owner": null,
"boosts": 1,
"last_offline": 1787649795,
"last_online": 1787793150,
"icon": null,
"name": "[CN]NLG战队随机攻防服务器#1",
"connect": "202.189.22.2:14004",
"request": "202.189.22.2:14004",
"map": "AlBasrah_Invasion_v2",
"gamemode": "Invasion",
"version": "v10.5.3.657966.2759",
"numplayers": 0,
"maxplayers": 99,
"bots": null,
"secured": null,
"private": true,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1787649795,
"last_update": 1787793150,
"ban_reason": null,
"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": 656,
"language": "zh",
"parked": false,
"app": {
"id": 137,
"steam_id": 393380,
"name": "Squad",
"url": "squad"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14061671");
$data = json_decode($json, true);
var_dump($data);