JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11502623
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 51612,
    "world_seed": 1337,
    "world_size": 3100,
    "steam_id": "90286549125781521",
    "domain": null,
    "id": 11502623,
    "ip": "91.229.114.155",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![GoblinRustbelt Solo/Duo 2X | No BP Wipes | Offline Protect](https://rust-server-images.physgun.com/1f432f584f50a691181ee33721018a9942ebcb24463563c5449835320abaa965.png)\nWipe: Weekly Every Thursday | No BP Wipes | PVP\r\n\r\nMax Teams of 2 (Strictly Enforced)\r\nPrimitive Lock Progression Wipe \r\nSmart Offline Raid Protection (24H Decaying)\r\n2.0X Gather Rate for Basic Mats (1.5X Sulfur)\r\nBlueprint Sharing Enabled\r\n\r\nVisit the website below and join our Discord!\r\n\r\nClick the button \"External Website\" <-\r\nEnjoy and have fun!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780478056,
    "last_online": 1780558834,
    "icon": null,
    "name": "GoblinRustbelt Solo/Duo 2X | No BP Wipes | Offline Protect",
    "connect": "91.229.114.155:28015",
    "request": "91.229.114.155:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207206,
    "last_update": 1780558834,
    "banned": false,
    "wipe": 1780008409,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4975,
    "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/11502623");
$data = json_decode($json, true);
var_dump($data);