Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11142947
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11142947,
    "ip": "65.21.216.225",
    "port": 25588,
    "query": 25588,
    "color": 0,
    "city": "Helsinki",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774697579,
    "score": 0,
    "last_online": 1776096646,
    "icon": null,
    "name": "Vanilla Survival",
    "connect": "65.21.216.225:25588",
    "request": "65.21.216.225:25588",
    "map": "1.16.5-1.21.x",
    "gamemode": "Survival",
    "version": "1.21.93",
    "numplayers": 0,
    "maxplayers": 122,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "FI",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1770975934,
    "last_update": 1776096646,
    "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": 5053,
    "language": "fi",
    "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/11142947");
$data = json_decode($json, true);
var_dump($data);