JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10815710
json
{
  "response": {
    "fps": 49,
    "fps_avg": 48,
    "entities_count": 119051,
    "world_seed": 38154955,
    "world_size": 4250,
    "steam_id": "90286329786108946",
    "domain": null,
    "id": 10815710,
    "ip": "172.240.229.69",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "San Jose",
    "description": "Tombstone PVE is great for players with little time to play but do not want to lose their base. We don't allow raiding until the Wednesday before wipe.\n-PVE Raidable bases varying in degree of difficulty to fill that raiding urge\n-Player perks based off of playtime\n-Players retain loot on death\n-Custom NPCs that drop their loot across the map and at monuments \n-Backpacks carry over each wipe\n-No radiation and low upkeep\n-Purge is Wednesday before wipe\n-No blueprint wipe unless forced\n-Quests, Kits, and Server Rewards\n-Vehicle Licenses and Teleports\n-Server Wiped 05/07/2026",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778246583,
    "last_online": 1780575632,
    "icon": null,
    "name": "Tombstone PVE|Noob friendly| Custom NPCs",
    "connect": "172.240.229.69:28035",
    "request": "172.240.229.69:28036",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1767109991,
    "last_update": 1780575632,
    "banned": false,
    "wipe": 1778202858,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3907,
    "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/10815710");
$data = json_decode($json, true);
var_dump($data);