Valheim
Valheim server hos Nice-Hosting.dk 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3024211json
{
"response": {
"steam_id": "90277867336165384",
"domain": null,
"id": 3024211,
"ip": "194.182.23.35",
"port": 27024,
"query": 27025,
"color": 0,
"city": "Oslo",
"description": "",
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1768642707,
"score": null,
"last_online": 1776785516,
"icon": null,
"name": "Valheim server hos Nice-Hosting.dk",
"connect": "194.182.23.35:27024",
"request": "194.182.23.35:27025",
"map": "Valheim server hos Nice-Hosting",
"gamemode": null,
"version": "0.221.6",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "NO",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1708077519,
"last_update": 1776785516,
"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": 814,
"language": "no",
"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/3024211");
$data = json_decode($json, true);
var_dump($data);