Valheim
Boars. Bees. Barnacled Leviathan. 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/1500500json
{
"response": {
"steam_id": "90284577801214988",
"domain": null,
"id": 1500500,
"ip": "167.160.93.167",
"port": 27033,
"query": 27034,
"color": 0,
"city": "New York",
"description": "",
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1776019939,
"score": null,
"last_online": 1776466887,
"icon": null,
"name": "Boars. Bees. Barnacled Leviathan.",
"connect": "167.160.93.167:27033",
"request": "167.160.93.167:27034",
"map": "Boars. Bees. Barnacled Leviatha",
"gamemode": null,
"version": "0.220.3",
"numplayers": 0,
"maxplayers": 64,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1697445232,
"last_update": 1776466887,
"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": 662,
"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/1500500");
$data = json_decode($json, true);
var_dump($data);