JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11645096
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 63321,
    "world_seed": 1788125601,
    "world_size": 3250,
    "steam_id": "90286576112476169",
    "domain": null,
    "id": 11645096,
    "ip": "99.229.132.34",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Markham",
    "description": "![HEADSHOT 2X|SDT](https://imgur.com/5yzpWbe.png)\nHEADSHOT 2X Solo/Duo/Trio\r\nMonthly WipesFirst Thursday of the month 6pm EST.\r\nCustom & Voted Maps Raidable Bases Active Events\r\n Discord Community Fresh Wipe Bot will be added soon\r\nConnect Now & Claim Your Spot Before It's Gone! discord.gg/8PVDSs7K",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780177446,
    "last_online": 1780570834,
    "icon": null,
    "name": "HEADSHOT 2X|SDT",
    "connect": "99.229.132.34:28015",
    "request": "99.229.132.34:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780177446,
    "last_update": 1780570834,
    "banned": false,
    "wipe": 1779119649,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5772,
    "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/11645096");
$data = json_decode($json, true);
var_dump($data);