Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/10861396
json
{
  "response": {
    "steam_id": "90284570710491152",
    "domain": null,
    "id": 10861396,
    "ip": "65.108.143.24",
    "port": 13022,
    "query": 13022,
    "color": 0,
    "city": "Helsinki",
    "description": null,
    "game": 1203620,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776443556,
    "score": 0,
    "last_online": 1776463232,
    "icon": null,
    "name": "Irrenhausen",
    "connect": "65.108.143.24:13022",
    "request": "65.108.143.24:13022",
    "map": null,
    "gamemode": "Enshrouded",
    "version": "0.0.15.0",
    "numplayers": 2,
    "maxplayers": 16,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 47,
    "add_date": 1768316107,
    "last_update": 1776463232,
    "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": 132,
    "language": "fi",
    "parked": false,
    "app": {
      "id": 1611384,
      "steam_id": 1203620,
      "name": "Enshrouded",
      "url": "enshrouded"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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