API для JunJianXian
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794072020,
"app": {
"id": 1531516,
"name": "HumanitZ",
"steam_id": 1766060,
"url": "humanitz"
},
"color": 0,
"connect": "116.88.31.111:7777",
"country": "SG",
"domain": null,
"game": 1766060,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19783575,
"ip": "116.88.31.111",
"language": "en",
"last_update": 1794591207,
"map": "Main Map",
"maxplayers": 16,
"name": "JunJianXian",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7777,
"request": "116.88.31.111:7777",
"secured": null,
"status": true,
"steam_id": null,
"version": null,
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сингапур",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794590799,
"last_online": 1794591207,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 421,
"wipe_period": null,
"eosSessionId": "504f8b8b8c6f44ec896215dd96d98d93"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19783575");
$data = json_decode($json, true);
var_dump($data);