Counter-Strike 2
qqbasement.ru - SANDSTONE 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10254980json
{
"response": {
"steam_id": 85568392935216830,
"domain": null,
"id": 10254980,
"ip": "95.213.255.66",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"CIQJLXr7ZO\",\"type\":\"paragraph\",\"data\":{\"text\":\"c понедельника по пятницу, \\nв 18:00 мы собираем подвальные игры 5х5. \\nдля участия приходить нужно в дискорд. \\nвнутренний рейтинг \\nрозыгрыши скинов \\nи многое многое другое\"}}]",
"game": 730,
"owner": 120145,
"boosts": 1,
"last_offline": 1770248495,
"score": 5,
"last_online": 1775761209,
"icon": null,
"name": "qqbasement.ru - SANDSTONE",
"connect": "95.213.255.66:27015",
"request": "95.213.255.66:27015",
"map": "sandstone_new",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 54,
"points": 144,
"add_date": 1756994666,
"last_update": 1775761209,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 56,
"language": "ru",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "deckrimenant",
"avatar": "d6d509d2-a3a2-45b2-9db5-391991799e9a.jpg",
"last_online": 1775068302
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10254980");
$data = json_decode($json, true);
var_dump($data);