Rust
[SEA] 3/4 Monthly RusticSea | PvE | RP| Noob-Friendly |Vanilla 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4846788json
{
"response": {
"fps": 26,
"fps_avg": 26,
"entities_count": 159019,
"world_seed": 1672725667,
"world_size": 4500,
"steam_id": 90284274304054290,
"domain": null,
"id": 4846788,
"ip": "103.107.199.231",
"port": 28075,
"query": 28076,
"color": 0,
"city": "Singapore",
"description": "No raiding, killing or stealing is allowed in the server. \r\n 禁止偷家拆家杀人 违反者直接封禁 \r\n PvP only in deep sea.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775999539,
"score": 0,
"last_online": 1776850819,
"icon": null,
"name": "[SEA] 3/4 Monthly RusticSea | PvE | RP| Noob-Friendly |Vanilla",
"connect": "103.107.199.231:28075",
"request": "103.107.199.231:28076",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 2,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1718996230,
"last_update": 1776850819,
"banned": false,
"wipe": 1775152225,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1672,
"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/4846788");
$data = json_decode($json, true);
var_dump($data);