JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11160135
json
{
  "response": {
    "fps": 229,
    "fps_avg": 227,
    "entities_count": 48521,
    "world_seed": 1525612519,
    "world_size": 3000,
    "steam_id": "90286234596977682",
    "domain": null,
    "id": 11160135,
    "ip": "135.148.134.72",
    "port": 28039,
    "query": 28040,
    "color": 0,
    "city": "Hudson",
    "description": "Made For Discord Server Getting Reckless  Members & Friends.\r\nJoin our community at discord.gg/gettingreckless.\r\nMap Wiped First Thursday Of Every Month.\r\nGreat Server for building & crafting as both noobs and advanced players.\r\nBig Map with a Community Base to assist with building and meeting players and a Starter Kit provided to get you started!\r\n, ,",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605814,
    "last_online": 1779924028,
    "icon": null,
    "name": "Reckless Rust",
    "connect": "135.148.134.72:28039",
    "request": "135.148.134.72:28040",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1772228152,
    "last_update": 1780605814,
    "banned": false,
    "wipe": 1779393947,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10388,
    "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/11160135");
$data = json_decode($json, true);
var_dump($data);