Valheim
[email protected] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10981113json
{
"response": {
"steam_id": "90284581424752646",
"domain": null,
"id": 10981113,
"ip": "91.224.117.40",
"port": 23005,
"query": 23006,
"color": 0,
"city": "Gdynia",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1776047512,
"score": 0,
"last_online": 1776474075,
"icon": null,
"name": "[email protected]",
"connect": "91.224.117.40:23005",
"request": "91.224.117.40:23006",
"map": "[email protected]",
"gamemode": null,
"version": "0.221.12",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "PL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769901475,
"last_update": 1776474075,
"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": 5105,
"language": "pl",
"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/10981113");
$data = json_decode($json, true);
var_dump($data);