Rust
[EU] Enardo - Small One Grid 10x - No BPs | OneGrid 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11159033json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 81193,
"world_seed": 993337261,
"world_size": 3000,
"steam_id": "90284543209565206",
"domain": null,
"id": 11159033,
"ip": "194.69.160.140",
"port": 28015,
"query": 29051,
"color": 0,
"city": "City of London",
"description": "![[EU] Enardo - Small One Grid 10x - No BPs | OneGrid](https://effedion.nl/img/gzBekiMfH9qutos9lpQ0vGgKMSSJ68.png)\nEnardo.gg One Grid 10x\r\n\r\nWednesday & Sunday Map Wipes @ 1PM GMT+1\r\nForce Wipe at 8PM GMT+1 First Thursdays of the Month. \r\n\r\nVIP & Kits available at https://store.enardo.gg/\r\n\r\nMake sure to join the Discord - discord.gg/enardo\r\n\r\n24/7 Admin Support. Custom plugins. Amazing performance. English only chat.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775750527,
"score": 0,
"last_online": 1776413417,
"icon": null,
"name": "[EU] Enardo - Small One Grid 10x - No BPs | OneGrid",
"connect": "194.69.160.140:28015",
"request": "194.69.160.140:29051",
"map": "Enardo Maps",
"gamemode": "Survival",
"version": "2623",
"numplayers": 9,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1772228122,
"last_update": 1776413417,
"banned": false,
"wipe": 1776250874,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1225,
"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/11159033");
$data = json_decode($json, true);
var_dump($data);