Rust
OKAWAServer_JP_PvE 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3336607json
{
"response": {
"fps": 46,
"fps_avg": 41,
"entities_count": 120463,
"world_seed": 1278625866,
"world_size": 3500,
"steam_id": "90284747637114884",
"domain": null,
"id": 3336607,
"ip": "160.251.235.159",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Chiyoda City",
"description": "ようこそ大川サーバへ!\r\n\r\n本サーバはPVEサーバです。\r\nサーバのルールは左下のリンクからDiscordへ参加して確認してください。\r\nルール違反者は処罰の対象となります。\r\n\r\nDiscord内は現在、日本語のみです。\r\n\r\nWelcome to OKAWAServer!!\r\nClick the [WEBPAGE] button to check the Server Rules.\r\nLanguage: Japanese only",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776289312,
"score": null,
"last_online": 1776853816,
"icon": null,
"name": "OKAWAServer_JP_PvE",
"connect": "160.251.235.159:28015",
"request": "160.251.235.159:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 7,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 66,
"add_date": 1710067775,
"last_update": 1776853816,
"banned": false,
"wipe": 1775208740,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 778,
"language": "ja",
"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/3336607");
$data = json_decode($json, true);
var_dump($data);