JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11500961
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 120340,
    "world_seed": 12345,
    "world_size": 4500,
    "steam_id": "90286495008588822",
    "domain": null,
    "id": 11500961,
    "ip": "49.13.142.62",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Falkenstein",
    "description": "Welcome to Brandonioti - A Solo Only Rust Server\r\n\r\nRules:\r\n- Solo ONLY - No teaming allowed\r\n- No code locks (use key locks)\r\n- Be respectful\r\n\r\nFeatures:\r\n- Monthly wipes\r\n- Active admins\r\n- Kit rewards via website\r\n\r\nJoin our Discord for kits and rewards!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780582417,
    "last_online": 1780354829,
    "icon": null,
    "name": "[UK] Brandonioti Solo Only | Monthly Wipe",
    "connect": "49.13.142.62:28015",
    "request": "49.13.142.62:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779207166,
    "last_update": 1780582417,
    "banned": false,
    "wipe": 1779068531,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11029,
    "language": "de",
    "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/11500961");
$data = json_decode($json, true);
var_dump($data);