JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/4105613
json
{
  "response": {
    "fps": 59,
    "fps_avg": 57,
    "entities_count": 139302,
    "world_seed": 1413212560,
    "world_size": 5000,
    "steam_id": "90286747053763615",
    "domain": null,
    "id": 4105613,
    "ip": "162.55.66.178",
    "port": 28016,
    "query": 28301,
    "project_id": null,
    "color": 0,
    "city": "Falkenstein",
    "description": "![EU | SIX GAMING | 10X QUAD | PVE/PVP Zone | /kit /info /clan | ](https://cloud.six-gaming.de/index.php/s/tQq7nnCRyR7QpZZ/download/Header%2010x%20Monthly.png)\nWelcome to SIX-Gaming 10x QUAD PVE/PVP Zone \r\n\r\n Need support or want to engage with our community? Click VIEW WEBPAGE \r\n\r\n Server wipe schedule: \r\n\r\n This server follows a Monthly map wipe schedule. This will take place every first Thursday of the Month @ 8PM MEZ. \r\n\r\n on force wipe (a forced update that Facepunch does on the first Thursday @ 8PM MEZ of every month), this server will also Fullwipe. \r\n\r\n Modded (Kits, clans, /report, /home, /bgrade, /remove, Recycler, BetterLoot etc. )[x10 Resources] \r\n\r\n QUAD , with active Admins 5k Map Size \r\n\r\n Server restarts occur at the following times MEZ: 12 A.M. and 12 P.M. \r\n\r\n We hope you will enjoy your stay on SIX-Gaming Rust servers!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596270,
    "last_online": 1780951828,
    "icon": null,
    "name": "EU | SIX GAMING | 10X QUAD | PVE/PVP Zone | /kit /info /clan |",
    "connect": "162.55.66.178:28016",
    "request": "162.55.66.178:28301",
    "map": "SIX-Gaming 10x QUAD",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 3,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1714682601,
    "last_update": 1780951828,
    "banned": false,
    "wipe": 1780596772,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1799,
    "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/4105613");
$data = json_decode($json, true);
var_dump($data);