JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11606317
json
{
  "response": {
    "fps": 55,
    "fps_avg": 57,
    "entities_count": 195257,
    "world_seed": 216959700,
    "world_size": 6000,
    "steam_id": "90286366459120653",
    "domain": null,
    "id": 11606317,
    "ip": "149.50.96.179",
    "port": 28015,
    "query": 27017,
    "color": 0,
    "city": "Warsaw",
    "description": "Welcome to Union Rust x5, the perfect mix of fast-paced action and balanced progression. Our x10 rates speed up the grind without removing the challenge, giving both solo players and clans plenty of room to dominate the battlefield. Whether you’re raiding, farming, or PvPing, Union Rust delivers a smooth and intense Rust experience.  🔥 Server Features  x10 Gather Rates – Less grinding, more fighting  Active Admins – Fair play, zero tolerance for cheating  Optimized Performance – Minimal lag, stable population  Balanced Loot Tables – Progress quickly without breaking the game  Weekly Wipes – Fresh starts, fresh competition  Custom Plugins – Quality-of-life upgrades while keeping Rust authentic  ⚔️ Why Play Here?  Union Rust x10 is built for players who want fast progression, fair gameplay, and nonstop PvP. Whether you're building a mega-base with your squad or running solo stealth raids, this server gives you the tools to thrive.  Join the Union. Claim your territory. Fight for dominance.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779915467,
    "last_online": 1780632028,
    "icon": null,
    "name": "Union Rust x5",
    "connect": "149.50.96.179:28015",
    "request": "149.50.96.179:27017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915467,
    "last_update": 1780632028,
    "banned": false,
    "wipe": 1779890471,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5027,
    "language": "pl",
    "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/11606317");
$data = json_decode($json, true);
var_dump($data);