API для Rust Server by nitrado.net
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286079250794513",
"domain": null,
"id": 11602188,
"ip": "45.140.129.107",
"port": 10900,
"query": 10901,
"color": 0,
"city": "Tokyo",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1779359242,
"last_online": 1779478279,
"icon": null,
"name": "Rust Server by nitrado.net",
"connect": "45.140.129.107:10900",
"request": "45.140.129.107:10901",
"map": "Procedural Map",
"gamemode": "Rust",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779359242,
"last_update": 1779478279,
"banned": false,
"wipe": 1778180491,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 9162,
"language": "ja",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11602188");
$data = json_decode($json, true);
var_dump($data);