Rust
WARBANDITS.GG 2X Monthly |Solo/Duo/Trio/Quad|Shared BPs| 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10805534json
{
"response": {
"modded": true,
"fps": 60,
"fps_avg": 60,
"entities_count": 196650,
"world_seed": 2019115313,
"world_size": 3700,
"steam_id": "90284562922406923",
"domain": null,
"id": 10805534,
"ip": "162.222.16.231",
"port": 28010,
"query": 28015,
"color": 0,
"city": "Paris",
"description": "\nWelcome to WarBandits.gg 2x Quad Monthly! \r\n - Monthly Server Wipes \r\n - 2x Gather Rates \r\n - 2x Crafting Speed \r\n - 2x Components and Scrap \r\n - Recyclers at additional monuments \r\n - Custom High Performance Maps \r\n - Extended Workbench range \r\n - Long Days & Short Nights \r\n - Group Limit: 4 \r\n - Active Staff \r\n - Fast Smelt",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775819525,
"score": 0,
"last_online": 1776822016,
"icon": null,
"name": "WARBANDITS.GG 2X Monthly |Solo/Duo/Trio/Quad|Shared BPs|",
"connect": "162.222.16.231:28010",
"request": "162.222.16.231:28015",
"map": "Wiped 19 Days ago",
"gamemode": "Survival",
"version": "2623",
"numplayers": 26,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 67,
"add_date": 1766921282,
"last_update": 1776822016,
"banned": false,
"wipe": 1775151844,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 701,
"language": "fr",
"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/10805534");
$data = json_decode($json, true);
var_dump($data);