API для OnlyCS2 Retake #1
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "l",
"region": 4,
"product": "cs2",
"gametype": "empty,secure",
"dedicated": true,
"steam_id": "85568392936616363",
"domain": null,
"id": 13643687,
"ip": "46.8.195.158",
"port": 27021,
"query": 27021,
"project_id": null,
"color": 0,
"city": "Tashkent",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1786432969,
"last_online": 1786463400,
"icon": null,
"name": "OnlyCS2 Retake #1",
"connect": "46.8.195.158:27021",
"request": "46.8.195.158:27021",
"map": "de_dust2",
"gamemode": null,
"version": "1.41.7.4",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": null,
"country": "UZ",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1786432969,
"last_update": 1786463400,
"ban_reason": null,
"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": 8036,
"language": "uz",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13643687");
$data = json_decode($json, true);
var_dump($data);