JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/5941413
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 105845,
    "world_seed": 220631126,
    "world_size": 4250,
    "steam_id": "90286579950754821",
    "domain": null,
    "id": 5941413,
    "ip": "178.63.84.126",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Falkenstein",
    "description": "![[EU/GER] Wipe Mich Zart PvE deutsch/english](https://i.ibb.co/HT2TKhBw/Wipe-mich-zart.jpg)\n[EU/GER] Wipe Mich Zart PvE deutsch/english\r\n- PvE\r\n- Vanilla modded\r\n- Radiation on\r\n- Zombies on\r\n- half upkeep\r\n- Last Full-Wipe: 21.05.\r\n- Next Full-Wipe: 04.06.\r\n- [DE] [AT] [CH]\r\n- 2h Purge on Wipe Day",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780542269,
    "last_online": 1780577440,
    "icon": null,
    "name": "[EU/GER] Wipe Mich Zart PvE deutsch/english",
    "connect": "178.63.84.126:28015",
    "request": "178.63.84.126:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1726346647,
    "last_update": 1780577440,
    "banned": false,
    "wipe": 1779387812,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2818,
    "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/5941413");
$data = json_decode($json, true);
var_dump($data);