NO ADMIN ABUSE NO UPKEEP SOFTCORE 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/96584
json
{
  "response": {
    "fps": 155,
    "fps_avg": 156,
    "entities_count": 117928,
    "world_seed": 85411,
    "world_size": 3900,
    "steam_id": "90285199168163854",
    "domain": null,
    "id": 96584,
    "ip": "108.61.120.70",
    "port": 28016,
    "query": 28017,
    "color": 0,
    "city": "Miami",
    "description": "Cheating, chat spamming, hate speech/imagery, and other common sense violations will result in a ban. The server restarts every day at 0300 EST and wipes on the first Thursday of every month with the update. Report any issues (server unresponsive, cheating, hacking, bans, etc.) to [email protected]. You must place one resource of each type (that you are building with) in your tool cupboard to disable upkeep. There are no Admin players on this server. Abuse free.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777618991,
    "score": null,
    "last_online": 1777642822,
    "icon": null,
    "name": "NO ADMIN ABUSE NO UPKEEP SOFTCORE",
    "connect": "108.61.120.70:28016",
    "request": "108.61.120.70:28017",
    "map": "Procedural Map",
    "gamemode": "Softcore",
    "version": "2623",
    "numplayers": 2,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1521536711,
    "last_update": 1777642822,
    "banned": false,
    "wipe": 1775155827,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2527,
    "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/96584");
$data = json_decode($json, true);
var_dump($data);