JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11502640
json
{
  "response": {
    "fps": 114,
    "fps_avg": 112,
    "entities_count": 78454,
    "world_seed": 648252,
    "world_size": 3500,
    "steam_id": "90286575229044756",
    "domain": null,
    "id": 11502640,
    "ip": "216.245.177.29",
    "port": 28025,
    "query": 28027,
    "color": 0,
    "city": "Chicago",
    "description": "![AnarchyServers.co 5x [Loot++|Events|MyMini|Kits](https://i.postimg.cc/R0SGhmv0/Anarchy-5x-pic.png)\nWelcome to ANARCHY 5X NA fast-paced modded Rust experience built for players who want action, balanced progression, and nonstop PvP | 5X Gather and Loot | Custom Airfield Events | Faster Locked Crate | Kits and VIP Ranks | Clans and Team Systems | home and tpr | Increased Stack Sizes | Better Loot Tables | Active Staff and Frequent Updates Optimized Performance | Build fast, raid hard, dominate monuments, and fight for control. No unnecessary restrictions. Just survival, PvP, and chaos. Wipes Regularly - Procedural Maps - Join the Fight Today",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779207207,
    "last_online": 1780557034,
    "icon": null,
    "name": "AnarchyServers.co 5x [Loot++|Events|MyMini|Kits",
    "connect": "216.245.177.29:28025",
    "request": "216.245.177.29:28027",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207207,
    "last_update": 1780557034,
    "banned": false,
    "wipe": 1778798513,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4953,
    "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/11502640");
$data = json_decode($json, true);
var_dump($data);