Rust
Rustoria.co - US Small 的 API
我们提供多种集成方式。 你可以使用其中任意一种,也可以通过 JSON API 自行创建集成。 如果你希望我们新增其他集成方式,请联系我们。 联系我们
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10571503json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 127723,
"world_seed": null,
"steam_id": "90284182962561047",
"domain": null,
"id": 10571503,
"ip": "208.103.169.114",
"port": 28010,
"query": 28015,
"color": 0,
"city": "Dallas",
"description": "\nWipe Schedule:\r\n\\tMap - Weekly on Thursdays @ 3PM EST, or when force updates occur.\r\n\\tBPs - Monthly @ Force\r\n\r\nVIP: donate.rustoria.co\r\n\r\nRules:\r\n\\t- No hacking / scripting\r\n\\t- No intentional bug abuse\r\n\\t- No EAC / FP banned alts\r\n\\t- No ban evading\r\n\\t- No racism\r\n\r\nGood performance\r\nActive non playing admins\r\nSeeds are carefully picked\r\n\r\nDiscord: rustoria.co/discord\r\nFull rules: rustoria.co/vanilla/rules",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775778122,
"score": 0,
"last_online": 1775899213,
"icon": null,
"name": "Rustoria.co - US Small",
"connect": "208.103.169.114:28010",
"request": "208.103.169.114:28015",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 49,
"maxplayers": 150,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 76,
"add_date": 1762847089,
"last_update": 1775899213,
"banned": false,
"wipe": 1775761027,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 585,
"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/10571503");
$data = json_decode($json, true);
var_dump($data);