JSON для программ, сайтов и прочего

text
https://api.gamemonitoring.ru/servers/9642722
json
{
  "response": {
    "steam_id": "90285627316447244",
    "domain": null,
    "id": 9642722,
    "ip": "118.126.107.78",
    "port": 16261,
    "query": 16261,
    "color": 0,
    "city": "Guangzhou",
    "description": "[无超模武器纯粹的生存挑战]\\n 新档测试中 \\n",
    "game": 108600,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778472181,
    "score": 0,
    "last_online": 1778521822,
    "icon": null,
    "name": "[cn][7*24][pve]废土长歌",
    "connect": "118.126.107.78:16261",
    "request": "118.126.107.78:16261",
    "map": "BarcoAbandonado;Factory;Militar",
    "gamemode": "Project Zomboid",
    "version": "1.0.0.0",
    "numplayers": 0,
    "maxplayers": 24,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1751364864,
    "last_update": 1778521822,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 130,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 71,
      "steam_id": 108600,
      "name": "Project Zomboid",
      "url": "project-zomboid"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Примеры кода

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