Counter-Strike 2
API для Name is not set on server
Мы предлагаем широкий выбор методов интеграции. Вы можете воспользоваться любым из них или создать свой собственный с помощью JSON API. Если у вас есть предложение по добавлению нового метода интеграции, пожалуйста, свяжитесь с нами. Связаться с нами
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/4892762json
{
"response": {
"steam_id": null,
"domain": null,
"id": 4892762,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": null,
"description": "[]",
"game": 730,
"owner": 69196,
"boosts": 1,
"last_offline": 1754222713,
"score": 5,
"last_online": 1751539219,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "de_mirage",
"gamemode": "Counter-Strike 2",
"version": null,
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1719486239,
"last_update": 1754222713,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": true,
"hide_address": true,
"hide_query": false,
"position_game": 18118,
"language": "ru",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "sp1le",
"avatar": "87f62262-7f65-4733-858a-a552a87867d0.jpg",
"last_online": 1760649718
},
"mods": [
{
"id": 343,
"name": "Skins"
},
{
"id": 435,
"name": "VIP FREE"
},
{
"id": 436,
"name": "Weapon Skins"
}
],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/4892762");
$data = json_decode($json, true);
var_dump($data);