JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11500913
json
{
  "response": {
    "fps": 239,
    "fps_avg": 239,
    "entities_count": 5498,
    "world_seed": 870584843,
    "world_size": 1250,
    "steam_id": "90286442089351183",
    "domain": null,
    "id": 11500913,
    "ip": "54.36.175.30",
    "port": 28035,
    "query": 28037,
    "color": 0,
    "city": "Wroclaw",
    "description": "Welcome to Bestrust Solo/Duo/Trio/Quad/Max5 2x!\r\nGet 3 free rust skins by using the BESTRUST code on https://rustmagic.com/\r\n\r\nWipe Schedule:\r\n• Fullwipes Every Sunday at 17:45 CEST\r\n• Fullwipes Every Wednesday at 14:45 CEST\r\n- Last Wipe: 29.04 14:45 CEST Type: Full Wipe\r\n- Next Wipe: 03.05 17:45 CEST Type: Full Wipe\r\n\r\nFeatures:\r\n- 2x gathering & loot\r\n- Max Group Size: 5\r\n- Shared Blueprints\r\n- Balanced kits & commands\r\n- Great anti-cheat + Active non-playing admins\r\n\r\nWebsite https://store.bestrustservers.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780231451,
    "last_online": 1780584036,
    "icon": null,
    "name": "Bestrust Solo/Duo/Trio/Quad/Max5 2x #4",
    "connect": "54.36.175.30:28035",
    "request": "54.36.175.30:28037",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207165,
    "last_update": 1780584036,
    "banned": false,
    "wipe": 1778776793,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4713,
    "language": "pl",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11500913");
$data = json_decode($json, true);
var_dump($data);