JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11095725
json
{
  "response": {
    "fps": 251,
    "fps_avg": 252,
    "entities_count": 33216,
    "world_seed": 234043220,
    "world_size": 2500,
    "steam_id": 90286748340742160,
    "domain": null,
    "id": 11095725,
    "ip": "64.31.32.2",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Tokyo",
    "description": "US & AU focused Deathmatch Arena server\r\nEnglish only\r\nWipes only on official force wipe\r\nFast PvP — no farming\r\nCreative build enabled\r\nInstant action, casual friendly",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780721054,
    "last_online": 1780941034,
    "icon": null,
    "name": "Goose V Bob",
    "connect": "64.31.32.2:28015",
    "request": "64.31.32.2:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 1000,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "JP",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1770028159,
    "last_update": 1780941034,
    "banned": false,
    "wipe": 1780721230,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4536,
    "language": "ja",
    "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/11095725");
$data = json_decode($json, true);
var_dump($data);