Rangers 2x PvP|Monthly|Backpacks|Skins|Kits 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 60,
"fps_avg": 58,
"entities_count": 116922,
"world_seed": 2092008265,
"world_size": 4500,
"steam_id": "90286604149767187",
"domain": null,
"id": 10942524,
"ip": "66.51.99.28",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Dallas",
"description": "\nThanks for joining Rangers Rust Servers \r\n Still Under Construction \r\n Server all PvP \r\n 2x Gather and Loot \r\n Max team size 4 \r\n Backpack wipes monthly also backpacks drop on death \r\n Blueprints wipe monthly \r\n No VIP so there are no disadvantages \r\n Equal playing field for all players \r\n Teleport to bandit/outpost/home for all players",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780616656,
"last_online": 1780596813,
"icon": null,
"name": "Rangers 2x PvP|Monthly|Backpacks|Skins|Kits",
"connect": "66.51.99.28:28025",
"request": "66.51.99.28:28026",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1768500043,
"last_update": 1780616656,
"banned": false,
"wipe": 1780596632,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9798,
"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/10942524");
$data = json_decode($json, true);
var_dump($data);