JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/8086975
json
{
  "response": {
    "fps": 20,
    "fps_avg": 20,
    "entities_count": 34106,
    "world_seed": 6767420,
    "world_size": 2500,
    "steam_id": "90286737354571781",
    "domain": null,
    "id": 8086975,
    "ip": "185.180.2.17",
    "port": 28744,
    "query": 27744,
    "project_id": null,
    "color": 0,
    "city": "Prague",
    "description": "![EU/CZ WhiteWolves.eu | x2 Semi-Vanilla | Solo/Duo/Trio](https://whitewolves.eu/ws/media-library/c24627e0aca89c7417df5958b20ae1f1/56e07f18-5725-4d68-a0f8-e4a500252b52jpeg.jpg)\n🐺 EU/CZ WhiteWolves.eu x2 | Semi-Vanilla | Beginner Friendly\r\n\r\n✔ Stable 24/7 server\r\n✔ No admin abuse / no cheats\r\n✔ Custom Map\r\n✔ Beginner & Safe Zone\r\n✔ Fair gameplay & active community\r\n\r\n━━━ SERVER INFO ━━━\r\n\r\n• Gather:\r\nx2 Wood / Stone / Metal\r\nVanilla Scrap\r\n\r\n• Wipe:\r\nEvery 14 days\r\n\r\n• Events:\r\nAirfield Event\r\nMining Event\r\nArmored Train\r\nMeteor\r\n\r\n• Removed:\r\nJet Event\r\nBalloon Event\r\nRaid Bases\r\n\r\n• Features:\r\nReward Kits by playtime\r\nNo OP Kits\r\nNo Pay2Win\r\nMore survival gameplay\r\nMore PvP around monuments\r\n\r\n━━━ COMMANDS ━━━\r\n\r\n/help\r\n/players\r\n/remove\r\n/stat\r\n/s [REWARD SHOP]\r\n\r\n━━━ LINKS ━━━\r\n\r\nIP: 185.180.2.17:27744\r\nDiscord: discord.gg/fns7QXwq\r\nWeb: whitewolves.eu",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595060,
    "last_online": 1780897231,
    "icon": null,
    "name": "EU/CZ WhiteWolves.eu | x2 Semi-Vanilla | Solo/Duo/Trio",
    "connect": "185.180.2.17:28744",
    "request": "185.180.2.17:27744",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CZ",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1741599826,
    "last_update": 1780897231,
    "banned": false,
    "wipe": 1780595136,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3158,
    "language": "cs",
    "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/8086975");
$data = json_decode($json, true);
var_dump($data);