Darkstar 5X Experimental 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 133,
"fps_avg": 140,
"entities_count": 66643,
"world_seed": 1162579596,
"world_size": 3500,
"steam_id": "90285943570901012",
"domain": null,
"id": 10939465,
"ip": "172.240.229.71",
"port": 28065,
"query": 28066,
"color": 0,
"city": "Chicago",
"description": "Darkstar - Raising hell to lower heaven. \r\n\r\nThis game contains toxic players known to the State of California to cause cancer and birth defects or other reproductive harm.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778197384,
"last_online": 1779201023,
"icon": null,
"name": "Darkstar 5X Experimental",
"connect": "172.240.229.71:28065",
"request": "172.240.229.71:28066",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2624",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768494596,
"last_update": 1779201023,
"banned": false,
"wipe": 1778197478,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3957,
"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/10939465");
$data = json_decode($json, true);
var_dump($data);