JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511281
json
{
  "response": {
    "fps": 251,
    "fps_avg": 250,
    "entities_count": 90584,
    "world_seed": 1,
    "world_size": 4750,
    "steam_id": "90286089201226762",
    "domain": null,
    "id": 11511281,
    "ip": "194.69.160.160",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "City of London",
    "description": "![Lumity 10x - [EU]](https://rust-server-images.physgun.com/7eeaaa86d22593ba681a0dd08809bc5db636936db16bca8eba321baf5ae18e49.png)\nLumity is a high-performance premium rust server focused on delivering a balanced and competitive 10x experience.\r\n\r\nWhat we offer:\r\n\r\nIncreased gather rates 10x\r\nOptimized loot system\r\nFast crafting & smelting\r\nStarter kits for quick entry\r\nCustom events & PvP activities\r\nActive staff & regular updates\r\n\r\nServer Rules:\r\n\r\nDiscord.gg/lumity10x\r\nNo cheating or exploiting\r\nNo racism or excessive toxicity\r\n\r\nDetails:\r\n• Max Team Size: 32\r\n• Map Wipes Monday's & Friday's\r\n\r\nDesigned for both casual and competitive players.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780605217,
    "last_online": 1779796823,
    "icon": null,
    "name": "Lumity 10x - [EU]",
    "connect": "194.69.160.160:28015",
    "request": "194.69.160.160:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 500,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779353840,
    "last_update": 1780605217,
    "banned": false,
    "wipe": 1779483592,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11424,
    "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/11511281");
$data = json_decode($json, true);
var_dump($data);