JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11800979
json
{
  "response": {
    "fps": 81,
    "fps_avg": 81,
    "entities_count": 137274,
    "world_seed": 247113611,
    "world_size": 4020,
    "steam_id": "90287010848001044",
    "domain": null,
    "id": 11800979,
    "ip": "144.33.26.248",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Vinhedo",
    "description": "![RustCore 2x Monthy Quad No Offline | No BP Wipes](https://i.ibb.co/v6pPTb1B/Rust-Core-banner.jpg)\nWelcome to RustCore \r\n\r\n Raids are only allowed from 17:00 to 23:00 (São Paulo / Brazil time), providing a more balanced and competitive gameplay experience.\r\n\r\n Maximum team size: 4 players.\r\n\r\n Shop system with online playtime rewards.\r\nThe longer you play, the more points you earn to use in the shop.\r\n\r\n Custom kits available.\r\n\r\n Several exclusive plugins and systems to improve your gameplay experience.\r\n\r\n Server focused on performance, balanced PvP, and fun.\r\n\r\nJoin now and become part of the RustCore community!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781463044,
    "last_online": 1781514631,
    "icon": null,
    "name": "RustCore 2x Monthy Quad No Offline | No BP Wipes",
    "connect": "144.33.26.248:28015",
    "request": "144.33.26.248:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "BR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1781463044,
    "last_update": 1781514631,
    "banned": false,
    "wipe": 1780594976,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 6266,
    "language": "pt",
    "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/11800979");
$data = json_decode($json, true);
var_dump($data);