JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10412831
json
{
  "response": {
    "fps": 55,
    "fps_avg": 55,
    "entities_count": 104117,
    "world_seed": 357279068,
    "world_size": 4000,
    "steam_id": "90286588674141203",
    "domain": null,
    "id": 10412831,
    "ip": "15.235.113.18",
    "port": 28040,
    "query": 28041,
    "color": 0,
    "city": "Montreal",
    "description": "![A Quirky Little PVE Server|QoL+Custom Raidable Bases|Zombies](https://i.postimg.cc/qMdFK7Q5/Rust-Header-Image.png)\nSlower progression with QoL conveniences. We aim to find a balance - not too easy - not too hard... You know, the sweet spot - when something feels just right.\r\n **SERVER HIGHLIGHTS**\r\n     ~ 100% Custom Raidable Bases\r\n     ~ Active Admin\r\n     ~ Events\r\n     ~ Zombies at monuments\r\n     ~ Many QoL improvements including teleportation, kits, quests, skinbox,\r\n     skill tree, spawn minicopter, and much more!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780563869,
    "last_online": 1780591833,
    "icon": null,
    "name": "My Untitled Rust Server",
    "connect": "15.235.113.18:28040",
    "request": "15.235.113.18:28041",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1759823773,
    "last_update": 1780591833,
    "banned": false,
    "wipe": 1778188806,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3565,
    "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/10412831");
$data = json_decode($json, true);
var_dump($data);