Hempville 420 No Kos Low Decay / Limited PvP 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 49,
"fps_avg": 44,
"entities_count": 263356,
"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": 1780551025,
"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": 9,
"maxplayers": 90,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1744806161,
"last_update": 1780551025,
"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": 613,
"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.cn/servers/8568589");
$data = json_decode($json, true);
var_dump($data);