Counter-Strike 2
API для ➥ ███ [CS2RED.RU] MANIAC [!SHOP/!WS]
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/8492894json
{
"response": {
"steam_id": "85568392931883993",
"domain": null,
"id": 8492894,
"ip": "62.122.214.164",
"port": 27022,
"query": 27022,
"color": 0,
"city": "Moscow",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1774144915,
"score": 0,
"last_online": 1775785827,
"icon": null,
"name": "➥ ███ [CS2RED.RU] MANIAC [!SHOP/!WS]",
"connect": "62.122.214.164:27022",
"request": "62.122.214.164:27022",
"map": "seek_vertigo",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1743945999,
"last_update": 1775785827,
"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": 6990,
"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.ru/servers/8492894");
$data = json_decode($json, true);
var_dump($data);