JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11606899
json
{
  "response": {
    "fps": 147,
    "fps_avg": 116,
    "entities_count": 11941,
    "world_seed": 1337,
    "world_size": 1000,
    "steam_id": "90286574742726687",
    "domain": null,
    "id": 11606899,
    "ip": "36.133.45.82",
    "port": 10006,
    "query": 11006,
    "color": 0,
    "city": "Guangzhou",
    "description": "![|#06| [中国PVE]  1000倍/死亡不掉/新手服](https://m.qpic.cn/psc?/V52jOubP1YwYl802k2px3cxfjW12e9VD/MgefXoixntJCvPruFHdJTd0r*NELxeV8qOxYyPreBXw.*XdTvRrAgPvxpqTpYyZDruDmMmH*9VaO3X2PNNl95SM6y2W14pzg2v0fCXkmanY!/mnull&bo=9AE5AQAAAAADB.8!&rf=photolist&t=5)\n\r\n\r\n[中国PVE]1.中国PVE#3 \r\n[中国PVE]重启时间,每天早晨7:17;结束7:22 \r\n 如有问题请联系QQ群管理: 41599231  \r\n Email: [email protected]  \r\n Website: 68509.cn \r\n祝大家玩的开心!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780528461,
    "last_online": 1780594831,
    "icon": null,
    "name": "|#06| [中国PVE]  1000倍/死亡不掉/新手服",
    "connect": "36.133.45.82:10006",
    "request": "36.133.45.82:11006",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915487,
    "last_update": 1780594831,
    "banned": false,
    "wipe": 1780528669,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5012,
    "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/11606899");
$data = json_decode($json, true);
var_dump($data);