Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/9305734
json
{
  "response": {
    "steam_id": null,
    "domain": "Ctranirp.aternos.me",
    "id": 9305734,
    "ip": "185.107.194.16",
    "port": 22102,
    "query": 22102,
    "color": 0,
    "city": "Neckargemünd",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776117155,
    "score": 0,
    "last_online": 1776107499,
    "icon": null,
    "name": null,
    "connect": null,
    "request": "185.107.194.16:22102",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 1,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1747667894,
    "last_update": 1776117155,
    "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": 7588,
    "language": "de",
    "parked": false,
    "app": {
      "id": 169,
      "steam_id": 9000034,
      "name": "Minecraft",
      "url": "minecraft"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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