Rust
RETRO RUST #1 Х1000|NOLIMIT|LOOT++|KIT WIPE 21.04 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/6125234json
{
"response": {
"fps": 88,
"fps_avg": 84,
"entities_count": 195708,
"world_seed": 1337,
"world_size": 3500,
"steam_id": "90284735875536914",
"domain": null,
"id": 6125234,
"ip": "37.230.137.172",
"port": 20810,
"query": 20811,
"color": 0,
"city": "Moscow",
"description": "\nДобро пожаловать на первый сервер RETRO RUST \r\n · Магазин проекта retrorust.store \r\n · Бесконечный день \r\n ·Система кланов /clan \r\n ·Моментальный крафт \r\n · Система домов и телепортаций[/sethome,/tpr] \r\n · Улучшенный лут в ящиках",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775207530,
"score": 0,
"last_online": 1776805219,
"icon": null,
"name": "RETRO RUST #1 Х1000|NOLIMIT|LOOT++|KIT WIPE 21.04",
"connect": "37.230.137.172:20810",
"request": "37.230.137.172:20811",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 65,
"maxplayers": 225,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 75,
"add_date": 1727883314,
"last_update": 1776805219,
"banned": false,
"wipe": 1776769414,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 540,
"language": "ru",
"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.cn/servers/6125234");
$data = json_decode($json, true);
var_dump($data);