JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10972615
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10972615,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "Ust-abakan",
    "description": "[{\"id\":\"xpa6UzzDJO\",\"type\":\"paragraph\",\"data\":{\"text\":\"Администрация онлайн.\\nРейты Х2, VIP Х4.\\nКиты для старта.\\nИвенты: Рейдбазы и Конвой.\\nТП - Дом\\\\Бандит\\\\Город\\nВайпБлок - Все в равных условиях после вайпа\\nРейдБлок.\\nКомбатБлок.\\nГолосование за пропуск НОЧИ.\\nИ многое другое.\\nкоманды чата:\\n/remove - снос вашей простройки\\n/sethome - добавить тп домой\\n/kit - киты\\n\\n\"}}]",
    "game": 252490,
    "owner": 161273,
    "boosts": 1,
    "last_offline": 1774159278,
    "last_online": 1773215412,
    "icon": null,
    "name": "ТЕСТ сервера PVE",
    "connect": null,
    "request": null,
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 3,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1768808632,
    "last_update": 1774159278,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": 1,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13497,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "b_boy_poleno",
      "avatar": "no.jpg"
    },
    "mods": [
      {
        "id": 979,
        "name": "Kits"
      },
      {
        "id": 1323,
        "name": "Shop"
      },
      {
        "id": 926,
        "name": "IQChat"
      },
      {
        "id": 1431,
        "name": "Teleportation"
      },
      {
        "id": 1227,
        "name": "RaidBlock"
      },
      {
        "id": 1225,
        "name": "Raidable Bases"
      },
      {
        "id": 1528,
        "name": "Wipe Block"
      },
      {
        "id": 1571,
        "name": "XRate"
      },
      {
        "id": 710,
        "name": "DeathMessages"
      },
      {
        "id": 1252,
        "name": "Remover Tool"
      },
      {
        "id": 644,
        "name": "Convoy"
      },
      {
        "id": 1358,
        "name": "SkipNight"
      },
      {
        "id": 953,
        "name": "IQTurret"
      },
      {
        "id": 1541,
        "name": "XAntiCheat"
      },
      {
        "id": 635,
        "name": "CombatBlock"
      }
    ],
    "disabled_modules": []
  }
}

Codebeispiele

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