JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11639281
json
{
  "response": {
    "fps": 52,
    "fps_avg": 63,
    "entities_count": 84840,
    "world_seed": 1,
    "world_size": 4000,
    "steam_id": "90286272222167047",
    "domain": null,
    "id": 11639281,
    "ip": "157.85.94.15",
    "port": 24525,
    "query": 24526,
    "color": 0,
    "city": "Dallas",
    "description": "![DeadDiamonds 10x](https://i.ibb.co/cck6m90F/Welcome-to-Deaddiamonds-wasteland.png)\n🔥 10x DUO | Backpacks | Quick Craft | Teleport | Homes | MyMini | Raidable Bases | Quick Recycle & Smelt 🔥 Fast-paced 10x Duo Rust where the grind is gone and the fun begins immediately! Build with your duo, fly around the map, raid constantly, and actually enjoy every wipe. Key Features:  10x Gather Rates Backpacks – Never lose your loot on death Quick Craft, Quick Recycle & Quick Smelt Teleport + Homes system MyMini – Personal minicopter for everyone Raidable Bases scattered across the map for constant action\r\nActive and PLAYING Admins\r\nCustom Monuments\r\nAll The Quality Of Life Improvements",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780608211,
    "last_online": 1779951027,
    "icon": null,
    "name": "DeadDiamonds 10x",
    "connect": "157.85.94.15:24525",
    "request": "157.85.94.15:24526",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779917957,
    "last_update": 1780608211,
    "banned": false,
    "wipe": 1779476568,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12152,
    "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/11639281");
$data = json_decode($json, true);
var_dump($data);