JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11712729
json
{
  "response": {
    "steam_id": "90286589639103506",
    "domain": null,
    "id": 11712729,
    "ip": "203.135.101.249",
    "port": 21181,
    "query": 21181,
    "project_id": null,
    "color": 0,
    "city": "Shaoxing",
    "description": "服务器好好玩 加群12345 加群看公告 无模组不停水停电 30特质",
    "game": 108600,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781385798,
    "last_online": 1780588831,
    "icon": null,
    "name": "My PZ Server",
    "connect": "203.135.101.249:21181",
    "request": "203.135.101.249:21181",
    "map": "map_distanciado;Chinatown B42 v",
    "gamemode": "Project Zomboid",
    "version": "42.18",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780301052,
    "last_update": 1781385798,
    "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": 10419,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 71,
      "steam_id": 108600,
      "name": "Project Zomboid",
      "url": "project-zomboid"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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