Rust
POLAR | EU Solo/Duo | Monthly | No BP Wipes 04/02 02.04 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4138919json
{
"response": {
"fps": 41,
"fps_avg": 42,
"entities_count": 102479,
"world_seed": 1337,
"world_size": 3750,
"steam_id": "90284839977240587",
"domain": null,
"id": 4138919,
"ip": "168.100.161.191",
"port": 28085,
"query": 28086,
"color": 0,
"city": "London",
"description": "\nSERVER RULES @ DISCORD.GG/POLARRUST | VIP @ STORE.POLARRUST.COM\r\n\r\nMap Wipe(s):\r\n• Monthly @ Force\r\n• Rewipe @ 4th Thursday of Month, 4pm UK time\r\n\r\nBlueprint Wipe:\r\nN/A (Never blueprint wipes)\r\n\r\nFEATURES:\r\n• 32 Turret Limit\r\n• Minicopters Spawn On Roads\r\n• Extra Recyclers/Drones/Refineries @ Fishing/Ranch",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775690523,
"score": 0,
"last_online": 1776963021,
"icon": null,
"name": "POLAR | EU Solo/Duo | Monthly | No BP Wipes 04/02 02.04",
"connect": "168.100.161.191:28085",
"request": "168.100.161.191:28086",
"map": "Wiped 20 Days ago",
"gamemode": "Survival",
"version": "2623",
"numplayers": 3,
"maxplayers": 125,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1714809925,
"last_update": 1776963021,
"banned": false,
"wipe": 1775152786,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1517,
"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/4138919");
$data = json_decode($json, true);
var_dump($data);