Rust Thy Neighbor |Solo/Duo|NO Decay| (wiped May 7th) 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"fps": 80,
"fps_avg": 79,
"entities_count": 47416,
"world_seed": 51479623,
"world_size": 3000,
"steam_id": 90285885154207760,
"domain": null,
"id": 10622809,
"ip": "198.73.57.77",
"port": 28024,
"query": 28026,
"color": 0,
"city": "Clifton",
"description": "Welcome to Rust Thy Neighbor!\r\nNO DECAY\r\nSolo/Duo only\r\nAim for the head, and enjoy your stay :)\r\nAll mature players welcome\r\nToxic players will be banned without warning\r\nMap wiped May 7th.\r\nhttps://discord.gg/8M9a9sxpbm",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778595180,
"last_online": 1779201019,
"icon": null,
"name": "Rust Thy Neighbor |Solo/Duo|NO Decay| (wiped May 7th)",
"connect": "198.73.57.77:28024",
"request": "198.73.57.77:28026",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2624",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1763330632,
"last_update": 1779201019,
"banned": false,
"wipe": 1778197042,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3652,
"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/10622809");
$data = json_decode($json, true);
var_dump($data);