JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11639159
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 112768,
    "world_seed": 1,
    "world_size": 4500,
    "steam_id": "90286609872835590",
    "domain": null,
    "id": 11639159,
    "ip": "73.121.109.133",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Maryville",
    "description": "![Rusty Puff US|10x|No BPs|No Team Limit](https://i.imgur.com/VEd5U2Y.png)\nWelcome to Rust Puff 10x! \r\n  \r\n Server features include: \r\n ⦿ Free Mymini, Build tools and BetterLoot \r\n ⦿ Instant barrel and node break \r\n ⦿ Large custom map \r\n ⦿ And many more! \r\n  \r\n Rules: \r\n ⦿ No cheating, scripting, or exploiting in any way. \r\n ⦿ No racism, sexism, or homophobia. \r\n ⦿ No more than 1 gameban in 365 days.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605861,
    "last_online": 1780656630,
    "icon": null,
    "name": "Rusty Puff US|10x|No BPs|No Team Limit",
    "connect": "73.121.109.133:28015",
    "request": "73.121.109.133:28017",
    "map": "Wiped 13 hours ago",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779917955,
    "last_update": 1780656630,
    "banned": false,
    "wipe": 1780606369,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5297,
    "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/11639159");
$data = json_decode($json, true);
var_dump($data);