面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/2295179
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 2295179,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "![gm.link/u113561 DENZI SERVER - МОСКВА, ДЛЯ НОВИЧ�](https://img.alkad.org/images/2016/09/07/52c.png)\nПолуклассический сервер, который подойдёт для новичков.\r\n\r\n- Магическое дерево с ящиками.\r\n- Система обмена игроков: /trade\r\n- Лимит в количестве 3 игроков\r\n\r\nОтзывчивая администрация 24/7\r\nКарта вайпается раз в 2 недели.",
    "game": 252490,
    "owner": 113561,
    "boosts": 1,
    "last_offline": 1756334708,
    "last_online": 1753131621,
    "icon": null,
    "name": "BubbleRust [semi-classic]",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1703019805,
    "last_update": 1756334708,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13260,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "morozeecc",
      "avatar": "no.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/2295179");
$data = json_decode($json, true);
var_dump($data);