Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/9960697
json
{
  "response": {
    "steam_id": null,
    "domain": "bobinc.us",
    "id": 9960697,
    "ip": "47.188.231.22",
    "port": 25565,
    "query": 25565,
    "color": 0,
    "city": "Justin",
    "description": null,
    "game": 9000034,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775642494,
    "score": 0,
    "last_online": 1776096662,
    "icon": null,
    "name": "the bob world mc server",
    "connect": "bobinc.us:25565",
    "request": "47.188.231.22:25565",
    "map": null,
    "gamemode": null,
    "version": "Paper 1.21.9",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1754356810,
    "last_update": 1776096662,
    "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": 3392,
    "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/9960697");
$data = json_decode($json, true);
var_dump($data);