JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11771231
json
{
  "response": {
    "fps": 60,
    "fps_avg": 54,
    "entities_count": 95820,
    "world_seed": 1337,
    "world_size": 4300,
    "steam_id": "90286811297887257",
    "domain": null,
    "id": 11771231,
    "ip": "202.189.23.225",
    "port": 20005,
    "query": 20008,
    "project_id": null,
    "color": 0,
    "city": "Beijing",
    "description": "![testxiong2](https://xiong.rustxz.com/logo56.png)\n\r\n\r\n1.完善的小怪和经济系统.  按 TAB键 点击<快捷菜单>查看玩法 \r\n2.月清、事件多, 总体倍率 2X左右, 建筑可以上锁防盗 \r\n3.无权限, 有自动化, 死亡不掉落, 并且有传送功能 \r\n4.有各类不影响平衡的,自动化高科技插件 \r\n5.如不能登录请更换STEAM商店加速线路, 或关闭加速器 \r\n6.点击左下角网页链接进入QQ群: 972897961",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781046859,
    "last_online": 1781041400,
    "icon": null,
    "name": "testxiong2",
    "connect": "202.189.23.225:20005",
    "request": "202.189.23.225:20008",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780996885,
    "last_update": 1781046859,
    "banned": false,
    "wipe": 1780456349,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13141,
    "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/11771231");
$data = json_decode($json, true);
var_dump($data);