JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11607062
json
{
  "response": {
    "fps": 100,
    "fps_avg": 100,
    "entities_count": 78457,
    "world_seed": 2073373186,
    "world_size": 3700,
    "steam_id": "90286578904390675",
    "domain": null,
    "id": 11607062,
    "ip": "144.48.106.226",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![BTARust.net | US | 3x Monthly | No Team Limit | Full Wipe](https://www.btarust.net/Header.png)\nBTARust.net 3x Monthly US\r\n\r\n• Active Staff\r\n• Monthly Wipes\r\n• 3x Gather & Loot\r\n• Procedural Map\r\n• No Team Limit\r\n• Discord Rewards\r\n• Kits & Clans\r\n• Longer Days / Short Nights\r\n• New Player Wipe Protection\r\n\r\nSERVER RULES\r\n1. No cheating, scripting, or exploiting\r\n2. No racism, hate speech, or harassment\r\n3. No doxxing or real-life threats\r\n4. No excessive spam or mic abuse\r\n5. Respect staff decisions\r\n6. No advertising outside communities\r\n7. Follow Rust & Discord ToS\r\n8. No team limit\r\n9. Wipe protection abuse may result in bans\r\n\r\nDiscord: discord.gg/HhrxErrDXg\r\nWebsite: https://www.btarust.net",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780500839,
    "last_online": 1780562427,
    "icon": null,
    "name": "BTARust.net | US | 3x Monthly | No Team Limit | Full Wipe",
    "connect": "144.48.106.226:28015",
    "request": "144.48.106.226:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915493,
    "last_update": 1780562427,
    "banned": false,
    "wipe": 1780500944,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5532,
    "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/11607062");
$data = json_decode($json, true);
var_dump($data);