Counter-Strike 2
API для XPLAY.GG • CS2 PUBLIC #32 • [TR]
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/5694631json
{
"response": {
"steam_id": "85568392923979246",
"domain": null,
"id": 5694631,
"ip": "156.146.52.209",
"port": 26099,
"query": 26099,
"color": 0,
"city": "Istanbul",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1774508518,
"score": 0,
"last_online": 1775910022,
"icon": null,
"name": "XPLAY.GG • CS2 PUBLIC #32 • [TR]",
"connect": "156.146.52.209:26099",
"request": "156.146.52.209:26099",
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": "1.41.4.1",
"numplayers": 3,
"maxplayers": 21,
"bots": 7,
"secured": true,
"private": false,
"country": "TR",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1723850202,
"last_update": 1775910022,
"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": 1813,
"language": "tr",
"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/5694631");
$data = json_decode($json, true);
var_dump($data);