Rust
Moradon - PVE - [AU] [Raidable Bases] [Skill Tree] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7741235json
{
"response": {
"fps": 39,
"fps_avg": 39,
"entities_count": 109263,
"world_seed": 45397834,
"world_size": 4250,
"steam_id": "90284533926383627",
"domain": null,
"id": 7741235,
"ip": "103.212.227.49",
"port": 28015,
"query": 28017,
"color": 0,
"city": "The Rocks",
"description": "![Moradon - PVE - [AU] [Raidable Bases] [Skill Tree]](https://i.imgur.com/ooMGTlS.png)\nWelcome! Moradon is a PvE server (Player versus Environment) for role players, builders, newbies and anyone who wants a relaxed and enjoyable experience. \r\n\r\n No raiding or looting other Players.\r\n\r\n The server is setup for teams of 1 to 12. \r\n\r\n\r\n Plugins include:\r\n TruePVE\r\n Raidable bases tier 3 \r\n Monuments Events \r\n BetterTC\r\n Train bases\r\n and more. \r\n As well as increased stack size to assist with farming and item resources. \r\n\r\n Daily server reboot: 2am \r\n\r\n Wipe Every Friday 7am \r\n\r\n Twig and Wood Damage is enabled! So make sure to upgrade to at least stone for your building to be invulnerable to damage \r\n\r\n Note: Admins do play this server. \r\n\r\n rs00:6.aozJ/0rAi43&&P% - Battle Metrics Tag",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776372224,
"score": 0,
"last_online": 1776398419,
"icon": null,
"name": "Moradon - PVE - [AU] [Raidable Bases] [Skill Tree]",
"connect": "103.212.227.49:28015",
"request": "103.212.227.49:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 3,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1739805435,
"last_update": 1776398419,
"banned": false,
"wipe": 1776372173,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 854,
"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/7741235");
$data = json_decode($json, true);
var_dump($data);