US BETTER RUST - 5x - FREE KITS 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 240,
"fps_avg": 239,
"entities_count": 45210,
"world_seed": 1337,
"world_size": 2500,
"steam_id": "90286509715354632",
"domain": null,
"id": 11607191,
"ip": "173.168.121.138",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Spring Hill",
"description": "\nNext Wipe: 5/7 @ 8:00PM EST \r\n NO VAC/GAME/SERVER BANS ALLOWED \r\n FREE KITS \r\n FREE Minicopter \r\n 5x gather on mats \r\n Offline Raid Protection - You must log in every two days \r\n Box Sorting \r\n Larger stack sizes in base \r\n Insta crafting \r\n Extra safe zone recycles \r\n Long Days and short nights \r\n Extended workbench range \r\n Active admins & more",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780241650,
"last_online": 1780647029,
"icon": null,
"name": "US BETTER RUST - 5x - FREE KITS",
"connect": "173.168.121.138:28015",
"request": "173.168.121.138:28016",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915498,
"last_update": 1780647029,
"banned": false,
"wipe": 1778632623,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5227,
"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/11607191");
$data = json_decode($json, true);
var_dump($data);