API для RGN #6 -London- Powered by QONZER | discord.gg/RadicalGaming
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1774596765,
"app": {
"id": 51409,
"name": "Hell Let Loose",
"steam_id": 686810,
"url": "hell-let-loose"
},
"color": 0,
"connect": "85.208.197.68:7777",
"country": "GB",
"domain": null,
"game": 686810,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11392793,
"ip": "85.208.197.68",
"language": "en",
"last_update": 1794669995,
"map": "Kharkov",
"maxplayers": 100,
"name": "RGN #6 -London- Powered by QONZER | discord.gg/RadicalGaming",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7777,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7778,
"request": "85.208.197.68:7778",
"secured": true,
"status": true,
"steam_id": "90297430472737795",
"version": "0.1.1.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Poplar",
"description": null,
"disabled_modules": [],
"gamemode": "Hell Let Loose",
"hidden": false,
"last_offline": 1790158535,
"last_online": 1794669995,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 158,
"wipe_period": null,
"P2PADDR": "85.208.197.68",
"P2PPORT": "7777",
"VISIB_i": "0",
"CONMETHOD": "Direct",
"listentype": "d",
"Crossplay_b": "true",
"environment": "w",
"Changelist_s": "1183087",
"SESSIONFLAGS": "171",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11392793");
$data = json_decode($json, true);
var_dump($data);