JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11510853
json
{
  "response": {
    "fps": 67,
    "fps_avg": 74,
    "entities_count": 65077,
    "world_seed": 767676,
    "world_size": 3500,
    "steam_id": "90286594191023108",
    "domain": null,
    "id": 11510853,
    "ip": "187.127.83.165",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![NORTHREACH.NET 2X FRIDAYS |Solo/Duo/Trio/Quad| JUST WIPED](https://i.imgur.com/7FGszSi.jpeg)\nWelcome to The Northern Reach\r\n\r\n2x Gather Rates - more loot, less grind\r\nBetterLoot - junk removed from crates and barrels\r\nFurnace Splitter - easy fuel management\r\nRaid Schedule - safe times protect your base, use /rs for info\r\nVote Day - use /voteday to skip the night\r\nShare Blueprints - share BPs with your team\r\nAutopickup Barrel Loot - pickup loot directly from barrels\r\nFair Play and Good Vibes - everyone is welcome!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780189435,
    "last_online": 1780594234,
    "icon": null,
    "name": "NORTHREACH.NET 2X FRIDAYS |Solo/Duo/Trio/Quad| JUST WIPED",
    "connect": "187.127.83.165:28015",
    "request": "187.127.83.165:28016",
    "map": "NOR - SWE - DEN - FIN",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 2,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353834,
    "last_update": 1780594234,
    "banned": false,
    "wipe": 1780090846,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4819,
    "language": "de",
    "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/11510853");
$data = json_decode($json, true);
var_dump($data);