MIGHTYRUST.GG|Solo Only|Monthly|No BP Wipes|Low Upkeep 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 42,
"fps_avg": 42,
"entities_count": 132348,
"world_seed": 1337,
"world_size": 4250,
"steam_id": "90286604583086096",
"domain": null,
"id": 4261949,
"ip": "156.236.84.27",
"port": 28025,
"query": 28026,
"project_id": null,
"color": 0,
"city": "Dallas",
"description": "\nWelcome to Mightyrust's Solo Only Monthly Server!\r\n\r\n- No exploiting, scripting, or cheating of any kind.\r\n- No Racism or Discrimination.\r\n- No VPN's allowed.\r\n\r\nMaps Wiped on Force Wipe(First Thursday of every Month).\r\nNo BP wipes.\r\n\r\nVisit MIGHTYRUST.GG for more information!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780595060,
"last_online": 1780908625,
"icon": null,
"name": "MIGHTYRUST.GG|Solo Only|Monthly|No BP Wipes|Low Upkeep",
"connect": "156.236.84.27:28025",
"request": "156.236.84.27:28026",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 7,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 66,
"add_date": 1715849115,
"last_update": 1780908625,
"banned": false,
"wipe": 1780597042,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 898,
"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/4261949");
$data = json_decode($json, true);
var_dump($data);