API для Sharing-Rust 公益服 | 欢迎常驻玩家 | 友爱社区 | �
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 14,
"fps_avg": 11,
"entities_count": 206152,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90289818386647056",
"domain": null,
"id": 12959866,
"ip": "114.241.247.158",
"port": 28015,
"query": 28016,
"project_id": null,
"color": 0,
"city": "Beijing",
"description": "欢迎来到 Sharing-Rust 服务器!\n\n本服为长期公益服,不设任何付费特权,不卖资源、不卖权限。\n只为热爱 Rust 的你提供一个公平、友好、纯净的生存环境。\n\n无论你是独狼还是团队,新手还是老手,这里都欢迎你。\n希望你能在这里建造、战斗、成长,找到属于自己的乐趣。\n\n常驻即是最好的支持,祝游戏愉快!\n本服QQ群:1050072914",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1785328926,
"last_online": 1785391178,
"icon": null,
"name": "Sharing-Rust 公益服 | 欢迎常驻玩家 | 友爱社区 | �",
"connect": "114.241.247.158:28015",
"request": "114.241.247.158:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2631",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1785328926,
"last_update": 1785391178,
"ban_reason": null,
"banned": false,
"wipe": 1785267307,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6478,
"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.ru/servers/12959866");
$data = json_decode($json, true);
var_dump($data);