JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10870858
json
{
  "response": {
    "fps": 155,
    "fps_avg": 133,
    "entities_count": 101241,
    "world_seed": 45823,
    "world_size": 4200,
    "steam_id": "90286447501547536",
    "domain": null,
    "id": 10870858,
    "ip": "51.222.125.233",
    "port": 2283,
    "query": 2284,
    "color": 0,
    "city": "Montreal",
    "description": "Welcome To Smurf's Server\r\nWe are a learning PVE server. Build Away. Most things are 4X Rate\r\nAny questions/comments put in chat and I will probably see it.\r\nModifications on the server include...Kits (/kit), Building Skins (/bskin), Backpacks, Fast Looting, Furnace splitting, Infinite Vending Machines, 1 hit barrels, Raidable Bases, Remover Tool, Unburnable Meat, Random Gather LOOT among other goodies.\r\n\r\nJoin us for fun and or Learning.\r\nNext Wipe: April 2nd",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779562412,
    "last_online": 1780577440,
    "icon": null,
    "name": "**SMURFS SERVER, 4X PVE, BIWEEK WIPES**",
    "connect": "51.222.125.233:2283",
    "request": "51.222.125.233:2284",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 80,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768318478,
    "last_update": 1780577440,
    "banned": false,
    "wipe": 1779562523,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3984,
    "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/10870858");
$data = json_decode($json, true);
var_dump($data);