JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11710908
json
{
  "response": {
    "steam_id": "90286459512322067",
    "domain": null,
    "id": 11710908,
    "ip": "125.38.164.205",
    "port": 22015,
    "query": 22018,
    "color": 0,
    "city": "Tianjin",
    "description": "兔萌萌PVE欢迎您,本服为纯净仿官PVE模式\r\n服内仅安装PVE必须的一些基本插件\r\n禁止偷抢他人物品,禁止一切不素质行为。\r\n公共设施看管好自己的物品,自己不看则视为无主!载具不锁视为无主!\r\n欢迎各位爱好PVE模式的玩家进入玩耍,本服务器QQ群:214141901。",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780319053,
    "last_online": 1780329030,
    "icon": null,
    "name": "『兔萌萌PVE』萌新学习 | 养老休闲 | 死亡不掉",
    "connect": "125.38.164.205:22015",
    "request": "125.38.164.205:22018",
    "map": "Custom Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 8,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1780300735,
    "last_update": 1780329030,
    "banned": false,
    "wipe": 1778178465,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1796,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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