API для Official US 2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790512544,
"app": {
"id": 136,
"name": "The Isle",
"steam_id": 376210,
"url": "the-isle"
},
"color": 0,
"connect": "172.235.61.65:30514",
"country": "US",
"domain": null,
"game": 376210,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17254677,
"ip": "172.235.61.65",
"language": "en",
"last_update": 1790546794,
"map": "Gateway",
"maxplayers": 115,
"name": "Official US 2",
"numplayers": 113,
"official": true,
"points": 84,
"port": 30514,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30514,
"request": "172.235.61.65:30514",
"secured": null,
"status": true,
"steam_id": null,
"version": "evrima 0.21.784",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": null,
"city": "Лос-Анджелес",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": null,
"last_online": 1790546794,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 25,
"wipe_period": null,
"eosSessionId": "1582dfc5f5094ca6875551f468ec8789"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17254677");
$data = json_decode($json, true);
var_dump($data);