API для My Untitled Rust Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792052652,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "180.150.114.4:28015",
"country": "AU",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18271074,
"ip": "180.150.114.4",
"language": "en",
"last_update": 1794768034,
"map": "QAIsland",
"maxplayers": 500,
"name": "My Untitled Rust Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 28015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28017,
"request": "180.150.114.4:28017",
"secured": false,
"status": false,
"steam_id": "90297383248143389",
"version": "2636",
"votes": 0,
"wipe": 1794470735,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Аделаида",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794768034,
"last_online": 1794559259,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 14005,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "252490",
"gametype": "mp500,cp0,ptrak,qp0,$r?,v2634,born1792052270,gmrust,cs167584,ts8,^z,^y",
"map_name": "Procedural Map",
"dedicated": true,
"queueplayers": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18271074");
$data = json_decode($json, true);
var_dump($data);