API для Name is not set on server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 754686,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": null,
"description": "",
"game": 221100,
"owner": 48805,
"boosts": 1,
"last_offline": 1754065480,
"last_online": 1751251835,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "chernarusplus",
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1677502254,
"last_update": 1754065480,
"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": 13900,
"language": "ru",
"parked": true,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "markraminov",
"avatar": "c3d5ef35-2c75-4b1c-8e85-46d0e869947c.jpg"
},
"mods": [
{
"id": 1653,
"name": "Code Lock"
},
{
"id": 1649,
"name": "[CrSk] BMW 525i E34"
},
{
"id": 1650,
"name": "[CrSk] VAZ-2107"
},
{
"id": 1652,
"name": "Building Fortifications"
},
{
"id": 1654,
"name": "Furniture Pack"
},
{
"id": 1655,
"name": "Kamaz_Truck"
},
{
"id": 1656,
"name": "Stamina 2x"
},
{
"id": 1657,
"name": "UAZ452A"
},
{
"id": 1658,
"name": "Zil 131"
},
{
"id": 1651,
"name": "BuildAnywhere_v3"
}
],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/754686");
$data = json_decode($json, true);
var_dump($data);