JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11502693
json
{
  "response": {
    "fps": 145,
    "fps_avg": 185,
    "entities_count": 64602,
    "world_seed": 1693865060,
    "world_size": 3000,
    "steam_id": "90286382303680517",
    "domain": null,
    "id": 11502693,
    "ip": "110.42.96.109",
    "port": 30181,
    "query": 30183,
    "color": 0,
    "city": "Ningbo",
    "description": "欢迎加入【东北】Rust服务器!\r\n【东北】★5倍资源欢迎加入【东北】Rust服务器!\r\n【东北】★5倍资源 ★2倍硫磺★2倍废料 \r\n【东北】★秒造          ★基地突袭★tp/home传送 \r\n【东北】★SJJZ自动升级★Kit礼包★队伍自动授权 \r\n【东北】★自动关门★无电炮台★8人组队 \r\n【东北】本服最新半月清档日期:5.22\r\n【东北】Q群1090973463",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780212234,
    "last_online": 1780561228,
    "icon": null,
    "name": "【东北】5倍2硫2废8人萌新养老Q群",
    "connect": "110.42.96.109:30181",
    "request": "110.42.96.109:30183",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207212,
    "last_update": 1780561228,
    "banned": false,
    "wipe": 1779411892,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5004,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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