Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11386442
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11386442,
    "ip": "31.25.243.173",
    "port": 53393,
    "query": 53393,
    "color": 0,
    "city": "Yekaterinburg",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776809552,
    "score": 0,
    "last_online": 1776084655,
    "icon": null,
    "name": null,
    "connect": null,
    "request": "31.25.243.173:53393",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": null,
    "private": true,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1774596271,
    "last_update": 1776809552,
    "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": 795,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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