JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11501789
json
{
  "response": {
    "fps": 141,
    "fps_avg": 138,
    "entities_count": 120325,
    "world_seed": 481981,
    "world_size": 4500,
    "steam_id": "90286364069224472",
    "domain": null,
    "id": 11501789,
    "ip": "185.216.145.152",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "City of London",
    "description": "![[EU] FNKY 3X SOLO|DUO|TRIO|NO BP WIPES|50%UPKEEP|KITS|SHOP|TP](https://cdn.imgchest.com/files/3e97232810fa.png)\nWelcome to FNKY Trio Max Server Beginner Friendly\r\n Max Teams 3 , No Alliances or Truces\r\n No BP Wipes Map Wipes Every 2nd Thursday\r\n\r\nSERVER DETAILS\r\nQOL IMPROVEMENTS\r\nKITS\r\nINGAME SHOP\r\nPERSONAL RECYCLER CRAFTING\r\nBUY SPAWN AND STORE HELIS ANYWHERE\r\n3X LOOT",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780063424,
    "last_online": 1780559431,
    "icon": null,
    "name": "[EU] FNKY 3X SOLO|DUO|TRIO|NO BP WIPES|50%UPKEEP|KITS|SHOP|TP",
    "connect": "185.216.145.152:28080",
    "request": "185.216.145.152:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207180,
    "last_update": 1780559431,
    "banned": false,
    "wipe": 1779986105,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4770,
    "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/11501789");
$data = json_decode($json, true);
var_dump($data);