JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11260940
json
{
  "response": {
    "fps": 191,
    "fps_avg": 185,
    "entities_count": 61019,
    "world_seed": 481981,
    "world_size": 3250,
    "steam_id": "90286444659295253",
    "domain": null,
    "id": 11260940,
    "ip": "162.216.115.124",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Secaucus",
    "description": "![WIB - PvE](https://i.imgur.com/VoKV92c.jpg)\nWhat does WIB mean ( Where is Bob )\r\n\r\nDo have Events that change time to time\r\nThere are QOL plugins make things little easier.\r\nMostly have custom maps for each wipe, will be default if Server owner out of town.\r\nClick External Website to join Discord for more info.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780235049,
    "last_online": 1780608636,
    "icon": null,
    "name": "US Two - Test Server atm - US One Main Server",
    "connect": "162.216.115.124:28080",
    "request": "162.216.115.124:28015",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774555212,
    "last_update": 1780608636,
    "banned": false,
    "wipe": 1778245454,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4316,
    "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/11260940");
$data = json_decode($json, true);
var_dump($data);