Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11750507
json
{
  "response": {
    "steam_id": null,
    "domain": "play.valentysmp.my.id",
    "id": 11750507,
    "ip": "15.235.181.201",
    "port": 19217,
    "query": 19217,
    "color": 0,
    "city": "Singapore",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780519123,
    "last_online": 1780555314,
    "icon": null,
    "name": "ValentySMP [1.13-1.21+] 💰Economy system • ⛏Skills grinding",
    "connect": "play.valentysmp.my.id:19217",
    "request": "15.235.181.201:19217",
    "map": null,
    "gamemode": "Survival",
    "version": "1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6",
    "numplayers": 0,
    "maxplayers": 2026,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "SG",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780519123,
    "last_update": 1780555314,
    "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": 4774,
    "language": "en",
    "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/11750507");
$data = json_decode($json, true);
var_dump($data);