Rust
[EU] Monkey Bear Island 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10978580json
{
"response": {
"fps": 81,
"fps_avg": 76,
"entities_count": 86868,
"world_seed": 1252181378,
"world_size": 4000,
"steam_id": "90285441029539866",
"domain": null,
"id": 10978580,
"ip": "84.196.178.178",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Mechelen",
"description": "![[EU] Monkey Bear Island](https://bartjolling.github.io//assets/img/monkey-bear-island.png)\nPrivate Rust server by Monkey Bear and Conan Of Loxley\r\nLow upkeep, SortButton 2.5\r\nExpect PVP near monuments, bases and airdrops\r\nNo trolling, grieving, hacking or racism. These offenses will get you banned.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778122983,
"score": 0,
"last_online": 1778187623,
"icon": null,
"name": "[EU] Monkey Bear Island",
"connect": "84.196.178.178:28015",
"request": "84.196.178.178:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 5,
"bots": 0,
"secured": true,
"private": false,
"country": "BE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769900982,
"last_update": 1778187623,
"banned": false,
"wipe": 1775877562,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3845,
"language": "nl",
"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/10978580");
$data = json_decode($json, true);
var_dump($data);