Relaxing Rust | Linux Friendly | 10x | PVE 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 85017,
"world_seed": 792636081,
"world_size": 4000,
"steam_id": 90286625574023180,
"domain": null,
"id": 1035743,
"ip": "156.236.84.23",
"port": 28015,
"query": 28016,
"color": 0,
"city": "Dallas",
"description": "\nWelcome! Relaxing Rust gives you the cross you wanted between PvP and PvE. You have 14 days to build your fortress after wipe, then you can test your build during our 24 hour PvP, purge, time.\r\n-- Play with friends in this relaxing Rust server. \r\n-- Raidable Bases\r\n-- PVE\r\n-- Linux Friendly",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778868777,
"last_online": 1780647025,
"icon": null,
"name": "Relaxing Rust | Linux Friendly | 10x | PVE",
"connect": "156.236.84.23:28015",
"request": "156.236.84.23:28016",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 62,
"add_date": 1688593719,
"last_update": 1780647025,
"banned": false,
"wipe": 1780596683,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1345,
"language": "en",
"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/1035743");
$data = json_decode($json, true);
var_dump($data);