Valheim
Hammerheim 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11161333json
{
"response": {
"steam_id": "90281512977345539",
"domain": null,
"id": 11161333,
"ip": "45.92.38.38",
"port": 27095,
"query": 27096,
"color": 0,
"city": "Stockholm",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1775778124,
"score": 0,
"last_online": 1776376357,
"icon": null,
"name": "Hammerheim",
"connect": "45.92.38.38:27095",
"request": "45.92.38.38:27096",
"map": "Hammerheim",
"gamemode": null,
"version": "0.221.10",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "SE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772228235,
"last_update": 1776376357,
"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": 6336,
"language": "sv",
"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/11161333");
$data = json_decode($json, true);
var_dump($data);