JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/8321651
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 114871,
    "world_seed": 494956,
    "world_size": 4500,
    "steam_id": "90286426362467343",
    "domain": null,
    "id": 8321651,
    "ip": "104.129.132.57",
    "port": 28099,
    "query": 28096,
    "project_id": null,
    "color": 0,
    "city": "Dallas",
    "description": "Welcome to Rusty Island Noobs. This server has admin stacks. Look for the little houses with TC for your stacks.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780197832,
    "last_online": 1780947039,
    "icon": null,
    "name": "01 Rusty Island Noobs",
    "connect": "104.129.132.57:28099",
    "request": "104.129.132.57:28096",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1743351173,
    "last_update": 1780947039,
    "banned": false,
    "wipe": 1778198378,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3874,
    "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/8321651");
$data = json_decode($json, true);
var_dump($data);