Wurm Unlimited
WurmUnlimited Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11181362json
{
"response": {
"steam_id": "90284022488085504",
"domain": null,
"id": 11181362,
"ip": "98.96.163.210",
"port": 3724,
"query": 27030,
"color": 0,
"city": "Maidstone",
"description": null,
"game": 366220,
"owner": null,
"boosts": 1,
"last_offline": 1772521895,
"score": 0,
"last_online": 1775971825,
"icon": null,
"name": "WurmUnlimited Server",
"connect": "98.96.163.210:3724",
"request": "98.96.163.210:27030",
"map": "Ocrea",
"gamemode": "Wurm Unlimited Server",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 2,
"points": 32,
"add_date": 1772229720,
"last_update": 1775971825,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 25,
"language": "en",
"parked": false,
"app": {
"id": 155,
"steam_id": 366220,
"name": "Wurm Unlimited",
"url": "wurm-unlimited"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11181362");
$data = json_decode($json, true);
var_dump($data);