面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10922629
json
{
  "response": {
    "modded": true,
    "fps": 240,
    "fps_avg": 238,
    "entities_count": 54299,
    "world_seed": 1337,
    "world_size": 3000,
    "steam_id": "90286401187638296",
    "domain": null,
    "id": 10922629,
    "ip": "172.240.11.211",
    "port": 25606,
    "query": 25608,
    "color": 0,
    "city": "Ashburn",
    "description": "![Absynth Rust Primitive RP|PVE|PVP](https://www.dropbox.com/scl/fi/su9ubowbdbe7yl4dwwc7x/Prim_Server_Logo_with_bgc.png?rlkey=72rsw03f1e8wnrqh2xlwecmrl&st=xaeqwslh&dl=1)\nExperience medieval Rust with RP|PVE|PVP!\r\n\r\nMonthly wipe with custom maps, monuments, and NPCs\r\nNO KOS OR RAIDING except specified PVP monument locations\r\n48-hour purge at 2pm EST Tuesday before force wipe\r\nNo Tech Tree - Find most items and research them by exploring monuments or buy from server or player shops\r\nTP, Increased Stack Sizes, Sign Artist, Welcome Starter Kit\r\nFree Medieval Skins, Stackable Boxes, Skip Night Vote, Shop\r\nClans, Land Claim, Roaming NPCs, Quests, Fast Recycle, Sort\r\nVisit us on our website at https://absynthrust.com or on discord at https://discord.gg/absynthrust for real-time updates and information about our other servers",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779999821,
    "last_online": 1780165825,
    "icon": null,
    "name": "Absynth Rust Primitive RP|PVE|PVP",
    "connect": "172.240.11.211:25606",
    "request": "172.240.11.211:25608",
    "map": "Absynth Rust Custom Map",
    "gamemode": "Primitive",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768476985,
    "last_update": 1780165825,
    "banned": false,
    "wipe": 1778433043,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3024,
    "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/10922629");
$data = json_decode($json, true);
var_dump($data);