API для Realistic RUST
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789829528,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": 0,
"connect": "80.187.104.170:28015",
"country": "DE",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16757280,
"ip": "80.187.104.170",
"language": "de",
"last_update": 1789944068,
"map": "Custom Map",
"maxplayers": 100,
"name": "Realistic RUST",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28017,
"request": "80.187.104.170:28017",
"secured": true,
"status": true,
"steam_id": "90293047198871564",
"version": "2633",
"votes": 0,
"wipe": 1788527977,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Франкфурт-на-Майне",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1789833465,
"last_online": 1789944068,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 11740,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "252490",
"gametype": "mp100,cp0,ptrak,qp0,$r?,v2633,^k,EU,^p,born1788527977,gmrust,cs164530,ts8,^o^z",
"map_name": "Custom Map",
"dedicated": true,
"queueplayers": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16757280");
$data = json_decode($json, true);
var_dump($data);