JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11596648
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 88832,
    "world_seed": 190054116,
    "world_size": 4000,
    "steam_id": 90286042439495700,
    "domain": null,
    "id": 11596648,
    "ip": "157.90.90.95",
    "port": 28045,
    "query": 28046,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU/EN/CZ/PL/] SLAVRUST - VANILLA - SOLO/DUO/TRIO - BIWEEKLY](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nWelcome to the SLAVE RUST server!\r\nA small server for players who appreciate pure vanilla, without any mods.\r\nThis is the first (test) edition. If there's interest, more will be created.\r\n\r\nBIWEEKLY WIPE\r\n\r\nMaximum players in team - 3\r\n\r\nRules:\r\n- Don't be a d**k\r\n- Don't be racist\r\n- Please don't cheat\r\n- Have fun",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779386026,
    "last_online": 1779388828,
    "icon": null,
    "name": "[EU/EN/CZ/PL/] SLAVRUST - VANILLA - SOLO/DUO/TRIO - BIWEEKLY",
    "connect": "157.90.90.95:28045",
    "request": "157.90.90.95:28046",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779358594,
    "last_update": 1779388828,
    "banned": false,
    "wipe": 1779386012,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2514,
    "language": "de",
    "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/11596648");
$data = json_decode($json, true);
var_dump($data);