Kingdoms of RUST 2X|RP/PVP|Rewards|NPC Bases 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 105,
"fps_avg": 103,
"entities_count": 75064,
"world_seed": 1037982091,
"world_size": 3500,
"steam_id": "90286553428779027",
"domain": null,
"id": 3388030,
"ip": "216.245.177.28",
"port": 28025,
"query": 28027,
"color": 0,
"city": "Chicago",
"description": "\nWelcome to Kingdoms of RUST! \r\n*PVE/PVP/RP \r\n*Events \r\n*Custom City \r\n*NPC Raidable Bases\r\n*Rewards",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780484644,
"last_online": 1780567835,
"icon": null,
"name": "Kingdoms of RUST 2X|RP/PVP|Rewards|NPC Bases",
"connect": "216.245.177.28:28025",
"request": "216.245.177.28:28027",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1710347330,
"last_update": 1780567835,
"banned": false,
"wipe": 1778176564,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2471,
"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/3388030");
$data = json_decode($json, true);
var_dump($data);