Counter-Strike 2
API для gm.link/u185609 [CS2] LUMIPUB.RU - FPS+ MIRAGE #1
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11488187json
{
"response": {
"steam_id": "85568392925740304",
"domain": null,
"id": 11488187,
"ip": "87.228.59.100",
"port": 27215,
"query": 27215,
"color": 0,
"city": "St Petersburg",
"description": null,
"game": 730,
"owner": 185609,
"boosts": 1,
"last_offline": 1775333144,
"score": 0,
"last_online": 1775755215,
"icon": null,
"name": "gm.link/u185609 [CS2] LUMIPUB.RU - FPS+ MIRAGE #1",
"connect": "87.228.59.100:27215",
"request": "87.228.59.100:27215",
"map": "de_mirage_fps",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 2,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 2,
"points": 66,
"add_date": 1775333144,
"last_update": 1775755215,
"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": 524,
"language": "ru",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "lumipub",
"avatar": "68128b9c-460f-4376-b8bd-6929d717fc99.jpg",
"last_online": 1775755519
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11488187");
$data = json_decode($json, true);
var_dump($data);