JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11596661
json
{
  "response": {
    "fps": 121,
    "fps_avg": 121,
    "entities_count": 119007,
    "world_seed": 1883308192,
    "world_size": 4500,
    "steam_id": "90286495260280839",
    "domain": null,
    "id": 11596661,
    "ip": "98.180.216.185",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Fort Smith",
    "description": "Laid back Rust server for the Ruster with a job.\r\nSolo Only! Playing with ANYONE will result in a permanent ban, THIS IS THE ONLY WARNING!\r\nNo allies! No griefing! Most importantly, DONT BE A DUMBASS!\r\nNon - playing Admin.\r\n25% upkeep. \r\nBP wipes every 3 months. Map wipes on forced.\r\nLast BP wipe 5/20  -  Next BP wipe 8/07\r\nLast map wipe 5/20  -  Next map wipe 06/04",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780556009,
    "last_online": 1780437629,
    "icon": null,
    "name": "The Rust Life / 25% Upkeep / Solo ONLY / Monthly",
    "connect": "98.180.216.185:28015",
    "request": "98.180.216.185:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779358595,
    "last_update": 1780556009,
    "banned": false,
    "wipe": 1779079525,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12038,
    "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/11596661");
$data = json_decode($json, true);
var_dump($data);