JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11606851
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 127760,
    "world_seed": 1559266829,
    "world_size": 4500,
    "steam_id": "90286588128856069",
    "domain": null,
    "id": 11606851,
    "ip": "208.73.207.206",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Secaucus",
    "description": "![RUST WORLD | 5x | PvE | PvP](https://imgur.com/bu2ejsF.jpeg)\nWelcome to RUST WORLD - The Ultimate Rust Experience!\r\n♢ Convoy\r\n♢ Airfield Event\r\n♢ Raidable Bases\r\n♢ Teleport\r\n♢ War Mode\r\n♢ Monthly Map Wipes (First Thursdays @ 2PM EST)\r\n♢ Active Admins | Anti-Cheat\r\n\r\nJoin Now & Survive!\r\nDiscord: https://discord.gg/aHv92VJ8FD",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779967423,
    "last_online": 1780570828,
    "icon": null,
    "name": "RUST WORLD | 5x | PvE | PvP",
    "connect": "208.73.207.206:28015",
    "request": "208.73.207.206:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915486,
    "last_update": 1780570828,
    "banned": false,
    "wipe": 1779231384,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5469,
    "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/11606851");
$data = json_decode($json, true);
var_dump($data);