MORDHAU
Data's Duels - 1v1 - Flourish Before Fight 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/4290877json
{
"response": {
"steam_id": "90284002617673728",
"domain": null,
"id": 4290877,
"ip": "192.169.92.42",
"port": 18501,
"query": 18505,
"color": 0,
"city": "Dallas",
"description": "",
"game": 629760,
"owner": null,
"boosts": 1,
"last_offline": 1775435525,
"score": 0,
"last_online": 1776443507,
"icon": null,
"name": "Data's Duels - 1v1 - Flourish Before Fight",
"connect": "192.169.92.42:18501",
"request": "192.169.92.42:18505",
"map": "Taiga",
"gamemode": "Mordhau",
"version": "702625635",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1715873675,
"last_update": 1776443507,
"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": 8,
"language": "en",
"parked": false,
"app": {
"id": 51451,
"steam_id": 629760,
"name": "MORDHAU",
"url": "mordhau"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/4290877");
$data = json_decode($json, true);
var_dump($data);