JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11510854
json
{
  "response": {
    "fps": 232,
    "fps_avg": 231,
    "entities_count": 72287,
    "world_seed": 1337,
    "world_size": 3400,
    "steam_id": "90286577686951953",
    "domain": null,
    "id": 11510854,
    "ip": "82.39.212.142",
    "port": 25419,
    "query": 25422,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![[CZ/EU] ParadiseRust.eu | VANILLA | 2X | QUAD | 22.5.](https://share.paradiserust.eu/pvp/Server_Banner.png)\nHlavní pravidla \r\n - Maximálně jsou povoleni 4 hráči v jednom týmu, včetně offline hráčů. Pokud budete přistiženi s více než 4 hráči (online/offline), celý tým může být potrestán. \r\n - Neexistují žádné výjimky pro spojence, sousedy, apod. \r\n - Nesmíte uzavírat dohody o neútočení ani jakýmkoliv způsobem spolupracovat s jinými týmy. \r\n - Obchodování je povoleno pouze přes prodejní automaty a v safe zónách. \r\n - Cheaty, scripty a zneužívání bugů jsou zakázány. \r\n - Používání VPN a Proxy není povoleno. \r\n - Rasismus, nenávistné projevy a urážky nejsou povoleny. \r\n - VAC ban mladší než 120 dní není povolen. \r\n  \r\n  \r\n Main Rules \r\n - A maximum of 4 players are allowed per team, including offline players. If you are caught with more than 4 players (online/offline), the group will receive a ban \r\n - There are no exceptions for allies, neighbors, etc. \r\n - You must not make non-aggression pacts or cooperate in any way with other teams. \r\n - Trading is only permitted via vending machines and in safe zones. \r\n - Cheats, scripts, and bug exploitation are prohibited. \r\n - The use of VPNs and Proxies is not allowed. \r\n - Racism, hate speech, and insults are not permitted. \r\n - VAC bans younger than 120 days are not allowed.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780521259,
    "last_online": 1780579239,
    "icon": null,
    "name": "[CZ/EU] ParadiseRust.eu | VANILLA | 2X | QUAD | 22.5.",
    "connect": "82.39.212.142:25419",
    "request": "82.39.212.142:25422",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353834,
    "last_update": 1780579239,
    "banned": false,
    "wipe": 1779467868,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5075,
    "language": "de",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11510854");
$data = json_decode($json, true);
var_dump($data);