JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11500872
json
{
  "response": {
    "fps": 55,
    "fps_avg": 55,
    "entities_count": 132052,
    "world_seed": 462823236,
    "world_size": 4500,
    "steam_id": 90286619449113620,
    "domain": null,
    "id": 11500872,
    "ip": "176.57.173.150",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![[DE-PVE] Der Rentner Treff MOD NEU 2](https://images.marcopetersen.de/rust_server/banner/rust_banner_Modserver.jpg)\nWelcome to [DE-PVE] Der Rentner Treff MOD Server 2, \r\n In case you have build something wrong, you can ask one of the Admins to help you to remove it. Raiding and PVP is not allowed!\r\n- Mit dem Login auf diesem Server akzeptiere ich die Regeln\r\n- Last Full Wipe: 04.06.2026\r\n- Map : Procedural 4500\r\n- Upkeep: 50%\r\n- Radiation: Yes\r\nDonate: https://der-rentner-treff.de/index.php?spenden/\r\nIf you want to support us we would be happy.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780602268,
    "last_online": 1780708228,
    "icon": null,
    "name": "[DE-PVE] Der Rentner Treff MOD NEU 2",
    "connect": "176.57.173.150:28015",
    "request": "176.57.173.150:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207164,
    "last_update": 1780708228,
    "banned": false,
    "wipe": 1780602156,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4621,
    "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/11500872");
$data = json_decode($json, true);
var_dump($data);