ALLOUTWAR Linux|Vanilla|Weekly|Fridays|Wiped:17.04 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10699352
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 49229,
    "world_seed": 16419,
    "world_size": 3000,
    "steam_id": "90284798059592728",
    "domain": null,
    "id": 10699352,
    "ip": "81.226.57.218",
    "port": 29015,
    "query": 29017,
    "color": 0,
    "city": "Piteå",
    "description": "![ALLOUTWAR Linux|Vanilla|Weekly|Fridays|Wiped:17.04](http://i.ibb.co/vzhY6Qc/rsz-rust-icon-small-0.png)\n\r\n◦  Welcome To Alloutwar Vanilla  ◦ \r\n \r\n◦  For Windows and Linux players. \r\n◦  Map size 3000. \r\n◦  Map wipe Fridays at 13.00 CET. \r\n◦  BP wipe Fridays following a forcewipe at 13.00 CET. \r\n◦  No VAC bans newer than 365 days. \r\n◦  No scripting or hacking. \r\n◦  No intentional bug abuse. \r\n◦  Active admins. \r\n◦  Dedicated server. \r\n◦  Daily auto restart at 07.00 CET.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776834229,
    "score": 0,
    "last_online": 1776880826,
    "icon": null,
    "name": "ALLOUTWAR Linux|Vanilla|Weekly|Fridays|Wiped:17.04",
    "connect": "81.226.57.218:29015",
    "request": "81.226.57.218:29017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 120,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1765122736,
    "last_update": 1776880826,
    "banned": false,
    "wipe": 1776424513,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4259,
    "language": "sv",
    "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/10699352");
$data = json_decode($json, true);
var_dump($data);