JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/1397543
json
{
  "response": {
    "fps": 62,
    "fps_avg": 63,
    "entities_count": 178537,
    "world_seed": 389866301,
    "world_size": 4750,
    "steam_id": "90286548901886995",
    "domain": null,
    "id": 1397543,
    "ip": "69.10.61.11",
    "port": 28026,
    "query": 28027,
    "color": 0,
    "city": "Secaucus",
    "description": "![RustPlay PVE With Custom AI And Zombies|LVLs|Kits|Cars|Quests|C](https://i.imgur.com/m1TUaUO.png)\nPVE With Custom AI And Zombies \r\n -Zombies At Monuments -Custom AI Found Roaming Map And At Monuments  \r\n -NPC Raidable Bases Spawn Randomly Around The Map \r\n -Vehicles -Quests -Levels -SkinBox -Backpacks -Fishing  \r\n -Custom Loot -Clans -Teleport/Home -Rewards Store \r\n -50% Reduced Decay -50% More Loot -1000% More Fun \r\n -70+ Plugins To Make Rust The Way It Should Be \r\n -Eastern No Lag US Server -Restarts Daily 4 AM CST \r\n -Active Staff -Owner Supervision -All Game Styles Welcome \r\n -Forced Monthly Wipe At Rust Update Only",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780477470,
    "last_online": 1780559429,
    "icon": null,
    "name": "RustPlay PVE With Custom AI And Zombies|LVLs|Kits|Cars|Quests|C",
    "connect": "69.10.61.11:28026",
    "request": "69.10.61.11:28027",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1696081409,
    "last_update": 1780559429,
    "banned": false,
    "wipe": 1778176234,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2206,
    "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/1397543");
$data = json_decode($json, true);
var_dump($data);