JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11800899
json
{
  "response": {
    "fps": 46,
    "fps_avg": 43,
    "entities_count": 302222,
    "world_seed": 1708456380,
    "world_size": 4750,
    "steam_id": "90287019958418442",
    "domain": null,
    "id": 11800899,
    "ip": "103.45.128.9",
    "port": 24241,
    "query": 24243,
    "project_id": null,
    "color": 0,
    "city": "Wuhan",
    "description": "欢迎进入特种兵,原倍服务器!组队限制:3人,禁止结盟,禁止交换,给予物质banQQ群:929976889清档周期:半月清管理员24小时在线巡查,维护环境、严打外挂本服无任何特权、无商城、无礼包祝特种兵们游戏愉快!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781463037,
    "last_online": 1781490626,
    "icon": null,
    "name": "【特种兵】原倍/3人/无权/无商/14日22点新开",
    "connect": "103.45.128.9:24241",
    "request": "103.45.128.9:24243",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781463037,
    "last_update": 1781490626,
    "banned": false,
    "wipe": 1781438020,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6235,
    "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/11800899");
$data = json_decode($json, true);
var_dump($data);