JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11744600
json
{
  "response": {
    "fps": 76,
    "fps_avg": 77,
    "entities_count": 117277,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286536549725199",
    "domain": null,
    "id": 11744600,
    "ip": "104.128.58.16",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "Chicago",
    "description": "WILD-RANGE 2x | Chicago | Balanced Loot | Monthly Low Latency. High Stakes. Pure Rust.Midwest Performance: Hosted in Chicago for the best ping across the Central US.Balanced 2x: Faster gathering with custom loot tables to keep raiding earned, not given.The Monthly Grind: Full Map & BP wipes on the first Thursday of every month.Team Limit: Max 4.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780518711,
    "last_online": 1780606830,
    "icon": null,
    "name": "WILD-RANGE 2x | Balance Loot | Monthly",
    "connect": "104.128.58.16:28025",
    "request": "104.128.58.16:28026",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780518711,
    "last_update": 1780606830,
    "banned": false,
    "wipe": 1780436041,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5699,
    "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/11744600");
$data = json_decode($json, true);
var_dump($data);