API для Grand Masters Training Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1783800191,
"app": {
"id": 137,
"name": "Squad",
"steam_id": 393380,
"url": "squad"
},
"color": 0,
"connect": "27.123.244.116:7787",
"country": "DE",
"domain": null,
"game": 393380,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12059969,
"ip": "27.123.244.116",
"language": "de",
"last_update": 1791068185,
"map": "JensensRange_USA-PLA",
"maxplayers": 98,
"name": "Grand Masters Training Server",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7787,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7787,
"request": "27.123.244.116:7787",
"secured": null,
"status": true,
"steam_id": null,
"version": "v10.6.0.685998.3133",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": "Training",
"hidden": false,
"last_offline": 1790963201,
"last_online": 1791068185,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 299,
"wipe_period": null,
"eosSessionId": "85e8c70ee9394502b0c80cc0aad3eb57"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12059969");
$data = json_decode($json, true);
var_dump($data);