JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10741220
json
{
  "response": {
    "fps": 65,
    "fps_avg": 60,
    "entities_count": 92300,
    "world_seed": 1337,
    "world_size": 3000,
    "steam_id": "90286605304409095",
    "domain": null,
    "id": 10741220,
    "ip": "204.1.57.86",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Jacksonville",
    "description": "![The Rusty Inn - No Wipe - Until Players Vote](https://cdn3.mapstr.gg/0e8ee17ed40509d42a411beea92bfbe6.jpg)\nNo Wipe Until Players Vote • Modded Map • Event-Packed Rust • 1/4 Decay\r\nPlay Rust on a world that never sleeps – and only wipes when YOU say so.\r\n\r\nModded Map with unique terrain, custom monuments, and special build locations you won’t see on vanilla.\r\nTons of Event Plugins: Raidable Bases, loot events, NPC encounters, airdrops, and more to keep the server constantly active.\r\nNo Scheduled Wipes – The server wipes only when the majority of players vote for it, not on a fixed timer.\r\n1/4 Base Decay Rate – Reduced upkeep so you can maintain larger bases and long-term projects without constant farming.\r\nPerfect for clans, builders, and long-term grinders who want real progression and big projects.\r\nActive admins and a fair, chill environment focused on fun and longevity.\r\nBuild, raid, and fight across a custom Rust world that evolves with the community.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780599868,
    "last_online": 1780623026,
    "icon": null,
    "name": "The Rusty Inn - No Wipe - Until Players Vote",
    "connect": "204.1.57.86:28015",
    "request": "204.1.57.86:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1766250814,
    "last_update": 1780623026,
    "banned": false,
    "wipe": 1775153540,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2011,
    "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/10741220");
$data = json_decode($json, true);
var_dump($data);