面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6577330
json
{
  "response": {
    "fps": 53,
    "fps_avg": 55,
    "entities_count": 98130,
    "world_seed": 791196885,
    "world_size": 4050,
    "steam_id": "90284796889798665",
    "domain": null,
    "id": 6577330,
    "ip": "102.218.213.38",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Cape Town",
    "description": "![Scrapland | PVE | RP](https://i.imgur.com/bOoyqjG.png)\nWelcome to Scrapland | PVE | RP - For all the server details use /info in game chat. Have some fun...",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776830599,
    "score": 0,
    "last_online": 1776878425,
    "icon": null,
    "name": "Scrapland | PVE | RP",
    "connect": "102.218.213.38:28015",
    "request": "102.218.213.38:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "ZA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1731160062,
    "last_update": 1776878425,
    "banned": false,
    "wipe": 1776353234,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3383,
    "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/6577330");
$data = json_decode($json, true);
var_dump($data);