JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10661186
json
{
  "response": {
    "fps": 70,
    "fps_avg": 68,
    "entities_count": 141999,
    "world_seed": 1808670345,
    "world_size": 5000,
    "steam_id": "90286604447965207",
    "domain": null,
    "id": 10661186,
    "ip": "185.157.13.170",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Niepołomice",
    "description": "![[EU] Rust Garlics || Vanilla Monthly](https://i.imgur.com/jEOogmm.png)\nServer Rules:\r\n1. VAC/Game Bans not allowed.\r\n2. Don't be Rude.\r\n3. English only on voice and global chat(teamchat does not apply)\r\n4. Have Fun playing here.\r\n \r\nNext map wipe: 2nd July 2026 \r\nNext BP wipe:  6th August 2026 \r\n \r\nServer wipes the map on 1st Thursday of every month and blueprints every 2 months.\r\n \r\nIf you have any questions contact me on Discord @Ventres4283 or email: ContactVentres'at'proton.me",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596862,
    "last_online": 1780939231,
    "icon": null,
    "name": "[EU] Rust Garlics || Vanilla Monthly",
    "connect": "185.157.13.170:28015",
    "request": "185.157.13.170:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 3,
    "maxplayers": 69,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PL",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1764544708,
    "last_update": 1780939231,
    "banned": false,
    "wipe": 1780596977,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2087,
    "language": "pl",
    "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/10661186");
$data = json_decode($json, true);
var_dump($data);