JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511567
json
{
  "response": {
    "fps": 41,
    "fps_avg": 41,
    "entities_count": 68594,
    "world_seed": 1898625766,
    "world_size": 3500,
    "steam_id": "90286604484378626",
    "domain": null,
    "id": 11511567,
    "ip": "91.229.114.12",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "(SERVER IN TESTING. FEEDBACK WELCOME)\r\nBloodyrust.gg | US 2x Solo/Duo | Thursdays\r\nWipes every Thursday at 2PM ET (UTC-4)\r\n2x Gather | Cleaned Loot Tables | Vanilla Gameplay\r\n\r\nRules:\r\n- No cheating/hacking/exploiting/bug abuse\r\n- No spamming/racism/antisemitism\r\n- No accounts with EAC bans or VAC bans <365d\r\n- No incomplete Steam profiles, accounts <50hr, or VPN's\r\n- Max Team Size: 2\r\n\r\nDiscord: https://discord.gg/baN3KNFTuY",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596862,
    "last_online": 1780600237,
    "icon": null,
    "name": "[6/4] Bloodyrust.gg US 2x Solo/Duo | Thursdays",
    "connect": "91.229.114.12:28015",
    "request": "91.229.114.12:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353854,
    "last_update": 1780600237,
    "banned": false,
    "wipe": 1780597271,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4635,
    "language": "en",
    "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/11511567");
$data = json_decode($json, true);
var_dump($data);