Rust
SEA-JPN -EU 3X MAX 16 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11435890json
{
"response": {
"fps": 96,
"fps_avg": 98,
"entities_count": 108694,
"world_seed": 1086195883,
"world_size": 4250,
"steam_id": "90284752105975812",
"domain": null,
"id": 11435890,
"ip": "125.229.71.221",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Taipei",
"description": "###\r\n# Server Settings & Rules\r\n###\r\n\r\nRestart Time: 03:00 (UTC+8) / 19:00 (UTC)\r\nPvP: Enabled\r\nMax Team Size: 16 players\r\nWipe Cycle: Official Rust\r\nGather Rate: 3x\r\n\r\nRules:\r\n- No cheating or hacking\r\n- Respect all players\r\n- Log out safely before restart",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776625996,
"score": 0,
"last_online": 1776841819,
"icon": null,
"name": "SEA-JPN -EU 3X MAX 16",
"connect": "125.229.71.221:28025",
"request": "125.229.71.221:28026",
"map": "Procedural Map",
"gamemode": "Softcore",
"version": "2623",
"numplayers": 3,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "TW",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774977211,
"last_update": 1776841819,
"banned": false,
"wipe": 1775157418,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2194,
"language": "zh",
"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/11435890");
$data = json_decode($json, true);
var_dump($data);