Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/4043957
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4043957,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "Moscow",
    "description": "gm.link/u92442 Вайп 13.05\r\n В команде до 4-х игроков\r\n Полу-классический сервер\r\n Вайп карты раз в 2 недели\r\n Глобальный вайп 1 раз в месяц\r\n на 50% снижено содержание шкафа \r\n размер карты 3500 \r\n Сервер подходит для игроков с ОЗУ менее 16Гб",
    "game": 252490,
    "owner": 92442,
    "boosts": 1,
    "last_offline": 1775541088,
    "last_online": 1774656018,
    "icon": null,
    "name": "Good Rust #1 | x5 | Clans | Modded",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1714488972,
    "last_update": 1775541088,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13147,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "frolofsi1209",
      "avatar": "6cfec498-e43f-4c01-87a9-3df029dd8e68.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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