JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8297622
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 112771,
    "world_seed": 1337,
    "world_size": 4250,
    "steam_id": "90286618299667462",
    "domain": null,
    "id": 8297622,
    "ip": "81.149.160.145",
    "port": 28042,
    "query": 28043,
    "color": 0,
    "city": "Blackpool",
    "description": "![No Rules - EU 100X [No BPs | MyMini | PvP | Shop | Loot+]](https://old.norulesrust.com/img/4k-Wallpaper.png)\nNo Rules (For Real) Rust\r\n\r\n- 100x Gather     - Big Scrap                 - Sweet Kits         - Fast Progression\r\n- No Junk Loot                       - Events               - Shorter Nights\r\n- Sick Shit           -7000+ Skins             - Many Other Kick Ass QOL Mods\r\n\r\nAdmins do not get involved in Gameplay!!!\r\n \r\nNote: No Rules still means No Cheats!!!,\r\nCheaters will be treated like SHIT!!! Report via F7.\r\nYour actions can still result in a Ban, don't be a Douche!!!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780635030,
    "icon": null,
    "name": "No Rules - EU 100X [No BPs | MyMini | PvP | Shop | Loot+]",
    "connect": "81.149.160.145:28042",
    "request": "81.149.160.145:28043",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 125,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1743250273,
    "last_update": 1780635030,
    "banned": false,
    "wipe": 1780594871,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3027,
    "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/8297622");
$data = json_decode($json, true);
var_dump($data);