US Two - Test Server atm - US One Main Server 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 159,
"fps_avg": 163,
"entities_count": 61141,
"world_seed": 481981,
"world_size": 3250,
"steam_id": "90286444659295253",
"domain": null,
"id": 11260940,
"ip": "162.216.115.124",
"port": 28080,
"query": 28015,
"color": 0,
"city": "Secaucus",
"description": "\nWhat does WIB mean ( Where is Bob )\r\n\r\nDo have Events that change time to time\r\nThere are QOL plugins make things little easier.\r\nMostly have custom maps for each wipe, will be default if Server owner out of town.\r\nClick External Website to join Discord for more info.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780617254,
"last_online": 1780615835,
"icon": null,
"name": "US Two - Test Server atm - US One Main Server",
"connect": "162.216.115.124:28080",
"request": "162.216.115.124:28015",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774555212,
"last_update": 1780617254,
"banned": false,
"wipe": 1778245454,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9611,
"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/11260940");
$data = json_decode($json, true);
var_dump($data);