Half-Life
|•| Half-Life EUROPE 2026 Server [HL1 PRO EU] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10706875json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10706875,
"ip": "128.140.68.67",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Nuremberg",
"description": null,
"game": 70,
"owner": 151563,
"boosts": 1,
"last_offline": 1774344114,
"score": 5,
"last_online": 1776775225,
"icon": null,
"name": "|•| Half-Life EUROPE 2026 Server [HL1 PRO EU]",
"connect": "128.140.68.67:27015",
"request": "128.140.68.67:27015",
"map": "crossfire",
"gamemode": "Europe 2026",
"version": "1.1.2.7/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1765125049,
"last_update": 1776775225,
"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": 24,
"language": "de",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": {
"username": "HL_Europe",
"avatar": "cac0f4e3-cd39-4cb0-9930-194e47a0236f.png",
"last_online": 1767205900
},
"mods": [
{
"id": 379,
"name": "VIP"
},
{
"id": 435,
"name": "VIP FREE"
},
{
"id": 415,
"name": "BunnyHop"
},
{
"id": 34,
"name": "Bhop"
},
{
"id": 95,
"name": "Damage Info"
},
{
"id": 385,
"name": "VIP Equipment"
}
],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10706875");
$data = json_decode($json, true);
var_dump($data);