JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11759868
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 118601,
    "world_seed": 513458346,
    "world_size": 4600,
    "steam_id": "90286628283706391",
    "domain": null,
    "id": 11759868,
    "ip": "103.212.224.61",
    "port": 28225,
    "query": 28226,
    "project_id": null,
    "color": 0,
    "city": "Sydney",
    "description": "![Land Down Under Rust](https://www.dropbox.com/scl/fi/0jj6vmbxi0xupi3jwb3k7/received_1635160513994921.jpg?rlkey=0dx004autg3e695v3gfhihj6j&st=hhkoma2t&dl=1)\nLand Down Under Rust Server Monthly Wipe/n NextWipe 8th May/n Skill Tree/n Kits/n VIP Avaliable/n Lots PVE Plugins/n QOL Mods/n Active Admins/n Raidable Bases.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780931736,
    "last_online": 1780980034,
    "icon": null,
    "name": "Land Down Under Rust",
    "connect": "103.212.224.61:28225",
    "request": "103.212.224.61:28226",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780931736,
    "last_update": 1780980034,
    "banned": false,
    "wipe": 1780655512,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6083,
    "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/11759868");
$data = json_decode($json, true);
var_dump($data);