Rust
gameserver8 Rust hosted by Overhosting.ru 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11435639json
{
"response": {
"fps": 89,
"fps_avg": 83,
"entities_count": 102132,
"world_seed": 149914695,
"world_size": 4250,
"steam_id": "90284677338959891",
"domain": null,
"id": 11435639,
"ip": "185.137.235.153",
"port": 28515,
"query": 28516,
"color": 0,
"city": "Moscow",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776644598,
"score": 0,
"last_online": 1776855040,
"icon": null,
"name": "gameserver8 Rust hosted by Overhosting.ru",
"connect": "185.137.235.153:28515",
"request": "185.137.235.153:28516",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2622",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774977196,
"last_update": 1776855040,
"banned": false,
"wipe": 1772848270,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7539,
"language": "ru",
"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/11435639");
$data = json_decode($json, true);
var_dump($data);