JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11501746
json
{
  "response": {
    "fps": 183,
    "fps_avg": 223,
    "entities_count": 95058,
    "world_seed": 21510995,
    "world_size": 4000,
    "steam_id": "90286588256298006",
    "domain": null,
    "id": 11501746,
    "ip": "109.176.229.105",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "London",
    "description": "![[EU] HighKeyRust | 3x | Max5 | NoBPsWipe](https://imgur.com/a/41OToca#ByzniY2)\nWelcome to HighKeyRust! An enjoyable rust server. Everyone is welcome including if your new to the game :) \r\n - Noob Friendly \r\n - 3X Gather & Stacks. \r\n - 3X Recycler & Smelting Speeds \r\n - Time Events/Custom Events. \r\n - Raid Alarm. \r\n - Raid Protection on wipe. \r\n - Raid Limit (3 Per Day). \r\n - Strict 5 Max Teams. \r\n - VIP Membership (no p2w). \r\n Join our discord at https://discord.gg/hYmhwwpbzZ",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780250650,
    "last_online": 1780575040,
    "icon": null,
    "name": "[EU] HighKeyRust | 3x | Max5 | NoBPsWipe",
    "connect": "109.176.229.105:28015",
    "request": "109.176.229.105:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207180,
    "last_update": 1780575040,
    "banned": false,
    "wipe": 1779019610,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4788,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11501746");
$data = json_decode($json, true);
var_dump($data);