JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11606765
json
{
  "response": {
    "fps": 201,
    "fps_avg": 209,
    "entities_count": 59840,
    "world_seed": 1107744367,
    "world_size": 3000,
    "steam_id": "90286617190575119",
    "domain": null,
    "id": 11606765,
    "ip": "213.139.78.63",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Giv‘at Nili",
    "description": "![FutureIL | 2x Vanilla - ילארשי תרש | RustIL](https://i.ibb.co/jvgH8VbX/Rust-IL-Banner.png)\n- Welcome to RustIL by FutureIL\r\n- Israel’s Ultimate PvP Rust Survival Servers!\r\n- Kill or be killed. No second chances.\r\n\r\n\r\n- - Server Info:\r\n\r\n- Group Limit: (6)\r\n- Active Staff\r\n- 2x Gather\r\n- 2x Sulfur\r\n- 2x Crafting\r\n- Custom Loot & Maps\r\n- Fast Smelt\r\n- Extended Workbench Range\r\n- Extra Recyclers\r\n- Long Days & Short Nights\r\n- discord.gg/RustIL",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780618455,
    "last_online": 1780660830,
    "icon": null,
    "name": "FutureIL | 2x Vanilla - ילארשי תרש | RustIL",
    "connect": "213.139.78.63:28015",
    "request": "213.139.78.63:28017",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 2,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "IL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779915481,
    "last_update": 1780660830,
    "banned": false,
    "wipe": 1780595539,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5202,
    "language": "he",
    "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/11606765");
$data = json_decode($json, true);
var_dump($data);