API для CS2 MANIAC #10 [RU] — CYBERSHOKE.NET (CLASSIC)
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1788380622,
"app": {
"id": 2,
"name": "Counter-Strike 2",
"steam_id": 730,
"url": "counter-strike-2"
},
"color": 0,
"connect": "37.18.21.169:28042",
"country": "RU",
"domain": null,
"game": 730,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 14317939,
"ip": "37.18.21.169",
"language": "ru",
"last_update": 1794694227,
"map": "big_city",
"maxplayers": 64,
"name": "CS2 MANIAC #10 [RU] — CYBERSHOKE.NET (CLASSIC)",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28042,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28042,
"request": "37.18.21.169:28042",
"secured": true,
"status": true,
"steam_id": "85568392932859844",
"version": "1.41.9.7",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Москва",
"description": null,
"disabled_modules": [],
"gamemode": "Counter-Strike 2",
"hidden": false,
"last_offline": 1794497285,
"last_online": 1794694227,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 8973,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14317939");
$data = json_decode($json, true);
var_dump($data);