JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511423
json
{
  "response": {
    "fps": 191,
    "fps_avg": 195,
    "entities_count": 69312,
    "world_seed": 1790913588,
    "world_size": 3500,
    "steam_id": "90286583182895119",
    "domain": null,
    "id": 11511423,
    "ip": "66.45.245.228",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Secaucus",
    "description": "![Ironhold | 3x | Monthly | US | Solo/Duo/Quad| Fast Smelt | Loot](https://i.imgur.com/7sO1rTP.jpg)\nWelcome to IronHold RustThe perfect balance between grind and fun.• 3x Loot / Fast Progression  • Solo • Duo • Trio • Quad Friendly  • Bi-Weekly Wipes  • Fast Smelt / Insta Craft  • Active PvP & Competitive Environment  Start strong with FREE kits:•",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780542864,
    "last_online": 1780555236,
    "icon": null,
    "name": "Ironhold | 3x | Monthly | US | Solo/Duo/Quad| Fast Smelt | Loot",
    "connect": "66.45.245.228:28080",
    "request": "66.45.245.228:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353847,
    "last_update": 1780555236,
    "banned": false,
    "wipe": 1779388903,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5103,
    "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/11511423");
$data = json_decode($json, true);
var_dump($data);