API для [BRASIL] WAR EM LAS VEGAS | MINIGAMES / PVP |
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1718269559,
"app": {
"id": 168,
"name": "Samp",
"steam_id": 9000035,
"url": "samp"
},
"color": 0,
"connect": "135.148.159.205:7777",
"country": "US",
"domain": null,
"game": 9000035,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 4785259,
"ip": "135.148.159.205",
"language": "en",
"last_update": 1794918947,
"map": "STT v5.2",
"maxplayers": 530,
"name": "[BRASIL] WAR EM LAS VEGAS | MINIGAMES / PVP |",
"numplayers": 11,
"official": null,
"points": 31,
"port": 7777,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7777,
"request": "135.148.159.205:7777",
"secured": null,
"status": true,
"steam_id": null,
"version": "0.3.7-R3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Рестон",
"description": "",
"disabled_modules": [],
"gamemode": "Brasil PvP/DM/Minigames/CnR",
"hidden": false,
"last_offline": 1786802748,
"last_online": 1794918947,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 259,
"wipe_period": null,
"pr": false,
"openMp": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/4785259");
$data = json_decode($json, true);
var_dump($data);