API для Rust
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789827561,
"app": {
"id": 12,
"name": "Rust",
"steam_id": 252490,
"url": "rust"
},
"color": null,
"connect": "109.245.130.9:28015",
"country": "RS",
"domain": null,
"game": 252490,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16754904,
"ip": "109.245.130.9",
"language": "sr",
"last_update": 1789842409,
"map": "Procedural Map",
"maxplayers": 1,
"name": "Rust",
"numplayers": 0,
"official": null,
"points": 30,
"port": 28015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 28016,
"request": "109.245.130.9:28016",
"secured": true,
"status": false,
"steam_id": "90293041497545728",
"version": "2633",
"votes": 0,
"wipe": 1788677202,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Белград",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1789842409,
"last_online": 1789830787,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": null,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "252490",
"gametype": "mp1,cp0,ptrak,qp0,$r?,v2633,born1788677202,gmrust,cs163207,ts8,^o^z",
"map_name": "Procedural Map",
"dedicated": true,
"queueplayers": 0
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16754904");
$data = json_decode($json, true);
var_dump($data);