JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/10870818
json
{
  "response": {
    "fps": 144,
    "fps_avg": 126,
    "entities_count": 97523,
    "world_seed": 1337,
    "world_size": 4096,
    "steam_id": "90286226574518293",
    "domain": null,
    "id": 10870818,
    "ip": "51.161.47.24",
    "port": 2250,
    "query": 2251,
    "color": 0,
    "city": "Montreal",
    "description": "Raidable Bases (varying difficulties, think you're good? Try this out for the ultimate raid challenge)\r\nRust+\r\nPersonal Minicopter - Kits - Shop\r\nUpgradeable smelting\r\nFaster bradley respawn so more chances at bradley loot\r\nAutoAuth - SAM Auth - Building upgrades - Skins - Voteday - Chest Stacking - Remover Tool - Sign artist - Player challenges w/ titles + more\r\nNew & Returning players welcome - Active admins",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779769959,
    "last_online": 1780591831,
    "icon": null,
    "name": "Good Times |1000000X|NO BPs|Kits|Shop|Skins",
    "connect": "51.161.47.24:2250",
    "request": "51.161.47.24:2251",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 3,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768318475,
    "last_update": 1780591831,
    "banned": false,
    "wipe": 1778205959,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3925,
    "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/10870818");
$data = json_decode($json, true);
var_dump($data);