JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/5941994
json
{
  "response": {
    "fps": 221,
    "fps_avg": 217,
    "entities_count": 65833,
    "world_seed": 491379503,
    "world_size": 3500,
    "steam_id": "90286546758909956",
    "domain": null,
    "id": 5941994,
    "ip": "193.243.190.23",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![Elitelupus Rust 3x - Forge Wars MMO](https://i.postimg.cc/KY2Dz3g8/rust2.png)\nElitelupus Rust 3x - Forge Wars MMO\n- Forge Wars MMO: skills, upgrades, enchants and Gold economy\n- 3x gather rates, sulfur balanced, custom loot tables\n- Fast smelt, fast craft, boosted stacks and faster recyclers\n- Clans, POI capture, missions, perks and player progression\n- Make Gold from HQM + charcoal, then spend credits in /shop\n- Vehicles, /ub item upgrades and custom /basing defenses\n- Long days, short nights and active Discord community\n- Found a bug or idea? Use /feedback",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779985972,
    "last_online": 1780555232,
    "icon": null,
    "name": "Elitelupus Rust 3x - Forge Wars MMO",
    "connect": "193.243.190.23:28015",
    "request": "193.243.190.23:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 400,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1726346844,
    "last_update": 1780555232,
    "banned": false,
    "wipe": 1778225702,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2466,
    "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/5941994");
$data = json_decode($json, true);
var_dump($data);