JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/6741350
json
{
  "response": {
    "fps": 56,
    "fps_avg": 55,
    "entities_count": 32611,
    "world_seed": 573930120,
    "world_size": 2500,
    "steam_id": "90286377508947990",
    "domain": null,
    "id": 6741350,
    "ip": "31.214.141.107",
    "port": 27000,
    "query": 27002,
    "color": 0,
    "city": "Münster",
    "description": "![[PVE] Green Island - Heli-Training @ Snowflake](https://i.postimg.cc/c4WPbQfZ/Green-Island-Start-Info-Small1.jpg)\nNew Server, New IP...  Free helicopter to train with - Configuration and Addons still work in progress :)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780608257,
    "last_online": 1780596031,
    "icon": null,
    "name": "[PVE] Green Island - Heli-Training",
    "connect": "31.214.141.107:27000",
    "request": "31.214.141.107:27002",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1732630252,
    "last_update": 1780608257,
    "banned": false,
    "wipe": 1778189074,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9818,
    "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/6741350");
$data = json_decode($json, true);
var_dump($data);