Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/3987689
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 3987689,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"sgndx0aua\",\"type\":\"image\",\"data\":{\"file\":{\"url\":\"https://gspics.org/images/2024/04/23/0jrUBw.png\"},\"caption\":\"$VBEGHUB RUST #1 | X3 | MAX 5\",\"withBorder\":false,\"stretched\":true,\"withBackground\":false}},{\"id\":\"nlknbiv15\",\"type\":\"paragraph\",\"data\":{\"text\":\"Сервер построенный по мотивам всеми любимого сайта!\\n>Ивенты\\n>Реальный вывод скинов за игру на сервере!\\n>FRIEND | TP | SHOP\\n>Магазин проекта -> vbeghubrust.ru\\n>Дискорд сервер -> discord.gg/vbeghub\\n>Группа ВКонтакте -> vk.com/vbeghubrus\\n>Телеграмм канал -> t.me/rustvbeghub\\n>connect 37.230.137.16:20510\\n>Вайп каждую пятницу в 12:00 по МСК  \\n\\n\"}}]",
    "game": 252490,
    "owner": 69701,
    "boosts": 1,
    "last_offline": 1750457066,
    "score": 0,
    "last_online": 1745355622,
    "icon": null,
    "name": "VBEGHUB RUST #1 | X3 | MAX 5 | PIRATE",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1714242293,
    "last_update": 1750457066,
    "banned": false,
    "wipe": 1744981150,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 7120,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "Bizlich",
      "avatar": "a5ad5d51-b6cf-49fe-9430-e4c5ef3cbbeb.jpg",
      "last_online": 1746993841
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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