[EU] Henrys Rust Server | Vanilla | Weekly 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 133,
"fps_avg": 130,
"entities_count": 109094,
"world_seed": 1331181802,
"world_size": 4500,
"steam_id": "90286604802020366",
"domain": null,
"id": 10968710,
"ip": "62.210.198.82",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Paris",
"description": "![[EU] Henrys Rust Server | Vanilla | Weekly](https://i.postimg.cc/SNm873Ts/rust-header-3-512x256-2.png)\nVanilla Rust Experience\r\n - Map Wipe: Thursday 14th May 18:30 UTC\r\n\r\nJoin our Discord and vote on maps:\r\n - https://discord.gg/m8ZZcZVrZy",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780598072,
"last_online": 1780644632,
"icon": null,
"name": "[EU] Henrys Rust Server | Vanilla | Weekly",
"connect": "62.210.198.82:28015",
"request": "62.210.198.82:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768755761,
"last_update": 1780644632,
"banned": false,
"wipe": 1780598207,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3893,
"language": "fr",
"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/10968710");
$data = json_decode($json, true);
var_dump($data);