JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8463409
json
{
  "response": {
    "fps": 213,
    "fps_avg": 206,
    "entities_count": 118634,
    "world_seed": 9867423,
    "world_size": 4500,
    "steam_id": "90286618331164703",
    "domain": null,
    "id": 8463409,
    "ip": "103.193.80.71",
    "port": 28310,
    "query": 28245,
    "color": 0,
    "city": "Sydney",
    "description": "Welcome to Dust Servers\r\nJoin our Discord Channel https://discord.gg/3YyjMJC\r\nActive Admins\r\nDefault Turret Limit increased to 15\r\nBlueprints will wipe monthly\r\nNext Map Wipe 19/06/2026",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780628663,
    "last_online": 1780651234,
    "icon": null,
    "name": "DustServers Vanilla | Monthly BP Wipes",
    "connect": "103.193.80.71:28310",
    "request": "103.193.80.71:28245",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1743888271,
    "last_update": 1780651234,
    "banned": false,
    "wipe": 1780628651,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3299,
    "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/8463409");
$data = json_decode($json, true);
var_dump($data);