Bamba Roleplay 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 60,
"entities_count": 49953,
"world_seed": 78905636,
"world_size": 3000,
"steam_id": "90286613215937548",
"domain": null,
"id": 10605619,
"ip": "66.51.96.53",
"port": 28035,
"query": 28036,
"color": 0,
"city": "Ashburn",
"description": "![[US East] Funny Onion Monthly 3x Creative-Builds (No BP Wipes)](https://www.google.com/url?sa=i&url=https%3A%2F%2Fapi-server.pexels.com%2Fphoto%2Fonions-in-close-up-photography-15421637%2F&psig=AOvVaw3YS9hjGeWk6uNtjP0gL5uq&ust=1763178363674000&source=images&cd=vfe&opi=89978449&ved=0CBYQjRxqFwoTCIisgbPd8JADFQAAAAAdAAAAABAK)\nVanilla-ish 1x server - Increased stack size's, No BP Wipes, Auto sort, sign artist with /sil (monitored and privledges will be removed for innapropriate content)), Instant craft, and a smaller map size (2500). Great server for noobs trying to learn the game/monuments or people just trying to have a chill time and hang with/make friends. Enjoy, good vibes only!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779754402,
"last_online": 1780644631,
"icon": null,
"name": "Bamba Roleplay",
"connect": "66.51.96.53:28035",
"request": "66.51.96.53:28036",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1763321651,
"last_update": 1780644631,
"banned": false,
"wipe": 1780618112,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3576,
"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/10605619");
$data = json_decode($json, true);
var_dump($data);