JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11578658
json
{
  "response": {
    "steam_id": "85568392936319190",
    "domain": null,
    "id": 11578658,
    "ip": "210.246.215.125",
    "port": 27015,
    "query": 27015,
    "project_id": null,
    "color": 0,
    "city": "Pak Kret",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595060,
    "last_online": 1780686782,
    "icon": "https://i.ibb.co/zhfgD9Hx/Gemini-Generated-Image-9x6uf59x6uf59x6u.png",
    "name": "test server Khot Ruean Server [TH]",
    "connect": "210.246.215.125:27015",
    "request": "210.246.215.125:27015",
    "map": "California2",
    "gamemode": "x1.5 | New Server |",
    "version": "3.26.3.2",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "TH",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1779356928,
    "last_update": 1780686782,
    "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": 939,
    "language": "th",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

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