JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9527430
json
{
  "response": {
    "fps": 25,
    "fps_avg": 26,
    "entities_count": 100451,
    "world_seed": 468293659,
    "world_size": 4250,
    "steam_id": "90284797493380122",
    "domain": null,
    "id": 9527430,
    "ip": "176.126.70.237",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Stockholm",
    "description": "![RustGalaxy Nexus Sweden](https://rustne.ws/wp-content/uploads/2025/06/rust-server-header-512x256-1.jpg)\nRustGalaxy: The Original Nexus Network! Dial any of our 17 global servers via the Outpost telephone and seamlessly transfer with your inventory. Facepunch promised it, we delivered. No lag, no cheaters. Just pure survival across continents.\r\n\r\nMonthly map and blueprint wipes.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776573199,
    "score": 0,
    "last_online": 1776883226,
    "icon": null,
    "name": "RustGalaxy Nexus Sweden",
    "connect": "176.126.70.237:28015",
    "request": "176.126.70.237:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750537919,
    "last_update": 1776883226,
    "banned": false,
    "wipe": 1775152489,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3694,
    "language": "sv",
    "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/9527430");
$data = json_decode($json, true);
var_dump($data);