面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/5310074
json
{
  "response": {
    "fps": 99,
    "fps_avg": 99,
    "entities_count": 103413,
    "world_seed": 1698997804,
    "world_size": 4250,
    "steam_id": "90286582065921049",
    "domain": null,
    "id": 5310074,
    "ip": "64.74.161.167",
    "port": 28221,
    "query": 28225,
    "color": 0,
    "city": "Pointe-Claire",
    "description": "![05/28 WEEKLY SOLO/DUO/TRIO Pepega Vanilla](https://www.ideasmama.com/wp-content/uploads/pepega.jpg)\nWelcome to Pepega Solo Vanilla.\r\n-Solo/Duo/Trio Only \r\n-Weekly Map Wipe\r\n-Monthly BP Wipe \r\n\r\n-Report abuse at [email protected]. \r\n\r\n-Pepega is on EAST US. Cheaters/betas will be perma-banned. The server wipes every Thursdays unless the population dies. BPs wipe once/twice a month. \r\n-The server last wiped on 05/28",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780548267,
    "last_online": 1780549834,
    "icon": null,
    "name": "05/28 WEEKLY SOLO/DUO/TRIO Pepega Vanilla",
    "connect": "64.74.161.167:28221",
    "request": "64.74.161.167:28225",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1721895983,
    "last_update": 1780549834,
    "banned": false,
    "wipe": 1780007082,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2415,
    "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/5310074");
$data = json_decode($json, true);
var_dump($data);