Rust
Hunt and Chill PVE Rust 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11435342json
{
"response": {
"fps": 150,
"fps_avg": 153,
"entities_count": 69880,
"world_seed": 453832400,
"world_size": 3500,
"steam_id": "90285631922310158",
"domain": null,
"id": 11435342,
"ip": "91.98.186.104",
"port": 28080,
"query": 28015,
"color": 0,
"city": "Falkenstein",
"description": "\nHunt and Chill PVE\r\n\r\n• PVE experience on one of best maps selected with almost all Monuments\r\n• Some QoL plugins like TruePVE mod\r\n• Small Server and Low Upkeep\r\n• Rules in game chat\r\n• Update when is posibile\r\n• English",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778436781,
"score": 0,
"last_online": 1778541014,
"icon": null,
"name": "Hunt and Chill PVE Rust",
"connect": "91.98.186.104:28080",
"request": "91.98.186.104:28015",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 1,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1774977186,
"last_update": 1778541014,
"banned": false,
"wipe": 1778206217,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1088,
"language": "de",
"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/11435342");
$data = json_decode($json, true);
var_dump($data);