JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10805443
json
{
  "response": {
    "fps": 2,
    "fps_avg": 3,
    "entities_count": 69020,
    "world_seed": 1897507005,
    "world_size": 3500,
    "steam_id": "90286602955186186",
    "domain": null,
    "id": 10805443,
    "ip": "46.250.251.230",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "London",
    "description": "Go creative upon a resource rich island.\n\n Protocol: 2627.285.1 by an official made 153461.\n Last: Restarted at 2026-06-05T02:21:48JST for an official delivery 23551395.\n Quarantine: Nodes up which Virtual Private Network provides would be avoided.\n Status: https://discord.gg/pQSBtgJX9p may detail.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780593264,
    "last_online": 1780593856,
    "icon": null,
    "name": "Jeanneau Japan PvE NoBP - FriJun050300JST / FriJul030200JST",
    "connect": "46.250.251.230:28015",
    "request": "46.250.251.230:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 0,
    "add_date": 1766921274,
    "last_update": 1780593856,
    "banned": false,
    "wipe": 1780593676,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10029,
    "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/10805443");
$data = json_decode($json, true);
var_dump($data);