API для Hoggy PVE
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 27,
"fps_avg": 29,
"entities_count": 124726,
"world_seed": 749970406,
"world_size": 4500,
"steam_id": "90286580218878979",
"domain": null,
"id": 343781,
"ip": "64.40.9.103",
"port": 28369,
"query": 28366,
"color": 0,
"city": "London",
"description": "\nWelcome to Hoggy G PvE\r\nServer Info:\r\nMap Wipe - Fortnighly\r\nBp's Wipe - Monthly\r\n\r\nRules - Please See Discord For All Server Rules\r\n\r\nMods:\r\nMonument Bradleys\r\nSinkable CargoShip\r\nJunkyard Event\r\nVirtual Quarries\r\nKits, Backpacks, Box Stacking & Zlevels\r\nTrade & Tpr \r\nTeleport Outpost, Bandit & Custom Built Town",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596861,
"last_online": 1780596037,
"icon": null,
"name": "Hoggy PVE",
"connect": "64.40.9.103:28369",
"request": "64.40.9.103:28366",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1593285473,
"last_update": 1780596861,
"banned": false,
"wipe": 1779393422,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8947,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/343781");
$data = json_decode($json, true);
var_dump($data);