KGN-Noob Palace: No KOS/Noob Friendly/Chill 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 97,
"fps_avg": 95,
"entities_count": 105943,
"world_seed": 939411492,
"world_size": 4300,
"steam_id": "90286611185388554",
"domain": null,
"id": 567762,
"ip": "74.91.125.165",
"port": 28015,
"query": 28015,
"color": 0,
"city": "Chicago",
"description": "\nThis is a No KOS, noob friendly server; BP's wipe monthly \r\nPVP zones are marked on the map. \r\nRaiding is allowed but dont make it your sole purpose. \r\nFor more info and rules, please visit the discord. https://discord.gg/6GPKnBAcu3 \r\nQuality Of Life Additions \r\n2x stacks \r\n2x recycler \r\nFaster Vendors \r\nNo Fuel Lanterns \r\nhalf Upkeep \r\nHalfDeployable Decay \r\nAdmin shops selling unique items with public utilities \r\nCurrent Schedule: June 4th - June 18th \r\nPurge Event: through wipe day June 17th - June 8th.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780610057,
"last_online": 1780630824,
"icon": null,
"name": "KGN-Noob Palace: No KOS/Noob Friendly/Chill",
"connect": "74.91.125.165:28015",
"request": "74.91.125.165:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 6,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 65,
"add_date": 1668891156,
"last_update": 1780630824,
"banned": false,
"wipe": 1780609996,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 822,
"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/567762");
$data = json_decode($json, true);
var_dump($data);