Rust
My Untitled Rust Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10661882json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 12201,
"world_seed": 1,
"world_size": 2000,
"steam_id": "90283777967238175",
"domain": null,
"id": 10661882,
"ip": "66.51.99.77",
"port": 28020,
"query": 28021,
"color": 0,
"city": "Dallas",
"description": "![[US] Northrin | Solo/Duo/Trio | Modded Vanilla Rust](https://www.dropbox.com/scl/fi/2bwe50xdtvn8w80j2ovmq/NMVRB.jpg?rlkey=77qsgk1jeo4ve94xq9syj8s08&dl=1)\nWelcome to Northrin! \r\n \r\n Northrin is a Modded Vanilla Rust server, with a few quality of life features added in, \r\n Below is a list of everything to know about the server. \r\n \r\n - Server Wipes Every Thursday at 6:00pm CST \r\n - Max Team Size of 3 \r\n - Clan Tags \r\n - BP Share \r\n - Box Sorting \r\n - Slightly Faster Smelting Speeds \r\n - 1.5x Wood Gather Rate",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775194330,
"score": 0,
"last_online": 1776840621,
"icon": null,
"name": "My Untitled Rust Server",
"connect": "66.51.99.77:28020",
"request": "66.51.99.77:28021",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2622",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1764544837,
"last_update": 1776840621,
"banned": false,
"wipe": 1773964225,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3937,
"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/10661882");
$data = json_decode($json, true);
var_dump($data);