Rust Customs Premiere Edition 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 236,
"fps_avg": 235,
"entities_count": 11181,
"world_seed": 124578,
"world_size": 1500,
"steam_id": 90286457130520580,
"domain": null,
"id": 11675379,
"ip": "88.126.102.70",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Nantes",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780580619,
"last_online": 1780273399,
"icon": null,
"name": "Rust Customs Premiere Edition",
"connect": "88.126.102.70:28015",
"request": "88.126.102.70:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780181561,
"last_update": 1780580619,
"banned": false,
"wipe": 1780260204,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 12607,
"language": "fr",
"parked": false,
"app": {
"id": 252490,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11675379");
$data = json_decode($json, true);
var_dump($data);