JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11759259
json
{
  "response": {
    "fps": 189,
    "fps_avg": 190,
    "entities_count": 67401,
    "world_seed": 50000,
    "world_size": 3500,
    "steam_id": "90286713420942344",
    "domain": null,
    "id": 11759259,
    "ip": "157.85.87.198",
    "port": 24101,
    "query": 24102,
    "project_id": null,
    "color": 0,
    "city": "Amsterdam",
    "description": "Medium Sized Map with standard settings. A Prize of $50 in Steam Gift Cards will be awarded to the player who has been most active in the game . The highest stats in collecting, crafting, killing and time spent on the server by wipe time will be judged the winner. Please note that anyone trying to cheat on this server will be permanently banned. No teaming up please!,",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780931706,
    "last_online": 1781358632,
    "icon": null,
    "name": "Redemption Medium Solo Giftcard Prize At Wipe",
    "connect": "157.85.87.198:24101",
    "request": "157.85.87.198:24102",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780931706,
    "last_update": 1781358632,
    "banned": false,
    "wipe": 1780828347,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5942,
    "language": "nl",
    "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/11759259");
$data = json_decode($json, true);
var_dump($data);