JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501146
json
{
  "response": {
    "fps": 31,
    "fps_avg": 31,
    "entities_count": 67233,
    "world_seed": 1337,
    "world_size": 3500,
    "steam_id": "90286606351536129",
    "domain": null,
    "id": 11501146,
    "ip": "146.59.47.23",
    "port": 7002,
    "query": 7003,
    "color": 0,
    "city": "Warsaw",
    "description": "![RUSTWORLD.CC [EU] Warsaw - Main | Monthly/PvP | Wiped: 06/04](https://rustworldcdn.uk/rustworldlogo.jpg)\nRUSTWORLD.CC [EU] Poland - Main | PvP/Monthly/2x=================== RUST WORLD FOUNDATION ===================\r\nWAW1.rustworld.cc - RustWorld EU Main Server in Warsaw Poland\r\n-Witamy na głównym serwerze RustWorld.CC w Warszawie, Polska!-\r\nThis server offers traditional game play.\r\n\r\nMap size is 3500 using seed 1337.\r\nLast wipe was at 06/04/2026, Next wipe is at 07/02/2026\r\nServer has 1 hours uptime, running at 31.98 fps with 0/40 players online.\r\n\r\nFEATURES:\r\n+ Custom maps rotating monthly with exclusive monuments\r\n+ Wipes: Maps and BPs monthly on 1st Thursday (Forced)\r\n+ 2x gather | 5x stack size\r\n+ Network: 13 servers worldwide at www.rustworld.cc\r\n\r\nRULES:\r\n- No cheating, scripting, or exploit abuse - permanent ban\r\n- No racism, slurs, or doxxing in chat\r\n- No chat or mic spam\r\n- Group limit: no limit\r\n- English in global chat please (teams free to use any language)\r\n\r\nWebsite: http://www.rustworld.cc/\r\n\r\nServer provided by: Rust World Foundation Inc.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595010,
    "last_online": 1780606831,
    "icon": null,
    "name": "RUSTWORLD.CC [EU] Warsaw - Main | Monthly/PvP | Wiped: 06/04",
    "connect": "146.59.47.23:7002",
    "request": "146.59.47.23:7003",
    "map": "RustWorld WAW1",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207168,
    "last_update": 1780606831,
    "banned": false,
    "wipe": 1780602306,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4583,
    "language": "pl",
    "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/11501146");
$data = json_decode($json, true);
var_dump($data);