Counter-Strike 2
💚[CS2] GROZNYCS.RU💚 | MIRAGE ONLY #2 | !KNIFE !SKINS 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6896207json
{
"response": {
"steam_id": "85568392932935690",
"domain": null,
"id": 6896207,
"ip": "46.174.55.92",
"port": 7777,
"query": 7777,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"2Qdu2Lw3wG\",\"type\":\"paragraph\",\"data\":{\"text\":\"Отличный сервер для новых знакомств и приятной игры!\"}}]",
"game": 730,
"owner": 82850,
"boosts": 1,
"last_offline": 1775268012,
"score": 3.5,
"last_online": 1775753409,
"icon": null,
"name": "💚[CS2] GROZNYCS.RU💚 | MIRAGE ONLY #2 | !KNIFE !SKINS",
"connect": "46.174.55.92:7777",
"request": "46.174.55.92:7777",
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 740,
"points": 930,
"add_date": 1734167750,
"last_update": 1775753409,
"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": 19,
"language": "ru",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "6ker9",
"avatar": "70835ef7-f476-4d93-a693-df97958fe9aa.jpg",
"last_online": 1773774822
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6896207");
$data = json_decode($json, true);
var_dump($data);