Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/10171705
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10171705,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": null,
    "game": 221100,
    "owner": 133271,
    "boosts": 1,
    "last_offline": 1763358664,
    "last_online": 1762465215,
    "icon": null,
    "name": "HRZ++ | Terje | Inedia | Hardcore |",
    "connect": null,
    "request": null,
    "map": "chernarusplus",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1756285018,
    "last_update": 1763358664,
    "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": 15059,
    "language": "de",
    "parked": true,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": {
      "username": "Validay_Promabe",
      "avatar": "baabd242-118e-4a42-9cea-9c3fa8e2a506.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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