CS 2 Server hosted by Nova-Hosting.ru 的 API

我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10825119
json
{
  "response": {
    "steam_id": "90284059360919572",
    "domain": null,
    "id": 10825119,
    "ip": "87.228.59.104",
    "port": 27315,
    "query": 27315,
    "color": 0,
    "city": "St Petersburg",
    "description": "[{\"id\":\"yyk1OGQ8iC\",\"type\":\"paragraph\",\"data\":{\"text\":\"Игровой проект развлекательных серверов Counter-Strike - **METACS.RU**\\n\"}},{\"id\":\"rcfopMAzHh\",\"type\":\"linkTool\",\"data\":{\"link\":\"https://metacs.ru/\",\"meta\":{\"description\":\"METACS — надёжные игровые сервера CS2 CS:GO с низким пингом, стабильной игрой и активным сообществом. Присоединяйся к лучшим серверам Counter-Strike 2!\",\"image\":{\"url\":\"//metacs.ru/storage/cache/img/global/bar_logo.jpg\"},\"title\":\"METACS — игровые сервера Counter-Strike 2\"}}}]",
    "game": 730,
    "owner": null,
    "boosts": 1,
    "last_offline": 1775587712,
    "score": 5,
    "last_online": 1775774412,
    "icon": null,
    "name": "CS 2 Server hosted by Nova-Hosting.ru",
    "connect": "87.228.59.104:27315",
    "request": "87.228.59.104:27315",
    "map": "de_dust2",
    "gamemode": "Counter-Strike 2",
    "version": "1.41.4.1",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "RU",
    "status": true,
    "votes": 11,
    "points": 71,
    "add_date": 1767981191,
    "last_update": 1775774412,
    "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": 286,
    "language": "ru",
    "parked": false,
    "app": {
      "id": 2,
      "steam_id": 730,
      "name": "Counter-Strike 2",
      "url": "counter-strike-2"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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