面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10973494
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10973494,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Stavanger",
    "description": "[{\"id\":\"6ALYGtsR-Q\",\"type\":\"paragraph\",\"data\":{\"text\":\"Tweaked Reforged Eden 2 offers an improved gaming experience with significantly reduced and more manageable grind, allowing players to enjoy the game without the frustration of excessive repetitive tasks. The game introduces a variety of better weapons and shields, each uniquely designed to enhance combat strategies and provide a more satisfying progression system. Additionally, the loot system has been revamped to include more abundant and valuable rewards, encouraging exploration and combat while maintaining a balanced challenge. These enhancements make Reforged Eden 2 not only more accessible but also more engaging, delivering a richer and more rewarding adventure for both new players.\"}}]",
    "game": 383120,
    "owner": 164139,
    "boosts": 1,
    "last_offline": 1774764095,
    "last_online": 1773860412,
    "icon": null,
    "name": "RE2 (Better blocks and weapons)",
    "connect": null,
    "request": null,
    "map": null,
    "gamemode": "Empyrion - Galactic Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "NO",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1769784659,
    "last_update": 1774764095,
    "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": 819,
    "language": "no",
    "parked": true,
    "app": {
      "id": 140,
      "steam_id": 383120,
      "name": "Empyrion - Galactic Survival",
      "url": "empyrion-galactic-survival"
    },
    "server_owner": {
      "username": "vivastar",
      "avatar": "81487e42-0fb0-482f-af60-d1c38b6207fc.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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