JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11606660
json
{
  "response": {
    "fps": 133,
    "fps_avg": 126,
    "entities_count": 90100,
    "world_seed": 0,
    "world_size": 4000,
    "steam_id": "90286581311343638",
    "domain": null,
    "id": 11606660,
    "ip": "194.50.234.70",
    "port": 28310,
    "query": 28245,
    "color": 0,
    "city": "City of London",
    "description": "Server Modes & Features:\r\n\r\nPvE Mode (Thursday 19:00 to Wednesday 19:00):\r\n- PvP kills are not allowed. Violators face auto-ban until the next wipe.\r\n- Raiding is prohibited. We depend on our community to report raiders via the F7 in-game feature.\r\n\r\nPvP Purge Day (Wednesday 19:00 to Thursday 19:00):\r\nUnleash Chaos: Engage in PvP, raid, and let loose! For 24 hours, anything goes.\r\n\r\nPure Hardcore Gameplay: Experience Hardcore Rust as it was meant to be!\r\n\r\nWipe Schedule:\r\n- Map Wipe: Every Thursday at 19:00 London time.\r\n- Blueprint Wipe: Monthly, on the first Thursday at 19:00 London time.\r\n\r\nNote: Engage with our community and stay updated on any server news via rustkingdom.uk.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779992020,
    "last_online": 1780566027,
    "icon": null,
    "name": "Rust Kingdom Hardcore PvE",
    "connect": "194.50.234.70:28310",
    "request": "194.50.234.70:28245",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915478,
    "last_update": 1780566027,
    "banned": false,
    "wipe": 1779991979,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5414,
    "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/11606660");
$data = json_decode($json, true);
var_dump($data);