面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10203163
json
{
  "response": {
    "steam_id": null,
    "domain": "you.are.bot",
    "id": 10203163,
    "ip": "185.17.0.74",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Moscow",
    "description": "Welcome to chasm\nНайти канал: CTRL + F => Название",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776012096,
    "score": 0,
    "last_online": 1775642410,
    "icon": null,
    "name": "chasm",
    "connect": "you.are.bot:9987",
    "request": "185.17.0.74:9987",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 1500,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1756460763,
    "last_update": 1776012096,
    "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": 174,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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