Soulmask
UGH - Undead GrindHouse 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11385224json
{
"response": {
"steam_id": "90284535974769686",
"domain": null,
"id": 11385224,
"ip": "104.60.182.73",
"port": 8777,
"query": 27015,
"color": 0,
"city": "Oak Lawn",
"description": null,
"game": 2646460,
"owner": null,
"boosts": 1,
"last_offline": 1775781679,
"score": 0,
"last_online": 1776436240,
"icon": null,
"name": "UGH - Undead GrindHouse",
"connect": "104.60.182.73:8777",
"request": "104.60.182.73:27015",
"map": "DLC_Level01_Main",
"gamemode": "00",
"version": "1.0.0.0",
"numplayers": 1,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 33,
"add_date": 1774596164,
"last_update": 1776436240,
"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": 243,
"language": "en",
"parked": false,
"app": {
"id": 1625562,
"steam_id": 2646460,
"name": "Soulmask",
"url": "soulmask"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11385224");
$data = json_decode($json, true);
var_dump($data);