面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10741142
json
{
  "response": {
    "fps": 34,
    "fps_avg": 31,
    "entities_count": 177610,
    "world_seed": 651672677,
    "world_size": 5000,
    "steam_id": "90286490267083781",
    "domain": null,
    "id": 10741142,
    "ip": "104.128.58.230",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "Chicago",
    "description": "![NEW█Sinister Rust Zombies|PVP|Raidable Bases|Skills|Shared BP](https://i.imgur.com/KrSXRdg.png)\n████ PVP IS ALLOWED ANYWHERE ████\r\n\r\nWelcome to our NEW server, Sinister Rust. Zombies, Bosses and Cannibals roam the world. There are also many dangerous events that occur periodically on the island. Quests are available at the Outpost.\r\n\r\nPVP AND RAIDING IS ALLOWED. NEW PLAYERS WELCOME\r\n████SCROLL TO READ MORE\r\n████Wipes occur 1ST Thursday OF EVERY MONTH\r\n████WIPED 2/6/26\r\n████NO BLUEPRINT WIPES\r\n\r\n❀EVENTS LIST❀\r\nPersonal Dungeons, Sputnik, Zombie Hunter, Guarded Crate, Skill Tree XP Events\r\n\r\n☼INFO☼\r\n\r\n❀PVP/RAIDING ALLOWED❀\r\n❀VEHICLE SHOP❀\r\n❀KITS❀\r\n❀EXTENDED WORKBENCH❀\r\n❀SKIN BOX WITH CUSTOM REQUESTS❀\r\n❀BLUEPRINT SHARE WITH TEAM❀\r\n❀INVENTORY AND BOX SORT BUTTON❀\r\n❀SHOP❀\r\n❀HOMEMADE PLUGINS❀\r\n❀SKILL TREE❀\r\n❀QUESTS❀\r\n❀CLAN CREATION COMMANDS❀\r\n❀ZOMBIES❀\r\n❀MyTugboat for VIPs❀\r\n❀ACTIVE ADMIN ON DISCORD❀\r\n❀4 PLAYER TEAM SIZE LIMIT❀\r\n❀KILLING ZOMBIES AND PLAYERS GIVES RP TO USE IN THE SHOP❀\r\n❀KILLING ZOMBIES ALSO GIVES XP FOR SKILL TREE❀\r\n\r\n☼RULES☼ \r\n\r\nNo cheating, glitching, harassing players or spamming chat intentionally.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780293850,
    "last_online": 1780356032,
    "icon": null,
    "name": "NEW█Sinister Rust Zombies|PVP|Raidable Bases|Skills|Shared BP",
    "connect": "104.128.58.230:28035",
    "request": "104.128.58.230:28036",
    "map": "WE ARE A NEW SERVER",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 2,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1766250800,
    "last_update": 1780356032,
    "banned": false,
    "wipe": 1778302595,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3884,
    "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/10741142");
$data = json_decode($json, true);
var_dump($data);