JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10957770
json
{
  "response": {
    "fps": 56,
    "fps_avg": 55,
    "entities_count": 126183,
    "world_seed": 1337,
    "world_size": 4250,
    "steam_id": "90285757664923663",
    "domain": null,
    "id": 10957770,
    "ip": "50.80.218.102",
    "port": 28025,
    "query": 27025,
    "color": 0,
    "city": "Atmore",
    "description": "![[US] GAIA 1000000X - Builds|MyMini|Kits|Clans|Skinbox|PVP](https://gaiarust.com/img/GaiaBanner.png)\n***SERVER FEATURES***\r\n\r\n- Toggleable safe zones for building!\r\n- Respawns at all major monuments\r\n- Mine cooked resources directly, no smelting!\r\n- 1000000x Gather Rates & Custom Loot Tables\r\n- Server Leaderboard\r\n- Flat Spots in every biome\r\n- Floating Island you can build on\r\n- Spawn All Vehicles\r\n- Teleports and Homes\r\n- Kits\r\n- In-Game Server Shop\r\n- Skinbox\r\n- And More!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778787779,
    "last_online": 1779195017,
    "icon": null,
    "name": "[US] GAIA 1000000X - Builds|MyMini|Kits|Clans|Skinbox|PVP",
    "connect": "50.80.218.102:28025",
    "request": "50.80.218.102:27025",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1768741777,
    "last_update": 1779195017,
    "banned": false,
    "wipe": 1778610603,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2173,
    "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/10957770");
$data = json_decode($json, true);
var_dump($data);