Utopia 2X PvE/PvP 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 75983,
"world_seed": 124720684,
"world_size": 3500,
"steam_id": "90286584215600141",
"domain": null,
"id": 2405011,
"ip": "168.100.161.97",
"port": 28099,
"query": 28096,
"color": 0,
"city": "London",
"description": "\nWelcome to UtopiaEU.gg 2x Rust PvE/PvP \r\nFriendly Community with Active and Friendly Owners \r\n5x Gather Rate (2x Sulfur and all other loot) \r\nFree starter build kit \r\nIncreased stacksize \r\nFree Backpack \r\nRecyclers at Fishing Villages \r\nVarious Events inc Raidable Bases, Npc Radiers and many more \r\nDaily Rewards \r\nJoin our discord today! https://discord.gg/XuXUSXDPXt",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780341851,
"last_online": 1780579239,
"icon": null,
"name": "Utopia 2X PvE/PvP",
"connect": "168.100.161.97:28099",
"request": "168.100.161.97:28096",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1704228605,
"last_update": 1780579239,
"banned": false,
"wipe": 1778177888,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2639,
"language": "en",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/2405011");
$data = json_decode($json, true);
var_dump($data);