面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11095723
json
{
  "response": {
    "fps": 79,
    "fps_avg": 82,
    "entities_count": 93688,
    "world_seed": 1337,
    "world_size": 3800,
    "steam_id": "90286953013666843",
    "domain": null,
    "id": 11095723,
    "ip": "45.157.16.53",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Jakarta",
    "description": "![PRIME EXTINCAO 2X | MAX 6 | 09/06](https://www.primextincao.com/loggimg/server_image.png)\nBem vindos ao PRIME EXTINCAO 2X\r\n\r\n- Max 6\r\n- Upkeep/Decay 50%\r\n- Outpost, Bandit unificados\r\n-Wipe mapa 2 vezes na semana | BP somente no Force Wipe\r\n-Hemp acelerada\r\n-Proibido aliança, cheats e ofensas\r\n\r\nDiscord oficial no botão externo",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781247835,
    "last_online": 1781350231,
    "icon": null,
    "name": "PRIME EXTINCAO 2X | MAX 6 | 09/06",
    "connect": "45.157.16.53:28015",
    "request": "45.157.16.53:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "ID",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1770028159,
    "last_update": 1781350231,
    "banned": false,
    "wipe": 1781039050,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4321,
    "language": "id",
    "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/11095723");
$data = json_decode($json, true);
var_dump($data);