JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11159371
json
{
  "response": {
    "fps": 107,
    "fps_avg": 110,
    "entities_count": 141115,
    "world_seed": 0,
    "world_size": 5000,
    "steam_id": "90286437134489622",
    "domain": null,
    "id": 11159371,
    "ip": "45.92.36.57",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Maidenhead",
    "description": "![Madladz Hardcore | SOLO ONLY | MONTHLY](https://www.dropbox.com/scl/fi/s0xbnqyv7n94h0nkbv1gx/rustMADLADZBANNER.png?rlkey=2iodnna5h1y5cktviynsgyyfg&st=inlo4xdy&dl=1)\nWelcome to Madladz Hardcore \r\n •No plugins, hardcore, solo only\r\n Enjoy your stay and have fun surviving!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780223036,
    "last_online": 1780594230,
    "icon": null,
    "name": "Madladz Hardcore | SOLO ONLY | MONTHLY",
    "connect": "45.92.36.57:28025",
    "request": "45.92.36.57:28026",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1772228127,
    "last_update": 1780594230,
    "banned": false,
    "wipe": 1778185324,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4033,
    "language": "en",
    "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/11159371");
$data = json_decode($json, true);
var_dump($data);