API для [RU] | PROTOCOL | Classic | Только популярные карты | discord.gg/prtcl
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1783018858,
"app": {
"id": 137,
"name": "Squad",
"steam_id": 393380,
"url": "squad"
},
"color": 0,
"connect": "195.18.27.195:27171",
"country": "RU",
"domain": null,
"game": 393380,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11871904,
"ip": "195.18.27.195",
"language": "ru",
"last_update": 1791061622,
"map": "GooseBay_Invasion_v1",
"maxplayers": 100,
"name": "[RU] | PROTOCOL | Classic | Только популярные карты | discord.gg/prtcl",
"numplayers": 22,
"official": null,
"points": 52,
"port": 27171,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27171,
"request": "195.18.27.195:27171",
"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": "Invasion",
"hidden": false,
"last_offline": 1790058198,
"last_online": 1791061622,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 97,
"wipe_period": null,
"eosSessionId": "4b5be67a1a64460aa52cd87fc5648822"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11871904");
$data = json_decode($json, true);
var_dump($data);