JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511046
json
{
  "response": {
    "fps": 234,
    "fps_avg": 234,
    "entities_count": 28852,
    "world_seed": 2500,
    "world_size": 2500,
    "steam_id": "90286581216709657",
    "domain": null,
    "id": 11511046,
    "ip": "92.222.152.133",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Paris",
    "description": "![[ES/EN] IRONBOUND Vanilla+ | Solo/Duo/Trio (Max 3) | Map 2500 |](https://i.imgur.com/dnpvffG.pngm/dnpvffG.png.com/dnpvffG.pngcom/dnpvffG)\n[ES/EN] Vanilla+ | Solo/Duo/Trio | Max 3 | 2500 Map | Weekly Map Wipe | BP Biweekly\r\nComunidad activa con jugadores de LATAM España y Europa.\r\nEnfoque claro: PvP activo raids online y juego limpio. ORP pensado para fomentar los raids online. Protección Offline 18 Horas para que puedas dormir y estudiar/trabajar.\r\nReglas clave:\r\nGriefing solo durante el raid.\r\nPrincipiantes bienvenidos. Les ayudaremos en todo lo posible. No se tolera el abuso a principiantes.\r\nCero tolerancia a toxicidad cheats scripting exploits y mala conducta.\r\nSi juegas limpio tienes sitio en Ironbound.\r\n\r\n[EN]\r\nActive community with players from LATAM Spain and Europe.\r\nClear focus on active PvP online raids and fair play. ORP designed to encourage online raids. Offline Raid Protection so your can sleep study/work.\r\nKey rules:\r\nGriefing only during raids.\r\nBeginners are welcome. We will help as much as possible. Abuse toward beginners will not be tolerated.\r\nZero tolerance for toxicity cheats scripting exploits and misconduct.\r\nIf you play fair you have a place in Ironbound.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780585836,
    "icon": null,
    "name": "[ES/EN] IRONBOUND Vanilla+ | Solo/Duo/Trio (Max 3) | Map 2500 |",
    "connect": "92.222.152.133:28015",
    "request": "92.222.152.133:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353837,
    "last_update": 1780585836,
    "banned": false,
    "wipe": 1780047843,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5121,
    "language": "fr",
    "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/11511046");
$data = json_decode($json, true);
var_dump($data);