Rust
#5-[搞就完了]pve/超级武直/突袭基地/禁止掠夺 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11261117json
{
"response": {
"oxide": true,
"modded": true,
"fps": 25,
"fps_avg": 25,
"entities_count": 113749,
"world_seed": 2067455641,
"world_size": 4000,
"steam_id": 90284789473251330,
"domain": null,
"id": 11261117,
"ip": "103.91.208.122",
"port": 12590,
"query": 12593,
"color": 0,
"city": "Jinan",
"description": "![#5-[搞就完了]pve/超级武直/突袭基地/禁止掠夺](https://pic1.imgdb.cn/item/5fde400f3ffa7d37b3eac649.jpg)\n 欢迎大佬来到【搞就完了】生存PVE - 88档 \r\n 萌新噩梦●极限挑战●休闲养老●长久服 多元化僵尸●独特RPG模式 \r\n │武器合成│装备强化│动态倍率│伤害统计│吸星大法│自动拾取│ \r\n │金币商城│钻石商城│强化守卫│任务系统│经验果实│货轮沉船│ \r\n │休闲养老│签到系统│抽奖系统│钓鱼系统│排名系统│危险宝藏│ \r\n 更多特色玩法持续更新..... \r\n 为了游戏更好的体验,请/bz仔细阅读帮助内容 \r\n 服务器反馈以及玩家交流群,请加QQ群:234055789!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776811999,
"score": 0,
"last_online": 1776836417,
"icon": null,
"name": "#5-[搞就完了]pve/超级武直/突袭基地/禁止掠夺",
"connect": "103.91.208.122:12590",
"request": "103.91.208.122:12593",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 21,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 71,
"add_date": 1774555219,
"last_update": 1776836417,
"banned": false,
"wipe": 1776558545,
"official": null,
"wipe_period": "monthly",
"next_wipe": 1779150545,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 516,
"language": "zh",
"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/11261117");
$data = json_decode($json, true);
var_dump($data);