JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11260083
json
{
  "response": {
    "fps": 100,
    "fps_avg": 99,
    "entities_count": 86648,
    "world_seed": 1337,
    "world_size": 3700,
    "steam_id": "90286603707891743",
    "domain": null,
    "id": 11260083,
    "ip": "148.251.2.146",
    "port": 28016,
    "query": 28015,
    "color": 0,
    "city": "Falkenstein",
    "description": "![RustPlace Romania 2x[Duo/Trio/Quad|LootX2]FullWipe 4/6](https://www.rustplace.ro/img/rustx2512.jpg)\nWelcome To Rust Romania x2!\r\n \r\n Weekly FullWipe on Thursday @ 4PM UTC or when forced.\r\n Check wipe time ingame: !wipe\r\n VIP: rustplace.ro/vip\r\n DISCORD: https://discord.gg/TQApYSC\r\n \r\n » 2x Scrap\r\n » 2x Gather Rate\r\n » 2x Resource Stacks\r\n » 2x Smelt Speed (Vanilla For Sulfur)\r\n » 2x Loot\r\n » 5 Minutes Nights\r\n » Less Junk Loot\r\n » Sign Artist (/sil)\r\n » Most Level 1 BP Unlocked\r\n » Faster Crafting (Vanilla For Raid Items)\r\n » Faster Recycler\r\n » BP Team Share\r\n » Fishing Recycler\r\n\r\n Language: RO/EN\r\n TEAM UI: 4 (read the !rules)\r\n\r\nHave Fun!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779161571,
    "last_online": 1780596631,
    "icon": null,
    "name": "RustPlace Romania 2x[Duo/Trio/Quad|LootX2]FullWipe 4/6",
    "connect": "148.251.2.146:28016",
    "request": "148.251.2.146:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 6,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1774555186,
    "last_update": 1780596631,
    "banned": false,
    "wipe": 1780595341,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1487,
    "language": "de",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11260083");
$data = json_decode($json, true);
var_dump($data);