JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11644766
json
{
  "response": {
    "fps": 214,
    "fps_avg": 211,
    "entities_count": 211676,
    "world_seed": 1111517765,
    "world_size": 4500,
    "steam_id": "90286404427442206",
    "domain": null,
    "id": 11644766,
    "ip": "89.35.130.89",
    "port": 20050,
    "query": 10050,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![REMEMBER RUST — 1X (UNLIMIT)](https://i.ibb.co/mV2LH9LD/0-J-b-WIYNUF-Ytd-Ri-G0-GPa-Q2k.png)\nЛимит игроков в команде: нет лимита \n\nКлассика: \n\nВайп карты: каждую пятницу в 14:00 \nВайп рецептов: каждые две недели, начиная с первого вайпа",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605212,
    "last_online": 1780229421,
    "icon": null,
    "name": "REMEMBER RUST — 1X (UNLIMIT)",
    "connect": "89.35.130.89:20050",
    "request": "89.35.130.89:10050",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1780177435,
    "last_update": 1780605212,
    "banned": false,
    "wipe": 1780192893,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12209,
    "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/11644766");
$data = json_decode($json, true);
var_dump($data);