API для My Server Name
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790338979,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "83.149.46.124:28015",
"country": "RU",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17103679,
"ip": "83.149.46.124",
"language": "ru",
"last_update": 1790350301,
"map": "Procedural Map",
"maxplayers": 500,
"name": "My Server Name",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28016,
"request": "83.149.46.124:28016",
"secured": true,
"status": true,
"steam_id": "90293388884746255",
"version": "2633",
"votes": 0,
"wipe": 1790155079,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Нижний Новгород",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790341889,
"last_online": 1790350301,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 11809,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "252490",
"gametype": "mp500,cp1,ptrak,qp0,$r?,v2633,born1790155079,gmrust,cs165217,ts8",
"map_name": "Procedural Map",
"dedicated": true,
"queueplayers": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17103679");
$data = json_decode($json, true);
var_dump($data);