JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/3592471
json
{
  "response": {
    "steam_id": "90286594130284571",
    "domain": null,
    "id": 3592471,
    "ip": "192.169.82.123",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Dallas",
    "description": "![Rusty Repo 20X PVE Zombies Prem Raidable Bases](https://imgur.com/0kXXMCu.jpg)\nPremium Raidable bases, PVE server, Streamer friendly, Scientist at many monuments. Dangerous Treasures, Instant Craft, Nteleportation, Quick Smelt, skill levels, Spawn Mini, Backpacks, The Rusty Repo Web store. Check it out to find our VIP packages and many other items you might need. Get there by clicking view webpage, \r\n Join the Discord @ https://discord.gg/2Q6m7dw4v3",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780016620,
    "last_online": 1780590030,
    "icon": null,
    "name": "Rusty Repo 20X PVE Zombies Prem Raidable Bases",
    "connect": "192.169.82.123:28080",
    "request": "192.169.82.123:28015",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 3,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1711395380,
    "last_update": 1780590030,
    "banned": false,
    "wipe": 1778183388,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1154,
    "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/3592471");
$data = json_decode($json, true);
var_dump($data);