API для [EU|NL]WarMonger CS2|128tick
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790157273,
"app": {
"id": 2,
"name": "Counter-Strike 2",
"steam_id": 730,
"url": "counter-strike-2"
},
"color": 0,
"connect": "87.106.78.39:27015",
"country": "DE",
"domain": null,
"game": 730,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16978380,
"ip": "87.106.78.39",
"language": "de",
"last_update": 1790199533,
"map": "de_dust2",
"maxplayers": 64,
"name": "[EU|NL]WarMonger CS2|128tick",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "87.106.78.39:27015",
"secured": true,
"status": false,
"steam_id": "85568392936784835",
"version": "1.41.8.2",
"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": 1790199533,
"last_online": 1790171673,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 31566,
"wipe_period": null,
"listentype": "d",
"environment": "w",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16978380");
$data = json_decode($json, true);
var_dump($data);