JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11501583
json
{
  "response": {
    "fps": 44,
    "fps_avg": 46,
    "entities_count": 159305,
    "world_seed": 2053503259,
    "world_size": 4096,
    "steam_id": "90286553453282307",
    "domain": null,
    "id": 11501583,
    "ip": "208.115.196.106",
    "port": 28265,
    "query": 28266,
    "color": 0,
    "city": "Dallas",
    "description": "![XRP UK/EU | PvE | No killing | No Raiding | Noob Friendly](https://www.dropbox.com/scl/fi/t34n4sx3180ljyr37q02m/xrp2.JPG?rlkey=4d8n0jheesqkne4e2f20h0t0h&st=hcs35xem&dl=1)\nWelcome to XRP UK/EU Server, a Noob friendly server!\r\n\r\nMonthly Map Wipes: Forced Wiped\r\nActive Admins keeping things fair and fun\r\nAwesome and fun custom maps!\r\n\r\nTheft/Raid Prevention Enabled\r\nNo decay\r\nPurge/raid 48 hours before wipe day\r\n\r\nNo griefing allowed (read our rules in game)\r\n\r\nOur Discord page: https://discord.gg/Zsq6DYUYVd",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780311854,
    "last_online": 1780579834,
    "icon": null,
    "name": "XRP UK/EU | PvE | No killing | No Raiding | Noob Friendly",
    "connect": "208.115.196.106:28265",
    "request": "208.115.196.106:28266",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207176,
    "last_update": 1780579834,
    "banned": false,
    "wipe": 1778181751,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4779,
    "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/11501583");
$data = json_decode($json, true);
var_dump($data);