JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11510779
json
{
  "response": {
    "fps": 36,
    "fps_avg": 42,
    "entities_count": 204071,
    "world_seed": 853664952,
    "world_size": 6000,
    "steam_id": "90286609309061148",
    "domain": null,
    "id": 11510779,
    "ip": "178.254.28.65",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Berlin",
    "description": "![Wildlanders Game Community | x2 | Modded | Solo/Duo/Trio | EU](https://wildlanders-rust.de/img/server.jpeg)\nWildlanders Game Community X2\r\nSolo/Duo/Trio Server\r\n\r\nCustom Events\r\nKits & VIP Systems\r\nActive Admins\r\nDiscord Verification\r\n\r\nDiscord: https://discord.gg/wgc-rust\r\nWebsite: https://wildlanders-rust.de\r\n\r\nRules:\r\n- No cheating or exploits\r\n- No insults or toxic behavior\r\n- Respect max team size Solo/Duo/Trio\r\n- Respect all players\r\n\r\nViolations may result in kick or ban!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780604659,
    "last_online": 1780608636,
    "icon": null,
    "name": "Wildlanders Game Community | x2 | Modded | Solo/Duo/Trio | EU",
    "connect": "178.254.28.65:28015",
    "request": "178.254.28.65:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353833,
    "last_update": 1780608636,
    "banned": false,
    "wipe": 1780602921,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4857,
    "language": "de",
    "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/11510779");
$data = json_decode($json, true);
var_dump($data);