JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/5843977
json
{
  "response": {
    "fps": 108,
    "fps_avg": 106,
    "entities_count": 155456,
    "world_seed": 2529014403,
    "world_size": 4800,
    "steam_id": "90286732430675981",
    "domain": null,
    "id": 5843977,
    "ip": "57.129.39.17",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![MAG PVE 5X|Raid Bases|Kits|No BP Wipe](https://imgur.com/zEVZ71j.jpg)\nWelcome to MiddleAgedGamers PVE server.\r\nWe aim to provide you with the best PVE experience possible in Rust!\r\nPlease only use English in Global chat.\r\nFree, premium and customs plugins, including;\r\nRaidable Bases, Recycler\r\n Shop\r\nSkillTree, Virtual Quarries\r\n5x Gather, 5x Quarries, 3x Comps\r\nKits, Starter Kits\r\nBackpacks\r\nAnd much more. Join us Discord at https://discord.gg/middleagedgamers!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780873453,
    "last_online": 1780911025,
    "icon": null,
    "name": "MAG PVE 5X|Raid Bases|Kits|No BP Wipe",
    "connect": "57.129.39.17:28015",
    "request": "57.129.39.17:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 4,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 65,
    "add_date": 1725264144,
    "last_update": 1780911025,
    "banned": false,
    "wipe": 1780599614,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1033,
    "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/5843977");
$data = json_decode($json, true);
var_dump($data);