JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/2174584
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 2174584,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "![Home Rust - 3x Solo/Duo/Trio Wipe 5.07](https://i.imgur.com/SkG9XIq.jpeg)\nДобро пожаловать на сервер  Home Rust\r\nИграй с друзьями! У нас весело!\r\n     >Добыча ресурсов Х3\r\n     >Компоненты Х3\r\n     >Система телепортов\r\n     >Администрация\r\n     >Быстрый крафт\r\n     >Трейды\r\n     >И многое Другое\r\nПриятной игры!",
    "game": 252490,
    "owner": 47948,
    "boosts": 1,
    "last_offline": 1754065480,
    "last_online": 1751058020,
    "icon": null,
    "name": "Name is not set on server",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1702456858,
    "last_update": 1754065480,
    "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": 13096,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "Newcomer",
      "avatar": "3369e167-5a34-46a8-b9a4-c5a09e057efc.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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