JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11645330
json
{
  "response": {
    "fps": 89,
    "fps_avg": 88,
    "entities_count": 147614,
    "world_seed": 101534152,
    "world_size": 4000,
    "steam_id": "90286489083174919",
    "domain": null,
    "id": 11645330,
    "ip": "51.161.216.38",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "North Sydney",
    "description": "![[AU] SCAVENGERSHAVEN.NET 10x No BPs [MYMINI|KITS|SHOP]](https://www.scavengershaven.net/img/SHHeaderImage2.png)\n▼SERVER FEATURES▼\r\n - Loot++, Enhanced Stack Sizes!\r\n - 25x Smelting Speeds!\r\n - Clans, Teams, Kits, Shop, Remove, MyMini\r\n - Skinner\r\n - BetterTC & BGrade\r\n - Server Rewards\r\n - Box Stacking (Right click box on-top to stack)\r\n\r\n▼SERVER RAIDING RULES▼\r\n - No Teaming, No Merge Raiding!\r\n\r\n▼SERVER INFORMATION▼\r\n - Website: https://scavengershaven.net \r\n - Discord: https://discord.gg/AjJQudCd9v \r\n\r\n▼SERVER WIPE TIME(S)▼\r\n - Twice Weekly\r\n - Every Monday & Friday (AEST)\r\n - 3:00PM (AEDT)\r\n\r\nType /info to bring up the Welcome Screen.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780322654,
    "last_online": 1780348235,
    "icon": null,
    "name": "[AU] SCAVENGERSHAVEN.NET 10x No BPs [MYMINI|KITS|SHOP]",
    "connect": "51.161.216.38:28000",
    "request": "51.161.216.38:28001",
    "map": "Loot++|PVP+ | FPS+",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780177460,
    "last_update": 1780348235,
    "banned": false,
    "wipe": 1780287037,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5966,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11645330");
$data = json_decode($json, true);
var_dump($data);