面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11710856
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 3378,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": "90286463382839302",
    "domain": null,
    "id": 11710856,
    "ip": "176.9.52.110",
    "port": 25584,
    "query": 25575,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU]FreeFields/Creative/Building/Sandbox](https://i.postimg.cc/Qx8ctZDg/RUST-Group-Shot-Building.png)\n•Welcome to our server Free Fields \r\n•Server wipes Monthly On Client Update.\r\n•Monuments to Practice Coming Soon. •Heli Course \r\n•Raid Cost \r\n•Join our community in Discord for support: https://discord.gg/jdYbgAacUM.\r\n \r\n \r\n✦/Pvp toggle and use of /god to turn on godmode.\r\n•Simple Symmetry• \r\n•We have unlimited Mymini and fuel so can practice flying. \r\n•F1 Spawn (Spawn any item by typing f1 and clicking items tab \r\n✦/NoClip to Fly around \r\n•Bgrade aka /up command automatically upgrade your base,  Type /up 1-4 to be able to upgrade build 1 being wood 2 stone 3 metal 4 armor \r\n✦/Tp Commands \r\n•Teleport Marker /tpr /teleport - to bandit or other locations using the /tp commands /bandit /tpr (playersname) \r\n✦/copy /paste command able to copy your bases for future wipes just type /copy <base name> /paste <base name>. \r\n✦/kit to instantly claim the builder kit and spawn in with tons of materials \r\n•Skins \r\n•/sil {IMAGE URL} – If You have a sign/box. Your can put image on it by looking at it. \r\n•Also Typing in /sil followed by the url image you wish to add \r\n•Rules: \r\n•No hacking \r\n• scripting or macros \r\n•No intentional bug abuse/Glitching \r\n•No ban evading \r\n•No racism, Homophobic comment's \r\n•Respect the others \r\n• No tc Griefing islands \r\n• No leaving Random Foundations On Islands",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780300725,
    "last_online": 1780336232,
    "icon": null,
    "name": "[EU]FreeFields/Creative/Building/Sandbox",
    "connect": "176.9.52.110:25584",
    "request": "176.9.52.110:25575",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780300725,
    "last_update": 1780336232,
    "banned": false,
    "wipe": 1779314482,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6200,
    "language": "de",
    "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/11710856");
$data = json_decode($json, true);
var_dump($data);