Champs 2X NA [BetterLoot|clans|EVENTS] 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 239,
"fps_avg": 237,
"entities_count": 73201,
"world_seed": 282862727,
"world_size": 3500,
"steam_id": "90286734622096387",
"domain": null,
"id": 11771324,
"ip": "135.148.172.139",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Hudson",
"description": "![Champs 2X NA [BetterLoot|clans|EVENTS]](https://imgur.com/9XZpFag)\nMade and managed by Champ servers \r\n join our discord now https://discord.gg/RSYqfJzfgr\r\nVip que skip and kits can be bought at \r\n https://champs-rust-webshop.tebex.io/\r\nany issues please make a ticke on our discord /n discord.gg/champsrust",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780996894,
"last_online": 1781045431,
"icon": null,
"name": "Champs 2X NA [BetterLoot|clans|EVENTS]",
"connect": "135.148.172.139:28015",
"request": "135.148.172.139:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 125,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1780996894,
"last_update": 1781045431,
"banned": false,
"wipe": 1780612353,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6147,
"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/11771324");
$data = json_decode($json, true);
var_dump($data);