API для Gachi
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794158445,
"app": {
"id": 6,
"name": "No More Room in Hell",
"steam_id": 224260,
"url": "no-more-room-in-hell"
},
"color": 0,
"connect": "37.214.24.163:27015",
"country": "BY",
"domain": null,
"game": 224260,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19826157,
"ip": "37.214.24.163",
"language": "be",
"last_update": 1794769584,
"map": "nmo_asylum",
"maxplayers": 5,
"name": "Gachi",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "37.214.24.163:27015",
"secured": true,
"status": false,
"steam_id": "90297014291523585",
"version": "1.1.5.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Минск",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794769584,
"last_online": 1794158445,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 639,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "nmrih",
"gametype": "spawning:active,objective,nightmare,ff:off,",
"dedicated": false
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19826157");
$data = json_decode($json, true);
var_dump($data);