JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11018088
json
{
  "response": {
    "fps": 84,
    "fps_avg": 84,
    "entities_count": 120144,
    "world_seed": 1037149983,
    "world_size": 4500,
    "steam_id": "90286736195848219",
    "domain": null,
    "id": 11018088,
    "ip": "51.68.34.74",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Roubaix",
    "description": "![Pixel Rust 5x Solo/Duo/Trio EU](https://pixel-rust.com/rustservers/Rust_Server_Banner.png)\nPixel Rust 5x EU | Solo/Duo/Trio \r\n  \r\n SURVIVE - RAID - DOMINATE \r\n  \r\n Welcome to Pixel Rust, a high-performance 5x Solo/Duo/Trio EU server built for smooth progression, fair PvP, and an enjoyable community experience. \r\n  \r\n Weekly Map Wipe - Thursday 7pm GMT \r\n Monthly BP Wipe - First Thursday of Month 7pm GMT \r\n  \r\n Server Features \r\n  \r\n * 5x Gather & Progression \r\n * Solo / Duo / Trio Teams \r\n * Skip Night ? more action, less waiting \r\n * Quicker Smelting \r\n * Faster Crafting \r\n * Rubbish Removed from Loot Tables \r\n * Live Player Stats & Leaderboards \r\n * FREE Verified Kit \r\n * Friendly & Active Community \r\n * Optimised Performance & Stability \r\n  \r\n https://pixel-rust.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780600415,
    "last_online": 1780959630,
    "icon": null,
    "name": "Pixel Rust 5x Solo/Duo/Trio EU",
    "connect": "51.68.34.74:28015",
    "request": "51.68.34.74:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1769944421,
    "last_update": 1780959630,
    "banned": false,
    "wipe": 1780600461,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4292,
    "language": "fr",
    "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/11018088");
$data = json_decode($json, true);
var_dump($data);