JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/805444
json
{
  "response": {
    "fps": 59,
    "fps_avg": 59,
    "entities_count": 151166,
    "world_seed": 1,
    "world_size": 5000,
    "steam_id": "90286588560724993",
    "domain": null,
    "id": 805444,
    "ip": "168.100.162.21",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Dallas",
    "description": "![MonuMental 2x US Bi Weekly No Decay 5/21](https://imgur.com/7zYIRMJ.png)\nMonuMental 2X Modded server.\r\nBiWeekly map wipe. BP and XP Stats wipe on first Thursday of the month,\r\nJoin the Discord at https://discord.gg/rNkBBdZ Click View Webpage to join\r\nCustom Maps and Monuments\r\n2x on loot and gather.\r\nXP Stats to level up your character above 2x limits\r\nLarge stack sizes\r\nYou can loot almost any object\r\nCombined Outpost and Bandit Camp\r\nShort night times\r\n Crops don't die and food doesn't burn\r\n Convoy, Trainyard and Cargo Plane Events",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779386026,
    "last_online": 1780581636,
    "icon": null,
    "name": "MonuMental 2x US Bi Weekly No Decay 5/21",
    "connect": "168.100.162.21:28015",
    "request": "168.100.162.21:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1684353736,
    "last_update": 1780581636,
    "banned": false,
    "wipe": 1779386066,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2543,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/805444");
$data = json_decode($json, true);
var_dump($data);