JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/755855
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 137863,
    "world_seed": 1337,
    "world_size": 4000,
    "steam_id": "90286577257635866",
    "domain": null,
    "id": 755855,
    "ip": "116.90.73.230",
    "port": 49025,
    "query": 49026,
    "color": 0,
    "city": "Adelaide",
    "description": "![AU/NZ Rust-eze](https://i.imgur.com/9AyTKwc.png)\n147 Plugins | PvP | Increased NPC's and events | Modded vehicles/items \r\n - 1x with skilltree \r\n - Custom loot table, includes modded items and vehicles \r\n - No bag or turret limits \r\n - No decay or upkeep \r\n - 1.5x health to player structures \r\n - Offline raid protection purchasable with scrap \r\n - PvE island (no player/building damage here) - !Disabled for current map! \r\n Everything else you need to know is in /help",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780538665,
    "last_online": 1780569635,
    "icon": null,
    "name": "AU/NZ Rust-eze",
    "connect": "116.90.73.230:49025",
    "request": "116.90.73.230:49026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1677863692,
    "last_update": 1780569635,
    "banned": false,
    "wipe": 1778255400,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2222,
    "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/755855");
$data = json_decode($json, true);
var_dump($data);