API dla Name is not set on server
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 7411742,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"MEbeydwEgE\",\"type\":\"paragraph\",\"data\":{\"text\":\" Немного информации о проекте:\\n\\n CS2 Сервера:\\n\\n— IP: mirage.russiacs.ru:27015\\n\\n— IP: awp.russiacs.ru:27016\\n\\n— IP: aim.russiacs.ru:27017\\n\\n— Дата создания проекта - 15.02.2016\\n\\n— Сервера работает 24/7\\n\\n— Сайт - [https://russiacs.ru/](https://russiacs.ru/)\\n\\n— ВК - [https://vk.com/russiaproj](https://vk.com/russiaproj)\\n\\nЖелаем приятной игры! \"}}]",
"game": 730,
"owner": 102460,
"boosts": 1,
"last_offline": 1753434896,
"last_online": 1750785626,
"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": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1737915092,
"last_update": 1753434896,
"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": 15009,
"language": "ru",
"parked": true,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": {
"username": "ov3r_cka",
"avatar": "a5a1a4ee-97ed-46e1-a317-d95ee29c4d2f.jpg"
},
"mods": [
{
"id": 379,
"name": "VIP"
},
{
"id": 435,
"name": "VIP FREE"
},
{
"id": 436,
"name": "Weapon Skins"
},
{
"id": 381,
"name": "VIP Bhop"
},
{
"id": 383,
"name": "VIP Core"
},
{
"id": 391,
"name": "Vips"
},
{
"id": 425,
"name": "Knife"
},
{
"id": 380,
"name": "VIP Antiflash"
},
{
"id": 362,
"name": "Tag"
},
{
"id": 338,
"name": "Show Damage"
},
{
"id": 387,
"name": "VIP KillFeed"
},
{
"id": 393,
"name": "VoteBKM"
},
{
"id": 416,
"name": "Classic"
},
{
"id": 385,
"name": "VIP Equipment"
},
{
"id": 386,
"name": "VIP Equipments"
},
{
"id": 361,
"name": "SystemReport (Discord)"
},
{
"id": 394,
"name": "Votemap"
},
{
"id": 398,
"name": "Weapon Restrict"
},
{
"id": 395,
"name": "Voting for map"
},
{
"id": 399,
"name": "Weapon Restrictor"
},
{
"id": 384,
"name": "VIP Core on CSSharp"
},
{
"id": 410,
"name": "WorldTextExpTop"
},
{
"id": 401,
"name": "WeaponDeleter (WeaponRestrict)"
}
],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/7411742");
$data = json_decode($json, true);
var_dump($data);