API для Hempville 420 No Kos Low Decay / Limited PvP
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 55,
"fps_avg": 50,
"entities_count": 260675,
"world_seed": 1337,
"world_size": 4750,
"steam_id": "90286554481484817",
"domain": null,
"id": 8568589,
"ip": "168.100.162.101",
"port": 28017,
"query": 28018,
"color": 0,
"city": "Dallas",
"description": "\nWe are a NO KOS, LOW DECAY, LIMITED PvP server, with insanely active admins!! NO RAIDING, STEALING or GRUBBING WITHIN THE RP ZONE! During raid ban, there is NO entering any base or compound, touching foundations, TWIG or otherwise. Check out !discord for full deets, as you will be held to the rules, whether you know them or not!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780026820,
"last_online": 1780555227,
"icon": null,
"name": "Hempville 420 No Kos Low Decay / Limited PvP",
"connect": "168.100.162.101:28017",
"request": "168.100.162.101:28018",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 3,
"maxplayers": 90,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1744806161,
"last_update": 1780555227,
"banned": false,
"wipe": 1778180471,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1133,
"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/8568589");
$data = json_decode($json, true);
var_dump($data);