JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/6287667
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 122186,
    "world_seed": 988495655,
    "world_size": 4500,
    "steam_id": "90286604017916931",
    "domain": null,
    "id": 6287667,
    "ip": "104.129.132.45",
    "port": 28059,
    "query": 28056,
    "color": 0,
    "city": "Dallas",
    "description": "![Vanillaish PVE with raid week No Decay](https://www.dropbox.com/scl/fi/a74gwzvpopfr6fv0y8h22/vanillaish.png?rlkey=s5v151apn4lmnsvtftzl3zcy6&st=hmc4jnzz&dl=1)\nWelcome to Vanilla'ish PVE We are a vanilla gather rate PVE server with many quality of life upgrades. We offer no decay, heli spawns on road with lower decay, remover tool, optional offline raid protection for half of raid week, horse lock, 2k stacks, raidable bases, 2 way discord/game chat, and more! Raid week is final week of wipe at which point pvp and raiding is enabled Active admins and a great culture enjoy your stay",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780635626,
    "icon": null,
    "name": "Vanillaish PVE with raid week No Decay",
    "connect": "104.129.132.45:28059",
    "request": "104.129.132.45:28056",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 5,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1729556328,
    "last_update": 1780635626,
    "banned": false,
    "wipe": 1780595976,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1715,
    "language": "en",
    "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/6287667");
$data = json_decode($json, true);
var_dump($data);