Valheim
L├╢nneberga 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3088045json
{
"response": {
"steam_id": "90285512387868689",
"domain": null,
"id": 3088045,
"ip": "198.244.229.55",
"port": 5914,
"query": 5915,
"color": 0,
"city": "London",
"description": "",
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1774899130,
"score": null,
"last_online": 1778626896,
"icon": null,
"name": "L├╢nneberga",
"connect": "198.244.229.55:5914",
"request": "198.244.229.55:5915",
"map": "L├╢nneberga",
"gamemode": null,
"version": "0.219.16",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": true,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1708878286,
"last_update": 1778626896,
"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": 651,
"language": "en",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/3088045");
$data = json_decode($json, true);
var_dump($data);