JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11305566
json
{
  "response": {
    "fps": 125,
    "fps_avg": 123,
    "entities_count": 47106,
    "world_seed": 286129121,
    "world_size": 3000,
    "steam_id": "90286585646094339",
    "domain": null,
    "id": 11305566,
    "ip": "173.54.134.22",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Rockaway",
    "description": "![Rusty Roamers 3X Everything|See Description for More](https://www.dropbox.com/scl/fi/qcend7ia0rfs7m1pjejx5/rusyroamerssss.png?rlkey=wx273mj3kwup7h2fjre9m3jlt&st=7kawhd8q&dl=0)\nWelcome To Rusty Roamers \r\n A Noob Friendly Server \r\n 3X Everything including Stack Sizes \r\n PVE With PVP From 16:00 to 22:00 Eastern Time \r\n 30 Day Wipe, Shorter Nights and Less Upkeep \r\n NPC Roamers with Bosses \r\n Random Mini and Sub Spawns \r\n Raidable Bases and Raidable Boats \r\n Plugins Include Kits, BetterTC, BeterLoot \r\n and Static Lootables To Name A Few \r\n Events That Take Place on Most Monuments \r\n Including Convoy and MultiEvent Plugin \r\n Check Us Out and Have Fun",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778182339,
    "last_online": 1780602635,
    "icon": null,
    "name": "Rusty Roamers 3X Everything|See Description for More",
    "connect": "173.54.134.22:28015",
    "request": "173.54.134.22:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774592890,
    "last_update": 1780602635,
    "banned": false,
    "wipe": 1778182384,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4197,
    "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/11305566");
$data = json_decode($json, true);
var_dump($data);