Alberta Wildlands 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 195,
"fps_avg": 193,
"entities_count": 101233,
"world_seed": 1754166749,
"world_size": 4250,
"steam_id": "90286604022946831",
"domain": null,
"id": 11645216,
"ip": "161.184.191.150",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Calgary",
"description": "\nPure vanilla Rust with a strong, respectful Alberta community. No kits, no boosts — just real survival and fair competition. Monthly wipes keep the world fresh and the action constant.\r\n\r\nServer Expectations:\r\n\r\n Respect others — compete hard, but keep it clean\r\n\r\n No cheating, exploiting, scripting, or 3rd party tools\r\n\r\n No harassment or targeted griefing\r\n\r\n No racism, hate, or slurs of any kind\r\n\r\n No excessive spam or trolling\r\n\r\n Admins enforce rules fairly and transparently\r\n\r\nPlay fair, build smart, fight hard, and help keep the Wildlands a place people actually want to play. Welcome to Alberta Wildlands.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780595664,
"last_online": 1780644628,
"icon": null,
"name": "Alberta Wildlands",
"connect": "161.184.191.150:28015",
"request": "161.184.191.150:28016",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1780177453,
"last_update": 1780644628,
"banned": false,
"wipe": 1780595941,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2227,
"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/11645216");
$data = json_decode($json, true);
var_dump($data);