JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11500883
json
{
  "response": {
    "fps": 210,
    "fps_avg": 209,
    "entities_count": 121357,
    "world_seed": 383951758,
    "world_size": 4500,
    "steam_id": "90286618355090442",
    "domain": null,
    "id": 11500883,
    "ip": "95.110.182.78",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Campodarsego",
    "description": "![[EU] Rust Italia - Monthly | PVP | Solo/Duo/Trio](https://i.postimg.cc/TPxSXbsg/rust-italia-ban.png)\nWelcome to Rust Italia — a competitive PVP server with a clean, fair and respectful community.\r\n\r\nRULES & FEATURES:\r\n- BP Team Sharing\r\n- Max 4 players per team\r\n- Decay starts 48h after the last TC member logs off the server\r\n- No Grief Base\r\n- Monthly wipe (every first Thursday of the month at 19:30 CET)\r\n- Last wipe: June 04, 2026\r\n- Next wipe will be: July 02, 2026\r\n- Welcome kit on first login!\r\n\r\nRAID WINDOW (Rome Time):\r\n- Every day: 10:00-02:00\r\nBases are protected outside these hours!\r\n\r\nPlay hard. Play fair. Welcome to Rust Italia.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780628663,
    "last_online": 1780635633,
    "icon": null,
    "name": "[EU] Rust Italia - Monthly | PVP | Solo/Duo/Trio",
    "connect": "95.110.182.78:28015",
    "request": "95.110.182.78:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "IT",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207164,
    "last_update": 1780635633,
    "banned": false,
    "wipe": 1780595154,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4366,
    "language": "it",
    "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/11500883");
$data = json_decode($json, true);
var_dump($data);