JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11677558
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 108695,
    "world_seed": 434272141,
    "world_size": 4250,
    "steam_id": "90286607357563904",
    "domain": null,
    "id": 11677558,
    "ip": "66.51.99.46",
    "port": 28010,
    "query": 28011,
    "color": 0,
    "city": "Dallas",
    "description": "![DWK Gaming](https://geekymint.com/wp-content/uploads/2020/05/ir_engine.pl-abf83f32fef266fa.jpg)\n2x | PVE | Bi-Weekly | Custom Events | Raidable Bases |\r\n75% Upkeep | Custom NPCS | CUSTOM RADIO STATIONS FOR VIP | Maps 4250 and Larger\r\nBalanced 2x Settings!\r\nThrill and Chill on our Rust Server!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780599868,
    "last_online": 1780620630,
    "icon": null,
    "name": "DWK Gaming",
    "connect": "66.51.99.46:28010",
    "request": "66.51.99.46:28011",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 2,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780216215,
    "last_update": 1780620630,
    "banned": false,
    "wipe": 1780599991,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5545,
    "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/11677558");
$data = json_decode($json, true);
var_dump($data);