Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11172963
json
{
  "response": {
    "steam_id": "90282786074560520",
    "domain": null,
    "id": 11172963,
    "ip": "69.11.33.2",
    "port": 7799,
    "query": 27037,
    "color": 0,
    "city": "Yorkton",
    "description": null,
    "game": 232090,
    "owner": null,
    "boosts": 1,
    "last_offline": 1777203204,
    "score": 0,
    "last_online": 1777242667,
    "icon": null,
    "name": "Hordes of the Undead 02 [Hard] [Long] (80+ Maps)",
    "connect": "69.11.33.2:7799",
    "request": "69.11.33.2:27037",
    "map": "KF-SantasWorkshop",
    "gamemode": "Killing Floor 2",
    "version": "1150",
    "numplayers": 0,
    "maxplayers": 6,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1772229127,
    "last_update": 1777242667,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 608,
    "language": "en",
    "parked": false,
    "app": {
      "id": 51,
      "steam_id": 232090,
      "name": "Killing Floor 2",
      "url": "killing-floor-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11172963");
$data = json_decode($json, true);
var_dump($data);