Counter-Strike 2
API для CS2 DUELS | 1v1 #154 [DE] — CYBERSHOKE.NET (ARENA MAPS)
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/7503115json
{
"response": {
"steam_id": "85568392933193222",
"domain": null,
"id": 7503115,
"ip": "46.4.77.60",
"port": 28030,
"query": 28030,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1776234715,
"score": 0,
"last_online": 1776349242,
"icon": null,
"name": "CS2 DUELS | 1v1 #154 [DE] — CYBERSHOKE.NET (ARENA MAPS)",
"connect": "46.4.77.60:28030",
"request": "46.4.77.60:28030",
"map": "duels_aim_map",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 5,
"maxplayers": 64,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1739285024,
"last_update": 1776349242,
"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": 2417,
"language": "de",
"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/7503115");
$data = json_decode($json, true);
var_dump($data);