JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/812435
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 812435,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"YoNRK5f2-p\",\"type\":\"paragraph\",\"data\":{\"text\":\"г. Владивосток, интернет от провайдера: Подряд\\n\"}}]",
    "game": 1250,
    "owner": 99595,
    "boosts": 1,
    "last_offline": 1762877508,
    "score": null,
    "last_online": 1762006213,
    "icon": null,
    "name": "w5277c",
    "connect": null,
    "request": null,
    "map": "KF-2008BioticsLab",
    "gamemode": "Killing Floor",
    "version": null,
    "numplayers": 0,
    "maxplayers": 6,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1684358250,
    "last_update": 1762877508,
    "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": 396,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 50,
      "steam_id": 1250,
      "name": "Killing Floor",
      "url": "killing-floor"
    },
    "server_owner": {
      "username": "KonstantinUdovichenko",
      "avatar": "18d86374-032a-4037-94ee-89bf32a7c167.jpg",
      "last_online": 1736678181
    },
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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