API для Name is not set on server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1723381920,
"app": {
"id": 2,
"name": "Counter-Strike 2",
"steam_id": 730,
"url": "counter-strike-2"
},
"color": 0,
"connect": null,
"country": "RU",
"domain": null,
"game": 730,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 5576552,
"ip": null,
"language": "ru",
"last_update": 1753434896,
"map": "awp_lego_2",
"maxplayers": 24,
"name": "Name is not set on server",
"numplayers": 0,
"official": null,
"points": 0,
"port": null,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": null,
"request": null,
"secured": false,
"status": false,
"steam_id": null,
"version": null,
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": null,
"description": null,
"disabled_modules": [],
"gamemode": "Counter-Strike 2",
"hidden": false,
"last_offline": 1753434896,
"last_online": 1749385843,
"list_hidden": true,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": true,
"position_game": 39601,
"wipe_period": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/5576552");
$data = json_decode($json, true);
var_dump($data);