JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11500988
json
{
  "response": {
    "fps": 226,
    "fps_avg": 225,
    "entities_count": 29778,
    "world_seed": 1,
    "world_size": 2500,
    "steam_id": "90286527950364678",
    "domain": null,
    "id": 11500988,
    "ip": "144.76.222.219",
    "port": 28025,
    "query": 28027,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[RO] Retro Rust Romania | Server x2 Vanilla | Blueprint Share |](https://maps.weoxiders.net/secure/file/8qw1zeroZGXyn)\n\r\n Retro Rust Romania x2 Vanilla [Wipe Map-Weekly Thursday@\r\n Force BPs- every biweekly , discord: https://discord.gg/QwhP4sqhBT\r\n → Group Team Limit 4 \r\n → Blueprint Share \r\n → 2x Gather Rate \r\n → 2x Better Vanilla Loot \r\n → LockedCrateTimer 5 Minutes \r\n → ChestStackMultiplier X2 \r\n → MonumentsRecycler \r\n → Speed Crafting \r\n → QuickSmelt Speed \r\n → SharedDoors \r\n → No Junk Loot \r\n → Map Size: ~3600 \r\n → https://retrorust.uk/ \r\n → Server IP : F1 connect 144.76.222.219:28025 \r\n FP banned alts -No ban evading \r\n -No racism Active yes playing admins\r\n Full rules: https://discord.gg/sxgyXFJYRm \r\n don't forget to add the server to your favorites",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780428207,
    "last_online": 1780561231,
    "icon": null,
    "name": "[RO] Retro Rust Romania | Server x2 Vanilla | Blueprint Share |",
    "connect": "144.76.222.219:28025",
    "request": "144.76.222.219:28027",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207166,
    "last_update": 1780561231,
    "banned": false,
    "wipe": 1778864255,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4626,
    "language": "de",
    "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/11500988");
$data = json_decode($json, true);
var_dump($data);