面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11759770
json
{
  "response": {
    "fps": 141,
    "fps_avg": 142,
    "entities_count": 100526,
    "world_seed": 2121708428,
    "world_size": 4300,
    "steam_id": "90286726746484747",
    "domain": null,
    "id": 11759770,
    "ip": "157.85.89.78",
    "port": 25541,
    "query": 25542,
    "project_id": null,
    "color": 0,
    "city": "São Paulo",
    "description": "![MAJOR | ReCrUtA | PvP | 2x - Br](https://gaming-cdn.com/images/products/2462/screenshot/grand-theft-auto-vi-pc-rockstar-wallpaper-2.jpg?v=1777888236)\nSobreviva o máximo que puder\r\n1 - Vale tudo\r\n2 - Construir base somente no aberto\r\n3 - Raid apenas online\r\n4 - Independentemente do que acontecer (Amizade não muda)\r\n5 - Permitido alianças temporárias\r\n6 - Permitido troca de itens",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780931734,
    "last_online": 1780964414,
    "icon": null,
    "name": "MAJOR | ReCrUtA | PvP | 2x - Br",
    "connect": "157.85.89.78:25541",
    "request": "157.85.89.78:25542",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 2,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BR",
    "status": true,
    "votes": 0,
    "points": 100,
    "add_date": 1780931734,
    "last_update": 1780964414,
    "banned": false,
    "wipe": 1780862195,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 180,
    "language": "pt",
    "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/11759770");
$data = json_decode($json, true);
var_dump($data);