Rust
Reddit.com/r/PlayRust - EU Low Pop 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7819804json
{
"response": {
"fps": 30,
"fps_avg": 29,
"entities_count": 222787,
"world_seed": 1337,
"world_size": 4000,
"steam_id": "90284731254774804",
"domain": null,
"id": 7819804,
"ip": "194.69.160.106",
"port": 28015,
"query": 28017,
"color": 0,
"city": "City of London",
"description": "\nWelcome to Reddit's official /r/PlayRust Monthly EU Low Pop server! \r\n - No cheating or exploiting. \r\n - No spam, racism/slurs, discrimination. \r\n\r\n Visit /r/playrustpublic for server discussion!\r\n Support: redditplayrust.com \r\n Discord: discord.gg/playrust \r\n Monthly Map Wipe @ Force / BP Wipe @ Forced",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775152338,
"score": 5,
"last_online": 1776822016,
"icon": null,
"name": "Reddit.com/r/PlayRust - EU Low Pop",
"connect": "194.69.160.106:28015",
"request": "194.69.160.106:28017",
"map": "Reddit Maps",
"gamemode": "Survival",
"version": "2623",
"numplayers": 21,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 66,
"add_date": 1740051000,
"last_update": 1776822016,
"banned": false,
"wipe": 1775152309,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 755,
"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/7819804");
$data = json_decode($json, true);
var_dump($data);