面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/3024457
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 3024457,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "Наш сайт : atlantrust.ru \n > При теге в нике даеться плюшка #ATLANT\n > Можете получить Vip и platinum на 1 день \n > x1 на все ресурсы \n > Система скиллов \n > Система монет /shop \n > Система крафтов\nНаш ВК : https://vk.com/atlantrustgroup\nНа проекте возможна игра с пиратки",
    "game": 252490,
    "owner": 85883,
    "boosts": 1,
    "last_offline": 1750457066,
    "score": 5,
    "last_online": 1743627636,
    "icon": null,
    "name": "FURRY RUST | 2x Trio",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1708077625,
    "last_update": 1750457066,
    "banned": false,
    "wipe": 1743516693,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 7899,
    "language": "de",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "Mortyzzzz",
      "avatar": "16a8c723-aac7-4e21-b741-4e165d6e3699.jpg",
      "last_online": 1727619924
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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