Rust
J2 Servers Pure Vanilla 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10979265json
{
"response": {
"fps": 160,
"fps_avg": 163,
"entities_count": 97087,
"world_seed": 20260123,
"world_size": 4250,
"steam_id": "90284802702392325",
"domain": null,
"id": 10979265,
"ip": "216.176.87.3",
"port": 28045,
"query": 28047,
"color": 0,
"city": "Effingham",
"description": "\nWelcome to J2 Servers Pure Vanilla\r\n\r\nThe definitive vanilla Rust experience on dedicated enterprise hardware.\r\n\r\nSCHEDULE:\r\n� Wipes Bi-Weekly on Thursdays @ 3:00 PM CST\r\n� First Thursday: Full Wipe (Map + BPs)\r\n� Third Thursday: Map Wipe Only\r\n\r\nRULES:\r\n� Pure Vanilla Experience (No Mods)\r\n� No Racism, Homophobia, or Toxicity\r\n� No Hacking, Scripting, or Exploits\r\n\r\nJOIN US:\r\n� Website: j2-servers.com\r\n� Discord: discord.gg/Hjmruw7p5D",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776848598,
"score": 0,
"last_online": 1776855024,
"icon": null,
"name": "J2 Servers Pure Vanilla",
"connect": "216.176.87.3:28045",
"request": "216.176.87.3:28047",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2621",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1769901087,
"last_update": 1776855024,
"banned": false,
"wipe": 1776802516,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4472,
"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/10979265");
$data = json_decode($json, true);
var_dump($data);