<< Garry Theft Ausmod | �������� >> 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11182110
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11182110,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "St Petersburg",
    "description": "[{\"id\":\"ABRMI_2n9T\",\"type\":\"paragraph\",\"data\":{\"text\":\"Атмосферный сервер с технологиями RP, только в SandBox.\"}},{\"id\":\"IGbiADZ-tt\",\"type\":\"paragraph\",\"data\":{\"text\":\"На данном сервере вы можете, добывать ресурсы, рыбачить, быть полицейским и не только.\"}},{\"id\":\"sItIjLMQAb\",\"type\":\"paragraph\",\"data\":{\"text\":\"У нас приятная администрация, которая следит за игроками и смотрит, чтобы они не портили экономику.\"}},{\"id\":\"sLdSw4OJwn\",\"type\":\"paragraph\",\"data\":{\"text\":\"Удачной игры, игрок!\"}}]",
    "game": 4000,
    "owner": 82419,
    "boosts": 1,
    "last_offline": 1774417871,
    "score": 5,
    "last_online": 1773522013,
    "icon": null,
    "name": "<< Garry Theft Ausmod | �������� >>",
    "connect": null,
    "request": null,
    "map": "rp_evocity_v33x",
    "gamemode": "Sandbox",
    "version": null,
    "numplayers": 0,
    "maxplayers": 128,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1772376377,
    "last_update": 1774417871,
    "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": 4052,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 30,
      "steam_id": 4000,
      "name": "Garry's Mod",
      "url": "garrys-mod"
    },
    "server_owner": {
      "username": "arkrause",
      "avatar": "81b12773-3033-4939-a6e5-8e9474645c0a.jpg",
      "last_online": 1774874721
    },
    "mods": [
      {
        "id": 1933,
        "name": "RP"
      },
      {
        "id": 1794,
        "name": "Sandbox"
      },
      {
        "id": 1790,
        "name": "Build"
      },
      {
        "id": 1796,
        "name": "Wire"
      }
    ],
    "disabled_modules": []
  }
}

代码示例

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