Rust
[JP][PVE]RUSTJAPAN BPdrop 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11435972json
{
"response": {
"fps": 162,
"fps_avg": 152,
"entities_count": 103653,
"world_seed": 50000,
"world_size": 3500,
"steam_id": "90284800171658242",
"domain": null,
"id": 11435972,
"ip": "51.79.218.251",
"port": 29703,
"query": 29704,
"color": 0,
"city": "Singapore",
"description": "BPDROP(ハード)サーバー\r\n・建築は購入した区画のみ可能 ・カスタムマップで新しい探索体験\r\n・ボートはフィッシングビレッジで解放 ・ブラッドリー / ヘリイベントは高難易度\r\n・ヘリシグナルは拠点密集地での使用禁止 ・モニュメントにはNPCが配置",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776582199,
"score": 0,
"last_online": 1776853819,
"icon": null,
"name": "[JP][PVE]RUSTJAPAN BPdrop",
"connect": "51.79.218.251:29703",
"request": "51.79.218.251:29704",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1774977214,
"last_update": 1776853819,
"banned": false,
"wipe": 1775657367,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2099,
"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/11435972");
$data = json_decode($json, true);
var_dump($data);