面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11260074
json
{
  "response": {
    "fps": 149,
    "fps_avg": 144,
    "entities_count": 84956,
    "world_seed": 411533420,
    "world_size": 4000,
    "steam_id": "90286537794189318",
    "domain": null,
    "id": 11260074,
    "ip": "94.130.16.123",
    "port": 28016,
    "query": 28015,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Riggity Riggity Wrecked Son x50 TP KITS](https://spum.co/idiot_wrecked.jpg)\nGet riggity riggity wrecked son! Lots of mods, lots of death, compliments C-137. \r\n The only thing we wipe are asses! Sometimes we don't! NO WIPES!\r\n \r\n MODS: \r\n \r\n ExplodingBarrels :) \r\n FancyDrop \r\n Friends \r\n GUISkipNight \r\n GatherManager \r\n ImageLibrary \r\n InstantCraft \r\n ItemSkinRandomizer \r\n KillFeed \r\n Kits \r\n NTeleportation \r\n QuickSmelt \r\n RemoverTool \r\n RulesGUI \r\n StackSizeController \r\n \r\n And more...",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780572030,
    "icon": null,
    "name": "Riggity Riggity Wrecked Son x50 TP KITS",
    "connect": "94.130.16.123:28016",
    "request": "94.130.16.123:28015",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555186,
    "last_update": 1780572030,
    "banned": false,
    "wipe": 1780141451,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4316,
    "language": "de",
    "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/11260074");
$data = json_decode($json, true);
var_dump($data);