API для Name is not set on server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 2144524,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": null,
"description": "![$Rust Last [Nolimit]](https://pic.survivalhost.org/images/2019/04/07/712bc4d43d8fd5c68118d71d48125d26.png)Добро пожаловать на сервер Rust Last.Вайп два раза в месяцСледующий вайп: 01.02.2024Наша группа в VK: https://vk.com/rust_lastDiscord: https://disc",
"game": 252490,
"owner": 105191,
"boosts": 1,
"last_offline": 1753434896,
"last_online": 1750280420,
"icon": null,
"name": "Name is not set on server",
"connect": null,
"request": null,
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": null,
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1702322758,
"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": 13079,
"language": "ru",
"parked": true,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "Singapur",
"avatar": "e7bf4be5-a4a5-4625-8eec-a289b2736c4a.jpg"
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/2144524");
$data = json_decode($json, true);
var_dump($data);