My Untitled Rust Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"modded": true,
"fps": 60,
"fps_avg": 60,
"entities_count": 107791,
"world_seed": 1831892531,
"world_size": 4250,
"steam_id": "90286612680186881",
"domain": null,
"id": 11511167,
"ip": "162.19.95.129",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Gravelines",
"description": "\nWelcome to WarBandits.gg 3x Solo/Duo/Trio! \r\nOn our servers we provide the best Rust gameplay. We run multiple balanced plugins to improve the quality of the game. Our servers also run on the best Network & Hardware possible to improve your ingame experience on our servers! \r\n ✦ 3x Gather Rates \r\n ✦ 3x Crafting Speed \r\n ✦ 3x Components and Scrap \r\n ✦ Recyclers at additional monuments \r\n ✦ Custom High Performance Maps \r\n ✦ Extended Workbench range \r\n ✦ Tier 1 BPs unlocked \r\n ✦ Long Days & Short Nights \r\n ✦ Group Limit: 3 \r\n ✦ Active Staff \r\n ✦ Fast Smelt \r\n Make sure to join our discord server before playing by pressing the view webpage button or by visiting the link warbandits.gg/discord",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780615457,
"last_online": 1780659033,
"icon": null,
"name": "My Untitled Rust Server",
"connect": "162.19.95.129:28015",
"request": "162.19.95.129:28016",
"map": "Wiped 44 Hours ago",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353838,
"last_update": 1780659033,
"banned": false,
"wipe": 1780498681,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4911,
"language": "fr",
"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/11511167");
$data = json_decode($json, true);
var_dump($data);