RustChaos Vanilla EU 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 76786,
"world_seed": 1554363778,
"world_size": 3750,
"steam_id": "90286584297721881",
"domain": null,
"id": 10978705,
"ip": "194.69.160.15",
"port": 28027,
"query": 28029,
"color": 0,
"city": "City of London",
"description": "\nWelcome to RustChaos Vanilla EU! \r\n Pure vanilla experience! \r\n Wipe: Map & BP wipes monthly @ force wipe! \r\n Active admins and mods! \r\n Hosted on high perfomance server!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780383852,
"last_online": 1780605035,
"icon": null,
"name": "RustChaos Vanilla EU",
"connect": "194.69.160.15:28027",
"request": "194.69.160.15:28029",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769900996,
"last_update": 1780605035,
"banned": false,
"wipe": 1778180882,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4058,
"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/10978705");
$data = json_decode($json, true);
var_dump($data);