面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11510982
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 69602,
    "world_seed": 1337,
    "world_size": 3750,
    "steam_id": "90286620237404178",
    "domain": null,
    "id": 11510982,
    "ip": "82.27.128.93",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Amsterdam",
    "description": "![Soloking.gg - 10x Solo Only](https://cdn3.mapstr.gg/6e156dc9c92b79047b35a00b3ea9d671.jpg)\nWELCOME TO SOLOKING.GG 10X SOLO ONLY\r\nMap Size 3750, Limit Team 1\r\n\r\nWipe Times\r\n14:00 GMT Monday and Friday\r\nRP Wipe Every Monthly Forced Wipe.\r\n\r\nModded\r\nKits, Shop, Skinbox, Teleport, Cases, Trade, Mini, Remove Tool, Bgrade, RP System, Autodoors, Furnace Splitter, Base Upgrade, Base Repair, Leaderboards, Sort Box, Custom Anti Cheat, Automatic Teaming Detection, Etc.\r\n\r\nWe Are Looking For Excellent Members To Join Our Staff Team.\r\n\r\nOfficial website: https://soloking.gg/",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780636227,
    "icon": null,
    "name": "Soloking.gg - 10x Solo Only",
    "connect": "82.27.128.93:28015",
    "request": "82.27.128.93:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353836,
    "last_update": 1780636227,
    "banned": false,
    "wipe": 1780613364,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4759,
    "language": "nl",
    "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/11510982");
$data = json_decode($json, true);
var_dump($data);