面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11645280
json
{
  "response": {
    "fps": 45,
    "fps_avg": 43,
    "entities_count": 68566,
    "world_seed": 94151444,
    "world_size": 3500,
    "steam_id": 90286622359899150,
    "domain": null,
    "id": 11645280,
    "ip": "151.244.233.107",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Dallas",
    "description": "![Forsaken Souls|2x|Noob Friendly|Solo/Duo/Trio/Quad|Wiped 06/04](https://i.imgur.com/0JCtFht.png)\nWelcome to Forsaken Souls we are a noob freindly server, wipe is every other thursday and force wipe.\r\n- Bi-Weekly Wipes\r\n- No Vip or pay to win anything\r\n- Starter Kits\r\n- Solo/Duo/Trio/Quad\r\n- Custom Loot Tables\r\n- 2x gather/loot | 2x Stack\r\n- QoL Plugins\r\n- BP Share Enabled\r\n- Raidable Bases\r\n- Free SkinBox\r\n- Furance spliter, easy electrical, deep sea addons\r\n- Active Admins\\Join discord for full set of rules and plugins",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780629856,
    "last_online": 1780679438,
    "icon": null,
    "name": "Forsaken Souls|2x|Noob Friendly|Solo/Duo/Trio/Quad|Wiped 06/04",
    "connect": "151.244.233.107:28015",
    "request": "151.244.233.107:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 128,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780177458,
    "last_update": 1780679438,
    "banned": false,
    "wipe": 1780629379,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5611,
    "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/11645280");
$data = json_decode($json, true);
var_dump($data);