JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10622896
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 102348,
    "world_seed": 1878946508,
    "world_size": 4250,
    "steam_id": "90286351293742084",
    "domain": null,
    "id": 10622896,
    "ip": "66.51.99.82",
    "port": 28020,
    "query": 28021,
    "color": 0,
    "city": "Dallas",
    "description": "![TGZ Sanctuary - PVE with PVP Zones | Raid Bases | Vehicles](https://www.dropbox.com/scl/fi/ps5xbo9fhu90z0rw6euus/TGZ_SanctuaryCropped.png?rlkey=rkklu3om5glwxgbzr4zv3dyii&st=6yyuk9or&raw=1)\nBeginner friendly server with chill vibes\r\nPVE experience with PVP enabled within high tier monuments\r\nThree day raid protection, bases are only eligible to be raided on the fourth consecutive day the base owner is inactive.\r\nPVE raidable bases, remove tool, massively increased stack sizes, and purchasable/respawnable vehicles\r\nPortal nexus across main safe zones and player settlements\r\nMap wipes every two weeks, with a BP wipe and map wipe the first Thursday of each month (any 5 week months will have a 1 week wipe)\r\nDaily restart at 4AM EST\r\nActive mods and friendly community\r\nUse the external website button below to visit our Discord for more information and server updates",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780580027,
    "last_online": 1780102824,
    "icon": null,
    "name": "TGZ Sanctuary - PVE with PVP Zones | Raid Bases | Vehicles",
    "connect": "66.51.99.82:28020",
    "request": "66.51.99.82:28021",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1763330653,
    "last_update": 1780580027,
    "banned": false,
    "wipe": 1779393349,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10535,
    "language": "en",
    "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/10622896");
$data = json_decode($json, true);
var_dump($data);