Valheim
ZoRoTiny 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11161750json
{
"response": {
"steam_id": "90284344817962008",
"domain": null,
"id": 11161750,
"ip": "76.13.255.173",
"port": 2456,
"query": 2457,
"color": 0,
"city": "Manchester",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1774697547,
"score": 0,
"last_online": 1776209470,
"icon": null,
"name": "ZoRoTiny",
"connect": "76.13.255.173:2456",
"request": "76.13.255.173:2457",
"map": "ZoRoTiny",
"gamemode": null,
"version": "0.221.12",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772228252,
"last_update": 1776209470,
"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": 6560,
"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/11161750");
$data = json_decode($json, true);
var_dump($data);