API для JDs Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1785047052,
"app": {
"id": 1531516,
"name": "HumanitZ",
"steam_id": 1766060,
"url": "humanitz"
},
"color": 0,
"connect": "169.155.124.112:9005",
"country": "AU",
"domain": null,
"game": 1766060,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12706754,
"ip": "169.155.124.112",
"language": "en",
"last_update": 1791139010,
"map": "Main Map",
"maxplayers": 12,
"name": "JDs Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 9005,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 9005,
"request": "169.155.124.112:9005",
"secured": null,
"status": false,
"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": 1791139010,
"last_online": 1790418232,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 786,
"wipe_period": null,
"eosSessionId": "2db65bc4913448429f002b5c2edbc2c2"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12706754");
$data = json_decode($json, true);
var_dump($data);