Pure Casual Rust [Bots/Botbases] 3x 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 20,
"fps_avg": 20,
"entities_count": 144463,
"world_seed": 1323140181,
"world_size": 4300,
"steam_id": "90286932934690839",
"domain": null,
"id": 5844162,
"ip": "103.137.14.69",
"port": 49035,
"query": 49036,
"project_id": null,
"color": 0,
"city": "Мельбурн",
"description": "![Pure Casual Rust [Bots/Botbases] 3x](https://i.imgur.com/upwVvAI.jpg)\nCasual server(Fortnightly wipe) with bots and raidable (BOT) bases, also with (limited) offline raid protection, Random bot loot and random bot base loot. Now with NPC Raiders as well! Discord is https://discord.gg/DNR2NSnwSW",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1781287439,
"last_online": 1781336425,
"icon": null,
"name": "Pure Casual Rust [Bots/Botbases] 3x",
"connect": "103.137.14.69:49035",
"request": "103.137.14.69:49036",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2627",
"numplayers": 3,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "AU",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1725264175,
"last_update": 1781336425,
"banned": false,
"wipe": 1780611061,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1651,
"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/5844162");
$data = json_decode($json, true);
var_dump($data);