NoName|Kuwait|手衣不掉|公益|无规则 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11212606
json
{
  "response": {
    "steam_id": "85568392932053757",
    "domain": null,
    "id": 11212606,
    "ip": "47.117.165.99",
    "port": 27021,
    "query": 27021,
    "color": 0,
    "city": "Shanghai",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778589781,
    "score": 0,
    "last_online": 1778597546,
    "icon": "https://bochi-the-rocket.oss-cn-shanghai.aliyuncs.com/%E6%96%B9%E5%9B%BE/da3d8ceecbf741be3770612a753ebff5.png",
    "name": "NoName|Kuwait|手衣不掉|公益|无规则",
    "connect": "47.117.165.99:27021",
    "request": "47.117.165.99:27021",
    "map": "Kuwait",
    "gamemode": "公益服务器 QQ群号974884551 先看右侧注意事项",
    "version": "3.26.3.2",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1772700900,
    "last_update": 1778597546,
    "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": 451,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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