JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10968766
json
{
  "response": {
    "fps": 40,
    "fps_avg": 39,
    "entities_count": 66246,
    "world_seed": 169819367,
    "world_size": 3500,
    "steam_id": "90286609770329112",
    "domain": null,
    "id": 10968766,
    "ip": "159.196.30.227",
    "port": 20030,
    "query": 20032,
    "color": 0,
    "city": "Brisbane",
    "description": "![[AU/NZ] TearBearGaming PvE  | 1000x|BP Unlocked](http://159.196.30.227:82/rust/tearbeargamingRustBanner.jpg)\nLast Map Wipe: 05/06/2026/n /n Clan Limit: None./n Map Size: 3500./n Wiped Fortnightly on Friday @ 5PM AEST./n - 1000x Rates./n - 1000x Resource Stack/n - Offline Raid Protection/n - All Workbench BP Unlocked./n - Custom LootTable/n - No Crafting Time./n - 10x Furnace/Oil Refinery Speed./n - Raidable Bases/n - Teleport (Set Home, OutPost, Bandit Camp & Monuments)/n - Extended BackPack/n - Vote To Skip Night/n - Buy car chase from car lift/n - SkinBox/n - Server Events/n /n Join us on Discord https://discord.gg/kmfyGFf for Rules, Commands and more.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780606463,
    "last_online": 1780608637,
    "icon": null,
    "name": "[AU/NZ] TearBearGaming PvE  | 1000x|BP Unlocked",
    "connect": "159.196.30.227:20030",
    "request": "159.196.30.227:20032",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "AU",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768755817,
    "last_update": 1780608637,
    "banned": false,
    "wipe": 1780606492,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5706,
    "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/10968766");
$data = json_decode($json, true);
var_dump($data);