面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11018067
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 126646,
    "world_seed": 1337,
    "world_size": 6000,
    "steam_id": "90285464211544094",
    "domain": null,
    "id": 11018067,
    "ip": "85.26.8.99",
    "port": 20105,
    "query": 20106,
    "color": 0,
    "city": "Lessines",
    "description": "![T.B.O -- développements](https://the-bandit.ovh/storage/img/banner-svr-2.png)\nWipe Schedule:\n    Map - Monthly @ Force\n    BPs - Monthly @ Force\n\nRules:\n    - No hacking / scripting\n    - No intentional bug abuse\n    - No EAC / FP banned alts\n    - No ban evading\n    - No racism\n\nGood performance\nActive non playing admins\nSeeds are carefully picked\n\nConnect: eul1.the-bandit.ovh\nDiscord: the-bandit.ovh/discord\nFull rules: the-bandit.ovh/rules\n\nVIP: the-bandit.ovh/vip",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778187787,
    "score": 0,
    "last_online": 1778180418,
    "icon": null,
    "name": "T.B.O -- développements",
    "connect": "85.26.8.99:20105",
    "request": "85.26.8.99:20106",
    "map": "the-bandit.ovh/discord",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1769944416,
    "last_update": 1778187787,
    "banned": false,
    "wipe": 1778150811,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 7381,
    "language": "nl",
    "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/11018067");
$data = json_decode($json, true);
var_dump($data);